azure-data-factory - Azure 数据工厂 : For each item() value does not exist for a particular attribute

标签 azure-data-factory azure-data-factory-2

对于每个具有存储过程 (SP) 的事件,我都有一个,其中我显然使用 item() 输入值。

现在假设 SP 的输入值为 item().a、item().b 和 item().c

问题:对于foreach的一些迭代,item().b不存在,这是预期的。那么我应该如何在存储过程中处理它呢?因为此时它在执行 SP 时通过以下方式给我一个错误:

"The template language expression 'item().b' cannot be evaluated because property 'b' doesn't exist, available properties are 'a, c'



或者我应该如何克服数据工厂中的这种故障?

显然,数据工厂检查了empty(),但没有检查exist()。

最佳答案

你可以用“?”。即,item()?.b

请引用question mark和一个相关的 post .

关于azure-data-factory - Azure 数据工厂 : For each item() value does not exist for a particular attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51222698/

相关文章:

azure - 如何从 Azure 数据工厂连接到 OpenDataSet?

azure - Azure 数据工厂中的复制事件在幕后如何工作?

azure - 从数据工厂管道返回值

mongodb - Azure 数据工厂中的条件映射

azure-data-factory-2 - 传递一个管道运行的输出并用作另一个管道中的参数

azure-data-factory - Azure 数据工厂,如何将 blob 数据增量复制到 sql

azure-data-factory-2 - 有没有办法在多个映射数据流中重用单个运行的数据 block 集群

azure - 从 Azure 数据工厂中的 Json 文件中提取/删除/跳过自由文本

azure-data-factory-2 - 我们如何将天蓝色数据工厂中的时区转换为指定的时区