End Process if user clicks Cancel

Hi All,

I want the BOt to throw exception if the agent clicks on Cancel button while BOT pops up Folder to select file using Select file activity.

Ideally if cancel button is clicked, the selected folder/file path will be empty.
So just check if selected folder/file is empty and then throw exception.

Karthik Byggari

1 Like


Keep that Select File activity in Try block and if you click Cancel button then it will throw exception and it will come to catch block and here Throw System Exception to End Process.

You can also use condition checking to decide to continue or stop. The expected result is not error and hence you don’t need to use Try Catch. "If " activity can meet your objective.

1 Like

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