[英]ADF activity succeeded does not move on to the next activity
I have a Web activity that performs a GET operation to an endpoint.我有一个 Web 活动,它对端点执行 GET 操作。 I have set it up to do something On Failure (which works just fine) and another set of action upon Success.
我已将其设置为在失败时执行某些操作(效果很好)并在成功时执行另一组操作。 But this last part gets skipped entirely even though the output of the Web action is Succeeded.
但是,即使 Web 操作的 output 成功,最后一部分也会被完全跳过。 Here is shown the succeeded status and my config enter image description here
这里显示成功状态和我的配置在这里输入图像描述
I tried removing and re-adding the On Success connector, but yielded no different results.我尝试删除并重新添加 On Success 连接器,但没有产生不同的结果。
Both dependencies of set runtime status
cannot end as succeeded. set runtime status
的两个依赖项都不能成功结束。 You need to use a combination of skipped/completed states: https://learn.microsoft.com/en-us/azure/data-factory/tutorial-pipeline-failure-error-handling您需要使用跳过/完成状态的组合: https://learn.microsoft.com/en-us/azure/data-factory/tutorial-pipeline-failure-error-handling
From the pipeline image, I think it should move on with success.从管道图像来看,我认为它应该会成功。 Can you please cross check what is status code of web activity and is it returning something back?
您能否交叉检查 web 活动的状态代码是什么,它是否返回了一些东西? Is the status code be 2xx?
状态码是2xx吗? If I were you could have tried to check with the "Upon Completion" option and see it works.
如果我是,您可以尝试检查“完成后”选项并查看它是否有效。
Based on your flow, it would never proceed ahead:根据您的流程,它永远不会继续进行:
Because as per your logic to proceed to the Set run time, Web activity 1 AND Web activity 2 should be success but that can never be the case since web activity 2 can be a success only if web activity 1 has failed thereby not proceeding further.因为根据您继续设置运行时的逻辑,Web 活动 1 和 Web 活动 2 应该成功,但情况永远不会是这样,因为 web 活动 2 只有在 web 活动 1 失败后才能成功,因此不会继续进行。
The below blog explains how to handle this: https://datasharkx.wordpress.com/2021/08/19/error-logging-and-the-art-of-avoiding-redundant-activities-in-azure-data-factory/下面的博客解释了如何处理这个: https://datasharkx.wordpress.com/2021/08/19/error-logging-and-the-art-of-avoiding-redundant-activities-in-azure-data-factory /
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.