Error Handling
An Error Task can be added to a Botflow A file that stores the actions and variables designed to automate tasks. to provide global error handling.
Use an Error Task to trap unexpected situations that arise in the target application.
If an error occurs in a Botflow the Error Task runs and could be set up to:
- Close the target application
- Re-open that application
- Resume by starting over at the beginning of the script
- When an Action error occurs for any reason the Error Task automatically runs.
- An Error Task can include nearly any available action A feature that supplies the instructions in a botflow..
- Once the Error Task runs the Botflow stops unless the Error Task includes a
Resume
Action.
- Read the article about the Resume Action to learn all the ways you can resume the script after the Error Task has been run.
- If no task is designated as the Error Task at the time an action encounters errors, the script stops unless the action was designed to ignore and continue.
- Some actions may be ignored when located in the
Error Task.
- Read the Understanding Ignored Actions for more information.
Note: Only one Task may be designated as the Error Task at any given time. By using the Set Error Task Action in the script, the Error Task can be changed as the Botflow runs so that errors can be handled differently during various sections of the Botflow, as described in Tasks.