How to exit form for loop and begin from the beginning of the automation

in the middle of the automation there is if condition is required if the condition is true it should exit form the loop and if it is false it should execute from the beginning, like log in to the website and it should take the next order number form the loop,

1 Like

Hello @T_Y_Raju ,

For the first request, depends on your conditions, but you can use Continue or Break Activity.
https://docs.uipath.com/activities/docs/continue

For the second request, to execute from beginning, it’s better to use Reframework or another template base on transaction:

I hope it helps.

Vasile.

1 Like

90 % development is done is sequence. I dont have much knowledge on Reframework

can u plz provide any other solution

break and continue not working…dont know much about reframe work…plz provde other solution

Hello @T_Y_Raju ,

Can you provide a screenshot or your file to investigate?
If it’s a loop, for sure Continue will go to the next item from Loop, and break will exit the loop and continue with the next activity.

Other options is to have Try/Catch and some Throw actions.

Please send your flow and we will propose a solution, if possible.

Vasile.

continue activity is working

Hi @T_Y_Raju ,

If that solved the issue, maybe you can mark the answer as a solutions.

Vasile.

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