Try Catch in Do While

Hi I’m trying to use TryCatch inside a Do while (eg 1,2,3,4,5)
However, if an exception occurs while doWhile 3 is being executed and is caught by the catch,
is there a way to go back to the beginning and run it again from 4?
Or is the method I want possible if I put Try Catch in Do While like the image?



Can you try Continue activity in Catches area. And increment counter if needed, before then.


counter? What counter are you talking about?

Oh, and I have one more question!
Let’s say we put Try Catch inside Do While.
the process flow

Trying to send a condition on whether Do While continues or stops at 1!
So, if we assume that do While stops when the condition is True,
If 1 sends True, does 2, 3, 4, 5 not execute and stop?
Or does 2, 3, 4, 5 run after 2, 3, 4, 5 are executed while holding True at 1 and then stop?


Don you use counter to check continue/exit do while loop, don’t you?

BTW, can you share your current workflow? I think it’s better if there is specific code/workflow for your question.



For the counter variable, check below

Counter is a variable with Int32 type

Hope this may help you