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

Joanne Johnson
Kilo Explorer

The resolution did not work for long.  Sometimes it would work & other times it did not.  ServiceNow recommended that the Business Rule Start FlowDesigner Flow be reverted back to OOB, which requires that the Insert checkbox = FALSE & that the condition of the Request Stage = request_approved.  To do that, I came up with the solution below.  Note that I knew that I was the only one that created Request Items or flows, so I wasn't going to break anything, BUT I don't know if there is a downside to this approach... Please let me know if you think this may cause an issue in the future if we plan to use Flow Designer for all Request Items.

Here is what I ended up with.  I welcome any feedback!

I don't know if there is a downside to this solution...  Note that we are just beginning our Service Catalog journey, so I'm not going to break anything.

The approach I took was:

1.  System Policy-> Rules->Approval:  set up a test below for Active = True & Category = anything

2. System Properties->Approval Engines:  Changed Request to "Approval Rules

This set the approval on the sc_request to approved.  Ultimately I want all requests to be approved so that I can get to the Flow, which has the Business Rule that looks for the request to be in the approved state.

Step 1:

find_real_file.png

Step 2:

find_real_file.png