[in]失败后停止【值/表达式】True
使用Z.Expressions解析表达式出错,尝试使用DynamicExpresso.
异常:解析表达式出错。
内部错误:Unexpected character encountered while parsing value: �. Path '', line 0, position 0.
原始表达式:{
JObject json = JObject.Parse({[cliptext]}.Replace("ADDIN ZOTERO_ITEM CSL_CITATION ",""));
var itemdata=json["citationItems"].Select(
x=>new {
uri=(string)x["uris"][0],
author=(string.IsNullOrEmpty((string)x["itemData"]["author"][0]["family"])?((string)x["itemData"]["author"][0]["literal"]):((string)x["itemData"]["author"][0]["family"])) + " et al., "+
(string)x["itemData"]["issued"]["date-parts"][0][0]
}).ToList();
itemdata.Select(
x=>x.author + "|" + "zotero://select/library/items/" + Path.GetFileName(x.uri)
).ToList().JoinToString();
}
在 Quicker.Domain.Actions.X.XActionHelper.GetValueFromExpression2(String expression, ActionExecuteContext context)
在 Quicker.Domain.Actions.X.XActionHelper.rot0S7dt0vD(<>c__DisplayClass2_0& )
在 Quicker.Domain.Actions.X.XActionHelper.GetParamValue(StepInParamDef paramDef, ActionStep step, ActionExecuteContext context, Boolean skipLogging, Boolean skipConvert, Boolean skipLogContent)
在 Quicker.Domain.Actions.X.BuiltinRunners.Misc.AssignValueStep.<>c__DisplayClass37_0.M3xotR8M7iA()
在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
步骤(sys:assign)执行失败,原因:解析表达式出错。
内部错误:Unexpected character encountered while parsing value: �. Path '', line 0, position 0.
原始表达式:{
JObject json = JObject.Parse({[cliptext]}.Replace("ADDIN ZOTERO_ITEM CSL_CITATION ",""));
var itemdata=json["citationItems"].Select(
x=>new {
uri=(string)x["uris"][0],
author=(string.IsNullOrEmpty((string)x["itemData"]["author"][0]["family"])?((string)x["itemData"]["author"][0]["literal"]):((string)x["itemData"]["author"][0]["family"])) + " et al., "+
(string)x["itemData"]["issued"]["date-parts"][0][0]
}).ToList();
itemdata.Select(
x=>x.author + "|" + "zotero://select/library/items/" + Path.GetFileName(x.uri)
).ToList().JoinToString();
}
停止动作:解析表达式出错。
内部错误:Unexpected character encountered while parsing value: �. Path '', line 0, position 0.
原始表达式:{
JObject json = JObject.Parse({[cliptext]}.Replace("ADDIN ZOTERO_ITEM CSL_CITATION ",""));
var itemdata=json["citationItems"].Select(
x=>new {
uri=(string)x["uris"][0],
author=(string.IsNullOrEmpty((string)x["itemData"]["author"][0]["family"])?((string)x["itemData"]["author"][0]["literal"]):((string)x["itemData"]["author"][0]["family"])) + " et al., "+
(string)x["itemData"]["issued"]["date-parts"][0][0]
}).ToList();
itemdata.Select(
x=>x.author + "|" + "zotero://select/library/items/" + Path.GetFileName(x.uri)
).ToList().JoinToString();
}
耗时:11ms
按照教程,开通VBA权限