error-handling - 通知选项卡上的Azure数据工厂捕获错误输出

标签 error-handling azure-data-factory

我有一个存储过程,可用来记录ADF执行的进度。
我可以捕获数据工厂名称(@pipeline()。DataFactory)和RunId(@pipeline()。RunId)之类的内容,并将它们记录在日志表中的行中。
但是,我还想捕获的是执行失败时从通知选项卡输出的错误。
例如
Error output from notifications tab
我在故障约束中尝试过此操作(红色箭头)

@activity('Execute LandingTbls').output
但是日志表中的输出是(这里没有太多帮助)
System.Collections.Generic.Dictionary`2[System.String,System.Object]
如何才能做到这一点?

最佳答案

基本上,您可以这样做:
enter image description here
表达式是@activity('Validation1').Error.Message
(在我这边,我要检查错误消息的 Activity 是Validation1,您可以将其更改为您这一边的 Activity 。)
enter image description here
enter image description here

关于error-handling - 通知选项卡上的Azure数据工厂捕获错误输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63299496/

相关文章:

c# - 如何将多个存储过程事件的结果输出到一个目标表中?

javascript - 使用 XML 更新时钟选择器输入字段

cordova - 在哪里可以找到 “Cordova Error API”?

git - smartgit:执行命令失败:主干已过时

php sql 错误消息更改了数据库上下文

azure - ELSE 返回到 Azure 数据工厂中的 IF-ELSE 语句(While True)之前

c# - 集合在 asp.net MVC 4 中被修改错误

azure - HDInsight 订阅不起作用 - Azure 数据工厂

Azure 数据工厂分析定价

azure - 尝试在 Azure 数据工厂中进行 Catch