How to kill further execution of the uipath process


#1

Hi Team,

I have a condition (If-else) implemented in my process. If the condition is not met, I need to stop uipath from executing the code further.

How can I achieve this ?

Thanks in advance.


#2

Hi @kaishah,

you can use Terminate workflow activity to exit from UIpath execution

Thanks
Sarath


#3

Hi @kaishah,

if you have an if statement ending with no return and no further code outside of the current workflow then the execution will stop.

You can also use a should stop activity if you are using orchestrator. Should stop returns a boolean that can be used in a subsequent if statement to exit a workflow.

Should stop returns true if the job has been asked to stop in orchestrator.

Thanks


#4

Hello,

Exactly. I have an If Activity, and it does have a code further.


#5

Hi,

Can you please tell me what needs to be entered in the parameters ‘Exception’ & ’ Reason ’ for ‘Terminate workflow’ activity ?


#6

Try to create similar code… inside your Total code… make sure you are making FCondition2 = True then it will stop the code to loop again.