How to stop the flow in case of an exception?

Hi. I want the workflow to stop after displaying a message in case of any exception. I have used the message box in “catch” to display the required message. But how do I stop Uipath from executing the remaining part of the workflow ?


That would be the default behavior if you only have a tryCatch on the top level of your workflow, if you have other try catch blocks inside the main one, they would need to rethrow (using rethrow activity) exceptions so they would reach the main layer.

Then you could prompt your message box on the main layer catch.