top of page

How to handle errors in Power Automate cloud flows

💡 It can be sometimes challenging to figure out how to handle errors properly in Power Automate cloud flows. Let’s discover the best practices.

Problem Description


No matter how well-designed the logic in a workflow is, it can fail due to changes in the data source or unforeseen use cases outside the original design. In these situations, it’s essential to have a process in place to manage these errors.


Automated workflow processes play a crucial role in the success of your business, and if a workflow fails, it’s vital to receive immediate notifications.

Solution


One common pattern for error handling is the “Try-Catch-Finally” pattern. We can use it as below:


  1. Add a scope action and rename it to “Scope - Try”. This scope will have all the main actions for the automation. (The example below shows a simple flow to “Create an approval”.)


    ree

    ree

     

  2. Add a new “Scope - catch” action directly below the “Scope - try” action, configured with the “Run after” settings as below. This will handle any errors. Normally, we will add “Send an email” action in this scope, to notify the end user of any errors.

     

    ree

    ree

     

  3. Add a “Scope – finally” action directly below the “Scope – catch” action, configured with the “Run after” settings as below. This will contain any actions which must be executed regardless of whether the main actions succeed or fail.

 

ree

Advanced steps (optional)


In the “Catch” scope, we can use the Workflow function to extract more information about the flow run, including the link to the flow action. This is done using the “Parse JSON” action. An example is as shown below:


ree

 

Note that when you Parse the JSON from workflow(), two name properties are outputted. Make sure you select the run name.


ree

Additional Information


  • Last updated on: 9 Dec 2024

  • Tested version(s): 2411.3

  • Prerequisites: None

  • Dependencies: None

  • Known issues: None

Start automation journey CTA background - opt.jpg

💡 Need Expert Help?

If you're facing technical issues or need expert advice and support, we're here to help.

Robotic Process Automation Singapore

CFB Bots is a leading technology service provider in the fast-growing field of Agentic AI and Robotic Process Automation. We partner with large enterprises in their Digital Transformation journey and help them and their employees thrive in the Future of Work.

NAVIGATE
CONTACT US
STAY CONNECTED

Singapore

CFB Bots Pte Ltd

Registration No.: 201705263H

77 High Street

#05-09, High Street Plaza

Singapore 179433

T: +65 6909 2099

E: enquiries@cfb-bots.com

Malaysia

CFB Bots Sdn Bhd

Registration No.: 202401045826 (1591672-X)

Suite: 33-01, 33rd Floor

Menara Keck Seng

203 Jalan Bukit Bintang

55100 Kuala Lumpur

T: +60 39 388 0352

E: my@cfb-bots.com

Australia

T: +61 2 8880 5998

E: au@cfb-bots.com

Join our mailing list to get the latest insights on automation

  • LinkedIn Social Icon
  • Facebook Social Icon
  • Twitter Social Icon
  • Instagram Social Icon
  • YouTube Social  Icon
TS Master Logo.png

© 2017-2025 CFB Bots Pte Ltd. All Rights Reserved. Tel: (65) 6909 2099 | Email: enquiries@cfb-bots.com | Privacy Policy | Terms of Use

bottom of page