top of page

Create an exception handler for the entire desktop flow

💡 Do you know that you can use the action On block error as the exception handler for the entire desktop flow?

Problem Description


Power Automate for desktop enables you to handle errors at the action level through the On error functionality:



In addition, you can also implement error handling for a group of actions through the action On block error:


However, it is not obvious how exception handling can be applied to the entire desktop flow to ensure that any and all errors will be caught and handled.



Solution


To create an exception handler for the entire desktop flow, you can apply the action On block error to the entire Main flow:



When an error occurs, the subflow FlowExceptionHandler will be triggered:



The subflow FlowExceptionHandler will retrieve the last error that occurred in the Main flow:



Note that you need to specify what happens thereafter, e.g. send an email notification to inform the user about the error.


Additional Information


  • Last updated on: 29 Jan 2023

  • Tested version(s): 2.27.177.22340

  • Prerequisites: None

  • Dependencies: None

  • Known issues: None

Robotic Process Automation Singapore

CFB Bots is a leading technology service provider in the fast-growing field of Intelligent 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