Why do I get run time errors alert even though I have try catch?
I have rethrow in my catch.
I have a main flow in try catch. That calls a sub flow in try catch.
If error happens in sub flow, should I am doing rethrow in the catch.
Does it get caught in try catch in main?
Do I have to delete one try catch some where?
If you rethrow in catch then the error pops up…if there is a try catch above it then it gets caught there but if in catch if any error occurs or if there is rethrow then the error bubbles out again
bubble up means it would try to come out of the current sequence till it finds a catch which handles it or shows an alert
then you can actual remove the inner try catch or in catch of inner try catch have rethrow and on outer catch block do your steps and dont include rethrow
I do not want the error alert show up.
I want the main workflow to handle the catch.
so if I delete the try catch for sub flow which is invoked, would that solve the purpose?
if your intention is to just to end the flow you can use return activity
otherwise you can remove the try catch from the sub-flow but if you face any exceptions it will be propagated to the main flow s well as outside alert thing to handle that use another parent try catch