Azure 数据工厂 - 捕获数据流事件的错误详细信息

标签 azure azure-data-factory

我有一个数据流,我的要求是在失败时将错误详细信息捕获到变量中,并将该变量分配给下一个数据流中的参数。我试图实现这一点,直到第二阶段(在帮助下)如下,但我无法将此变量分配给下一个数据流中的参数。我得到的错误是 - 无法解析表达式

Pipeline Flow

First Dataflow Error

Variable output

Dataflow 2 parameters

Failure message

最佳答案

要检索数据流错误消息,请在失败时将数据流事件连接到设置变量事件,以使用以下表达式存储错误消息:

@string(json(activity('Data flow1').error.message).Message)

enter image description here

Error Message:

Ref2

Output:

enter image description here

关于Azure 数据工厂 - 捕获数据流事件的错误详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73410086/

相关文章:

c# - 无法加载文件或程序集“System.Runtime.InteropServices.RuntimeInformation”

c# - 从 Azure KeyVault 加载 X509Certificate

azure - 获取 Azure DevOps 管道中的具体任务版本

azure - for-each 在 azure 数据工厂中一次传递所有文件

Azure函数: What is the best way for me to filter out logs from other Azure Function Apps in "Log Stream"?

Azure 日志查询显示空值

azure - 使用 Azure 数据工厂 v2 中启用的 Polybase 将空十进制值传输到 Azure 数据仓库时出错

azure - 在 Azure 数据工厂副本中使用追加 blob 是否有任何解决方法?

azure-data-factory - Azure 数据工厂 - 遍历多行的 JSON 数组

python - 尝试在 Azure 表中写入时出错 ('' 不是分区键或行键的有效值)