Error in Updating ServiceNow Flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 06:47 AM
I have a Flow that has over 50 actions/steps in it. I inserted a new action in the middle of the flow, and when I try to Activate it, I get the following error message:
This error message isn't that helpful - it gives me no clue which action/step the issue is in.
How can I identify exactly where this error is occurring in my Flow?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 05:35 AM
Sorry for the delay in replying back. I could not test it the day you posted because it was the day the ServiceNow sub-environments were down, and then I was out of the office for 4 days.
I just tried it this morning, and unfortunately, I could not find the a record in either of those tables with the sys_id shown in my error record screen print.
I appreciate the effort though!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 05:39 AM
I’m not certain that deleted Flow/Action Instances will appear in Deleted Records, but you could look there. Often times, when we see a Sys ID where there should be some display value, it’s because the referenced record was deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 05:59 AM
Good thought, but no luck in finding it there either. The weird thing is, I don't think I deleted any records, only inserted some.
I did have some scripts in there that were referencing the values from other steps. Of course, the references in the scripts do not automatically update themselves. So if you have a reference in your script like this:
fd_data._32__for_each.item
and you insert a step/action before it, you need to manually change it to:
fd_data._33__for_each.item
So I went through my entire Flow, step-by-step, and found a few instances that needed updating and got it all fixed up and it is working now.
However, I would really like to know if there is a way to take that error message box that is returned to the screen, and see if there is any way to pinpoint exactly where the error is based on that, instead of having to manually go through every single step of the Flow.
It would be good to know for future reference, to make handling these errors more efficient.