Catch Exceptions in a Loop

My flow has a For Each loop with many sub flows running in this loop. If anything throws an error, I want to catch and log the exception, then have the loop continue. How can I set this up?

Comments

  • There is an option on the Run Flow step that will add an outcome for exceptions. This will allow you to set up what happens after an exception has occurred such as a log step to log the exception.

    Below I have an example for how this could be set up in the loop scenario you mentioned. Items that go through My Subflow successfully will also go through the 2nd Subflow before returning to the loop step. If anything throws an exception in My Subflow, it will route through the placeholder step and return back to the loop for the next iteration.

Sign In or Register to comment.