Use the Try Catch component
Catch an error or exception that occurs in a component in an automation.
Before you begin
Role required: none
About this task
To configure the properties for the Try Catch component, see Properties of the Try Catch component.
For details on the issues related to the Try Catch component, see KB article KB1123551, KB article KB1123552, and KB article KB1123556.
You can use multiple instances of the Try Catch component in an automation to handle errors from other components along the same execution path. When the Try Catch component catches an error or exception in a component, the automation after the failed component doesn’t execute. The Try Catch component returns the error message and can optionally execute an alternative flow which is connected to its On Error port. If an activity comprising a Try Catch component calls another activity with no Try Catch component along the same execution path and after its Try Catch component, the Try Catch component can catch errors, if any, in the callee activity.
Procedure
The TRY CATCH component catches the error from the ReadFromExcel method
The Try Catch component catches the error from the ReadFromExcel method. The On Error port then passes the control to the Show component.