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).
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!
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.
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.
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:
@Jcook - how do I catch errors from the Create/Update file actions?
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.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1