Flow Error Handling - Error code and Message is not available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 04:31 AM
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:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 05:58 AM
@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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 09:12 PM
We can add up tp 10 steps in the Error handling section. My update record is immediately after Error handling step.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 12:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 02:30 AM
Thanks for replying. Find below bigger picture. I tried this is Dev environment where it is working