Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Try/Catch/Finally parallel branch scope

(0) ShareShare
ReportReport
Posted on by 1,597 Super User 2024 Season 1

Hello,

 

I have built a complex flow with multiple parallel branches with the same actions in.

I have put these into a scope with the thought of using a Try/Catch/Finally technique for error handling.

 

You can see how this is structured below. There are about 6-7 parallel branches spread across 3 Try scopes (6-7 in each scope).

sudosaurus_0-1699034221588.png

I was following this article, however I'm unsure how I'd implement this given that I have multiple branches in one scope rather than the one shown: https://softchief.com/2022/06/30/power-automate-exception-handling-using-try-catch-finally/

It would be helpful to get some pointers as how best to achieve this?

Thanks!

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Try/Catch/Finally parallel branch scope

    Just a quick note. If you are passing the value from Get files (properties only) - Battelbox-Payroll into the Apply to each 9, then there's no point having the Condition to check if the length is greater than 0. If the length is 0 then the Apply to each 9 wouldn't even run since there are no items to iterate over.

     

    grantjenkins_1-1699157628795.png

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: Try/Catch/Finally parallel branch scope

    Below are two different options.

     

    Option 1: Use a scope for each parallel branch. However, you would still need to handle the errors within each parallel branch which would mean more duplication.

    grantjenkins_0-1699151291070.png

     

    Option 2: Main/Child - Set up just a single flow (no parallel branch) and call it from another flow passing in the data you need to differentiate each branch (Payroll, OOH, etc.). This is how I'd go about it as you would only need to build a single branch (not duplicate all the actions). With this you can choose to return the error back to the main flow, or handle it (Try, Catch, Finally) within the child flow (I'd likely handle it within the child flow in this instance).

     

    For Option 2, can you let me know the following:

    1. What is your main trigger?
    2. What data would you expect to pass in to the child flow (apart from Department)?
    3. Do you have access to Premium connectors such as When a HTTP request is received?
  • sudosaurus Profile Picture
    1,597 Super User 2024 Season 1 on at
    Re: Try/Catch/Finally parallel branch scope

    @Jcook - how do I catch errors from the Create/Update file actions?

  • Jcook Profile Picture
    7,779 Most Valuable Professional on at
    Re: Try/Catch/Finally parallel branch scope

    Hi @sudosaurus 

     

    In your flow everything is in 1 scope. That’s your “Try”.

     

    you can have another scope after your “Try” as the catch for errors.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1