对于每个具有存储过程 (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/