Power Automate – Error Handling for small flows

In this post I’m reviewing the different approaches for error handling with the well known Try / Catch patterns and error handling for small flows.

Introduction to error handling in Power Automate

In my series of error handling posts Iโ€™ve looked at

In this post I will look at error handling in small flows. Huh, is that any different?

Not, really but when you have small flows with only very few actions that could fail then you could consider a different approach. Something like the following setup could work:

Parallel Error Handling in Power Automate
Parallel Error Handling in Power Automate

Flow runs using parallel branches

When an action fails you will see the flow going into the failed section of your flow.

Parallel Error Handling in Power Automate for Failed flow
Parallel Error Handling in Power Automate for Failed flow

And when an action is successful the flow will continue in the Success branch.

 

Parallel Error Handling in Power Automate for Successful flow
Parallel Error Handling in Power Automate for Successful flow

All of this can be done with parallel actions.  You will find however that adding 4 branches after every action is less practical than the try / catch approach but for smaller flows this could be a good pattern to follow.

Potentially you could even simplify the pattern by merging the Failed, Skipped and Timeout into one branch. That way there is a did run  and a did not run branch. And having two branches after each potentially failing action you might find that this pattern becomes more manageable.

 

 

 


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.