解析Azure Data Factory上的Error Json消息,并将其作为输入传递给另一个活动。 [英] Parse the Error Json message on Azure Data Factory and pass it to another activity as input.

查看:96
本文介绍了解析Azure Data Factory上的Error Json消息,并将其作为输入传递给另一个活动。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的开发人员,

我正在处理ADF中的错误。我想询问是否有任何方法可以获取一个查找活动的错误消息的值,以便将此值作为另一个活动的输入参数传递。

I'm dealing with errors in ADF. I wanted to ask if it's there any way of getting the value of the error message of one lookup activity in order to pass this value as an input parameter of another activity.

我尝试了类似 @activity('lookup1')的内容.Error.message 但确实有效。

I've tried something like @activity('lookup1').Error.message but it does work.




提前致谢

Thanks in advance

推荐答案

您好Arundil并感谢您的提问。 你非常接近正确。 这就是我所做的:



在一个setVariable活动中,通过 red'on failure'行连接到Lookup活动
我使用过:



Hello Arundil and thank you for your question.  You were very close to getting it right.  Here is what I did:

In a setVariable activity connected to the Lookup activity by a red 'on failure' line I used:

@{activity('Lookup1').Error.Message}

花括号{}强制转换为字符串。

The curly braces { } coerce to a string.


这篇关于解析Azure Data Factory上的Error Json消息,并将其作为输入传递给另一个活动。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆