The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Flow Error Handling - Error code and Message is not available

Supriya39
Giga Guru

Hi All,

 

I am trying to capture error for flow. I have enabled Error Handler and trying to update a column in call with the error failure message. The Error object is available but not the code and message. Servicenow version is SaneDiego. When I worked this out in Dev version, it was available but not in PROD. Please let me know possible reason. Find below Screenshot: 

 

Supriya39_0-1681730979529.png

 

 

6 REPLIES 6

Sandeep Rajput
Tera Patron
Tera Patron

@Supriya39 How many steps do you have inside your Error Handling Section. According to ServiceNow documentation https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/flow-designer/co... the error handling section should not have more than 10 steps.

 

Screenshot 2023-04-17 at 6.24.53 PM.png

 

Since you trying to access error code and message at step 26 inside your error handling section, the flow designer interface might not be allowing you to access the code and status value as the number of supported steps are maximum 10 and you have already crossed that threshold. I recommend creating a subflow for error handling and passing errorcode and message as input to the sub-flow.

 

Hope this helps.

We can add up tp 10 steps in the Error handling section. My update record is immediately after Error handling step.

Will it be possible for you to share a bigger picture of your flow covering the error handling section? Also, can you try creating a test flow on your instance and add an error handling section into it. If this is instance/release related issue then the error handling section shouldn't show error code and message fields on the test flow too but if this is something related to your flow then the fields should be visible inside the error handling section of the flow. Please perform these steps and let me know the outcome. 

Thanks for replying. Find below bigger picture. I tried this is Dev environment where it is working

 

Supriya39_0-1681810173686.png