Flow Designer - Error "is not a valid record"

Joanne Johnson1
Kilo Expert

I have an issue where I get a flow to work properly, then it fails with an error "is not a valid record".  Once it fails, the only way to resolve the issue is to copy it to a new flow.  Has anyone seen this before? Thank you in advance!

Screenshots below:

  1. Execution: Successful
  2. Execution: Error
  3. Log information

Screenshot 1

find_real_file.png

Screenshot 2

find_real_file.png

Screenshot 3

find_real_file.png

1 ACCEPTED SOLUTION

Joanne Johnson1
Kilo Expert

Solution found!

As stated above, this issue was intermittent for me.  ServiceNow support said that I was receiving this because the RITM wasn't found immediately.  Their recommendation was to add a Wait 15 seconds prior to the "Get Catalog Variables", however; I added a "Wait For Condition" where the Request Item Record Number is not empty.

This solved 2 conditions where I was receiving the Error "is not a valid valid record"

  • When I submitted anything through the Service Portal
  • When I submitted multiple requests for the same item back to back

Here is a screenshot of what I ended up with:

find_real_file.png

View solution in original post

5 REPLIES 5

ReginaldFawcett
Tera Guru

Hi Joanne,

I have experienced an issue like this before. I found it was happening when I copied an existing flow and tried to modify it. The flow would run successfully a few times and then start spitting out errors.

To resolve this I rebuilt the flow from scratch. I have given myself a new rule never to copy a flow, just spend the time to build a new one.

Hop this helps.

Thank you!  I thought that I was losing my mind!!

I'm going to open up a SNOW ticket for this so that they take a look and potentially put a fix in for it.  I'll poste the ticket on the thread.

 

Joanne Johnson1
Kilo Expert

For anyone that is interested in this topic, I opened up a case.  I will update this article if action is taken.

UPDATE:  PLEASE SEE POST BELOW WITH THE SOLUTION.

find_real_file.png

 

Joanne Johnson1
Kilo Expert

Solution found!

As stated above, this issue was intermittent for me.  ServiceNow support said that I was receiving this because the RITM wasn't found immediately.  Their recommendation was to add a Wait 15 seconds prior to the "Get Catalog Variables", however; I added a "Wait For Condition" where the Request Item Record Number is not empty.

This solved 2 conditions where I was receiving the Error "is not a valid valid record"

  • When I submitted anything through the Service Portal
  • When I submitted multiple requests for the same item back to back

Here is a screenshot of what I ended up with:

find_real_file.png