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 / Graceful Error Handling
Power Automate
Unanswered

Graceful Error Handling

(0) ShareShare
ReportReport
Posted on by 218

It is possible to use the 'On block Error' to do global exception handling and close out PAD gracefully and use 'Get Last Error' to provide feedback via an output variable, so the cloud flow can send an email or handle an error condition in PAD.

 

But, when you do this the cloud flow completes successfully, and it doesn't show a 'Failure' in the Monitoring in the web portal.

 

It would be better to gracefully handle the error AND set the flow execution to Failure so that the monitoring in the portal is useful.

 

Can this be done?

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    On Block Error, go to Subflow "AnyError"

     

    In Subflow Any Error

    Get Last Error

    Write to text file and save

    'any other actions you want such as close windows or email staff

    Stop flow "with error message"

     

    I believe the stop flow with error message should push out to the monitor where you can direct the reviewer to look at the text file for the error.

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 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard