How to exit a loop if an error occurs?

Hi!

I have a question regarding errors in loops. In my process, Im using a while loop in which I perform some activities. If an error in this activities occurs, Im catching it with a Try Catch and then would like to skip all other activities and go to the next element of the list and perform the first activity again in the while loop.

As I`m not able to drag in a “break” activity, do you have any ideas how I could solve this issue?

Thanks!
Fabian

Hi,

In this case, we can use Continue activity in While loop. Can you try this?
Note: In older version, while activity doesn’t support Break and Continue. So if you use old version, please update UiPath.System.Activities package.
InterruptibleWhile activity supports Break and Continue.
img20220216-a3

Regards,

2 Likes

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