Use the Throw action inside a Try block to signal a logical error — for example, an invalid input value or a failed validation check.
When the Throw action fires, execution skips any remaining steps in the Try block and jumps directly to the Catch block. Outside a Try block, the Throw action displays a standard error dialog that requires a user to select Close to dismiss it.
Consider a scenario where your automation is reading data from a spreadsheet that contains employee IDs in column A. If a row is empty or contains an invalid ID, the Throw action triggers the Catch block to record the error. The Try, Catch, and Finally actions can be used within a loop. This ensures that a single invalid record does not stop the entire automation — only the affected record is skipped and its error is logged.
Settings
- Please enter exception message (Optional)
- Enter the message to display when the automation encounters an error. Select the Insert a variable icon to use an existing variable.
- Exception
- Select a automation exception from the drop-down list.