Try catch invoke

I have main flow with try catch
enclosing invoke workflows sub1, sub2, sub3.
Each sub flows do not have try catch.
I am hoping main would catch exceptions from all three invoked sub flows.
correct?

Thank you,

Hi @A_Learner

In this setup, any exceptions thrown within sub1, sub2, or sub3 will propagate up to the try-catch block in the main flow. The try-catch block in the main flow will catch these exceptions, allowing you to handle them appropriately.

Regards

@A_Learner

Yes your understanding is correct…if you run those workflows separately then main would not come into picture but if they are invokes from main…and inside try block then yes

Cheers

1 Like

@A_Learner,

Main would catch all the exceptions but as soon as any sub workflow will through exception, next invoke will not be executed. Main workflow will go to Catch section.

If you want to have your sub workflows run despite any errors in previous workflows, you will have to add try catch to each sub flows.

Thanks,
Ashok :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.