Microsoft ADF有一组api来获取管道运行的状态。
参考编号:https://learn.microsoft.com/en-us/rest/api/datafactory/pipeline-runs/get
在响应中,有一个名为message
的属性。
message | string | The message from a pipeline run.
如何在管道中设置此属性?
您必须将其设置为activity才能访问activity中的错误消息,并将其分配给一个变量,如下所示。
@activity('Copy data1').output.errors[0].Message
有关更多信息,请访问此链接。