为什么我在逻辑应用程序中的条件块后看到随机 ActionFailed

Why do I see random ActionFailed after condition block in logic app

我经常在条件块后有 ActionFailed. An action failed. No dependent actions succeeded.。这看起来很随机,如果我重新提交 运行,它就会消失,就好像存在某种竞争条件一样。

我知道采用空条件分支会导致 Skipped 结果,我知道我可以通过设置 Configure 运行 after 来包含 Skipped(这对于任何愚蠢的原因都不是默认的)但我尝试了一种替代解决方案,将“无操作”块放入空分支(只是一个无用的撰写块),以便始终使成功结果超出条件,如下所示。

这是因为condition的两个分支实际上是并行执行的,而未被采纳的分支如果更快,会导致condition的结果被跳过?这是一种非常违反直觉的行为(不幸的是,就像大多数 Flows 一样)。

Is this because both branches of condition are actually executed in parallel and the not taken branch, if faster, will cause the outcome of condition to be skipped

对于上面的问题,我认为不是both branches of condition are actually executed in parallel引起的,因为我们可以看到“Switch”动作秀的expression result updated。条件的结果不会影响“切换”操作。

根据一些测试,该错误可能与“Switch”下的情况有关。如果“Switch”下的任何 case 失败,就会显示此错误。所以请检查“Switch”操作下的案例。我们可以看到“Switch”花费了5分钟,所以请检查“Switch”下是否有需要很多时间的情况作业并因超时而失败。