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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to prevent one fai...
Power Automate
Answered

How to prevent one failed action from failing the whole flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    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!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard