Megrez7
Megrez7

Reputation: 1457

How can I change LogicApp status code to succeeded

Within LogicApp I have a parallel branch with run afer set to when fail. If the previous step fails, appropriate actions are taken to mitigate the situation and no more action is needed, nor information on the fail. From business and user perspective that is success, so final Status for the whole LogicApp run shall be Succeeded instead of Failed.

How can I change the LogicApp status to Succeeded? Or revoke a fail status for particular action (so assume this will solve the problem as well), when I know that it has been mitigated?

Upvotes: 0

Views: 2696

Answers (1)

George Chen
George Chen

Reputation: 14324

This is because the logic apps the engine determines the entire run's status by evaluating all the branch statuses. If any branch ends in failure, the entire logic app run is marked Failed.

The simplest way is add an action after the parallel like the below to add action run after both is successful and is skipped. Cause you already set the parallel action to handle the error and only one branch could be skipped, and with this setting even one branch gets exception failed the logic app still could return fail.

enter image description here

The last action could be any in my test I use a response action, make sure this action will success. And the below is my test, one only one action fail but only one branch is skipped one with one branch failed.

enter image description here

enter image description here

Update with terminate: Check my setting for terminate.

 supp

enter image description here

Upvotes: 1

Related Questions