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
Baird_SBaird_S 

INVALID_CROSS_REFERENCE_KEY meant RecordType not Active

Recently got this error.

System.DmlException: Insert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, Contribution Record Type: this ID value isn't valid for the user: 012i0000000E0suAAC: [RecordTypeId]

I checked all the user profile permissions, etc.  Finally discovered that another user had deactivated the Recordtype.  I reactivated it, error is gone.

Hope that saves time for someone else.
AshlekhAshlekh
Hi,

Nice, yes it will helps other.

Below link also help other...

http://www.forcetree.com/2011/12/insufficientaccessoncrossreferenceentit.html