Kill Process1

Hi All,

i want to handle any type of un-handled exception in code.

i want if any type of error is coming it should close everything(for e.g i have used excel and one desktop application).

so if any error occurs while executing any of them above, it closes all the things.

You can try using the framework state machine which is provided by uipath

Please add Try and Catch blocks.

In the Catch block, kill the processes “EXCEL” and “YOURAPPLICATION”

1 Like

this is a better idea ^^ you should try this first

Hi Rakssh

Please try Try-Catch activities.
image
In the try block, your main processing.

in the catch block, use [kill process] to kill the processi which you want to close.