Definition and Usage
Starts a try block for error handling. The Try command is used in conjunction with Catch and End Try commands to create error handling structures in your RPA workflow. This allows you to gracefully handle exceptions that may occur during workflow execution rather than having the entire process fail.
Parameter Values
Input parameters
This action does not require any input parameters.
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
While the Try command itself doesn't require variables, the code blocks inside the Try structure can contain variables. Any variables created within the Try block will be accessible in the corresponding Catch and End Try blocks, maintaining their scope throughout the error handling structure.
Notes
The Try command must always be paired with a corresponding Catch and End Try command to form a complete error handling structure.
Any actions placed between the Try and Catch commands will be monitored for exceptions.
If an exception occurs in the Try block, execution immediately jumps to the Catch block.
Multiple Catch blocks can be used to handle different types of exceptions.
Code within the Try block will execute normally if no exceptions occur.
Using Try-Catch blocks helps create more robust and fault-tolerant automation workflows.
Nested Try-Catch blocks are supported for handling errors at different levels of your workflow.