function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brianna BrownBrianna Brown 

Hi all, i'm struggling with a flow that I created. I'm getting the following error

INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user: 0121h0000000AwKAAU

I have permission to this record type on both my profile as well as in a permission set. 

I'm able to create records of this type manually, however when I attempt to trigger the flow, the error occurs.

Thanks for your help!
Best Answer chosen by Brianna Brown
Abdul KhatriAbdul Khatri
INVALID CROSS REFERENCE KEY normally happens when you are trying the Id in a wrong field. Can you please make share that 0121h0000000AwKAAU is actually assigned to the RecordType of the right object.

All Answers

Abdul KhatriAbdul Khatri
INVALID CROSS REFERENCE KEY normally happens when you are trying the Id in a wrong field. Can you please make share that 0121h0000000AwKAAU is actually assigned to the RecordType of the right object.
This was selected as the best answer
Brianna BrownBrianna Brown
Hi Abdul - you are correct this was the issue. After I posted the question I determined that I was accidentally referencing the incorrect record type id in my flow. Thanks for the response!
Abdul KhatriAbdul Khatri
Would you be kind marking my reply best?