执行时我得到了以下错误。
Error
{
"errorCode": "BadRequest",
"message": "Activity parent-control-sp failed: JSON text is not properly formatted. Unexpected character '\"' is found at position 0.",
"failureType": "UserError",
"target": "Execute parent Pipeline"
}
我希望以下消息显示在错误表中
活动parent-control-sp失败:JSON文本格式不正确。在位置0处找到意外的字符“\”。“,”failureType“:”UserError“,”target“:”执行父管道“}
我用过@{activity('Activity parent-control-sp').error.message}
。它显示以下消息
JSON文本格式不正确。在位置0处找到意外的字符“\”。“,”failureType“:”UserError“,”target“:”执行父管道“}
如何获得上层消息?
我相信您正在尝试使用Execute Pipeline活动,此时打算从子活动中捕获任何错误。我认为以下表达应该对你有帮助
@concat(活性( 'Pipeline1')返回Error.message, 'failureType:',活性( 'Pipeline1')error.failureType。)