Power Automate: run the flow even if an action fails

Inside a flow, there may have many actions and if one of them fails, the flow will be automatically stopped with a failed state but I can change this configuration manually so even if one action fails, I can tell the flow to keep running until the end.

For that, I will have to configure the “run after” option of the next action. For instance, I have this flow:

power automate

If the “run script 1” fails, my flow will stop to run:

power automate

As you can see, “run script 1” has an error “not found” and “run script 2” has been skipped and in the history, I got this information:

power automate

In spite of this error, to keep the flow running, I will configure “run after” of “run script 2” since it is the next action after “run script 1”. I will click on “run script 2 -> settings -> run after”:

power automate

I will expand “run script 1” and since “is successful” is already selected by default, I will include “has failed”:

power automate power automate

NOTE:

  • I am telling to trigger “run script 2” even if “run script 1” is successful or failed
  • I can also include “has timed out” if I believe that “run script 1” may take very long to complete and may get a time out error
power automate

NOTE: just above “run script 2”, we can see coloured dots corresponding to the configuration

This is the result when running the flow:

power automate

As you can see, “run script 1” has failed with the same error but this time, “run script 2” completed successfully and in the history, I got this information:

power automate

In the other hand, since the status is “succeeded”, there is no way to know that “run script 1” has failed except if I go inside the flow by clicking on:

power automate

If I don’t want to do that each time, the best way is to get a notification, read Power Automate: send a notification by email when a flow fails.

In case if “run script” will fail and I want “run script 1” to run, I will need to repeat the same configuration in the “run after” option for “run script 1”.

Interesting Topics