Shamma Negi
Kilo Sage

Hi All,

 

I would be covering very interesting topic in ServiceNow wherein we will see how and what is the benefit of handling errors in Flow Designers in ServiceNow.

 

Enable your flows to catch errors. Run a sequence of actions and subflows to identify and correct issues. For example, have flows log output values, send notifications, and run corrective subflows when they produce an error.

 

Benefits

Enable a flow error handler to gain these benefits.
  • Automate the identification of flow errors as they happen. Capture and push flow error information rather than manually search for issues caused by flow errors.
  • Automate the resolution of flow errors. Run actions and subflows to update records rather than manually updating records affected by flow errors.
  • Build your own action error handling logic. Specify when actions return an error rather than always return an error.

 

 

Error Handler components

 
ShammaNegi_0-1702052061176.png

 

 

1. Error Handler switch: Switch on the Error Handler. Option to enable or disable flow error handling. When enabled, the flow displays the Error Handler section.

 

2. Error Handler section: When you toggle it on then Use this section to automate the identification and resolution of flow errors. You can add up to 10 items in this section.

Note: The 10-item limit includes any combination of actions, flow logic, or subflows.
 
3. Error Status: It has code and message. It will gives you error code inside it at point4 and error message at point5.
 By default, a value of 1 indicates that the flow produced an error. A value of 0 indicates that the flow ran successfully. You can define your own error codes when you create a custom action.
 
Hope it helps you.
I hope this article helpful. Please mark it as helpful and bookmark if you like it.