Automated tasks may occasionally fail. This may be due to configuration errors (i.e., a wrong APEX method name) or runtime errors (e.g., a service called via REST is unavailable).
In such a case, the following task fields are set (these apply to, and are visible only for automated tasks):
Field | Description |
---|---|
Is Error | Set to true if an automated task failed. |
Error Message | Error message set when code execution fails with error details. |
When an automated task is executed manually the error is immediately displayed to the user; however, for automated tasks executed in the background (i.e., with Future or Batch execution types), execution errors cannot be shown on screen. Failed tasks are shown in:
- Failed Automated Tasks list view – the view contains all failed tasks across all work orders.
- In the work order execution chart in Kanban and List view modes:
Retrying Failed Automated Tasks
Failed automated tasks are not re-tried automatically but can be re-tried manually using the Execute action.