Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Create an error condition exit

Create an error condition exit

An administrator can reroute the workflow when a script error occurs by creating an error condition exit for specific activities within the workflow. This allows the workflow to process script errors in a predictable way and not create undesirable results.

  1. Open and check out a workflow.
  2. Right-click in the top portion of the activity for which you want to create an error exit.
  3. Select Add condition from the context menu.
  4. Add a condition exit with the following values:
    • Name: Error
    • Condition: activity.state=='faulted'
  5. Click Submit.

    The Error exit appears on the activity.

  6. Connect the Error exit to another activity for handling the error state, such as Notification or Log Message.
    Error handling exit

This site is scheduled for a small content update on Monday, November 19th, between the hours of 3:30pm and 5:00pm Pacific Time (Nov 19 23:30 – Nov 20 1:00 UTC). Acces to this site may be slightly delayed during that time.