0

We have one specific user that seems to keep getting this flow error: Error Occurred During Flow

"Shipment_from_Order": INSERT --- INSERT FAILED --- ERRORS :... An error occurred at element Create_New_Asset (FlowRecordCreate). INSERT --- INSERT FAILED --- ERRORS : (INVALID_CROSS_REFERENCE_KEY) Record Type ID: this ID value isn't valid for the user: 012C0000.......(18 digit), I realized that the Record Type ID was actually supposed to be 012C000000....(14 digit) not 012C0000....(18 digit), so I removed the wIAO from the flow, and it now works correctly when I fire the flow. When this other user does it, however, she continues to get the error.

0

You need to check that User's permissions. This isn't an issue with your Flow if it only affects one User. It is a permission issue.

Things to check:

  1. Do they EDIT both objects related to the 'action'? If not, then they cant do this via a Visual Flow (only PB since it runs as System)
  2. Do they have VIEW access to the records? There might be a sharing rule or public group that you're missing.

Now, with that stated... why are you hard coding the Record Type ID? Not a best practice. You can do a query for it, just like you would with Apex to find what you're looking for, and then you don't have to worry about it.

0

Just to be sure, record type should be a 15 digit ID, not 14. I trust you have the right length since its working for you.

To resolve the error, you need to make sure the user has access to the record type via profile or permission set, otherwise the user cannot create records w that record type, which would lead to the error you describe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.