web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : g65I/a41MMuAGdNjLV2Bk+
Power Automate - Building Flows
Answered

How to prevent one failed action from failing the whole flow

Like (0) ShareShare
ReportReport
Posted on 19 Apr 2021 16:14:57 by

I've been experimenting with some error handling in my Power Automate flows, because much of the time, the errors that occur are ones that can be ignored, and I still want the rest of the flow to run. Typically, I've been using a model where after an action that has a non-negligible probability of failure, I have two parallel branches: one that runs if the action was successful and one that runs if the action failed. For simple cases, this has been working.

However, in flows where the failure can occur within a scope or other control block, the failure of any action within that block causes the entire block to fail, even with that error handling inside. Take this example...

PowerAutomate_FailedScope.png

The action outside of the block is configured to run if its "parent" branches are successful or skipped. But when anything inside that scope block fails, the whole scope is marked as failed, so that following action doesn't run. You can see in the image that the error handling itself actually worked; the "failed" branch ran, and the "successful" branch was skipped. So, how do I make this situation report the scope as a whole as successful?

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on 27 Apr 2021 at 16:48:24
    Re: How to prevent one failed action from failing the whole flow

    The only solution I've found to this is to change how the error handling works. Instead of configuring the succeeding actions to run after "is successful" and "is skipped," I also needed to enable "has failed."

    This has the effect of causing the error handling to work not as intended, however. I want the flow to continue if and only if the preceding actions in all relevant branches was successful or skipped, but I don't want the flow to continue if one of those actions failed. The problem lies in the behaviour of the scope container, which is reported as "failed" even if error handling within it has ensured a failed action is handled properly, and all subsequent actions in the container were successful or skipped.

    Suggestion to Microsoft: re-tool the scope container to report a "successful" status if the final actions of each contained branch is either successful or skipped following an error handler. I will post an idea to this effect.

  • Community Power Platform Member Profile Picture
    on 19 Apr 2021 at 16:43:41
    Re: How to prevent one failed action from failing the whole flow

    Hi, @CFernandes. That's precisely what I've done (described in my original post), but the entire block is still marked as failed, when it should be marked as successful, because the error handling inside was successful.

  • CFernandes Profile Picture
    8,305 Most Valuable Professional on 19 Apr 2021 at 16:37:29
    Re: How to prevent one failed action from failing the whole flow

    Hey Mate,

     

    You can add Error handling - https://flow.microsoft.com/en-us/blog/error-handling/

     

    CFernandes_0-1618850203987.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 798 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 469 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 333

Last 30 days Overall leaderboard
Loading complete