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 / Power Automate Desktop
Power Automate
Unanswered

Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team,

 

Please help us on how to use error handling in Power Automate Desktop?

 

 

 

Thanks&Regards,

 

I have the same question (0)
  • miketran13 Profile Picture
    720 on at

    Hello,

     

    Right now, we don't have any official ways for handling the error or any best practices for that in PAD. 

    From my experiences, error handling in PAD is depend on the type of your process, so you have to decide how to handle the error if it occurs. 

     

    So, in my cases, I used these kinds of things to handle the error:

     

    1. You should separate your process with many sub flows for each step so that you can easy to manage the error. Inside each sub flow, you can have this action: On Error Block (it is a try catch block), by using this action you can catch the error then decide the next steps if the error occurs. 

    2. You should have many actions for: If text on screen, if web page contains, If image, If window. By using these actions you can check wheather the text, image, control appears on screen or not. 

    3. You should add logs into a List or Datatable for every steps and when an error occurs you have all the logs for troubleshooting. These logs should be written to a CSV file and stored in a folder. 

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • Rkmatieda Profile Picture
    77 on at

    Hi @Anonymous ,

    You can use "Flow Control" activities like "On Block Error", "Go to", "Label" and "If..Else "to create sophisticated code of navigating to desired place in case of error generates in the enclosed code by "On Block Error". see below one of the illustrations.

     

    Rkmatieda_0-1611357910752.png

     

    Also for each activity, you have to possiblity to select the action in case of some error. This includes "Retry action", "Continue flow run", "Throw error", etc.

     

    So using these options you can determined the nature of your exception handing. 

     

    Hope this is helpful.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard