I don't understand why I get this error INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user: 0121t0000001qxAAAQ [RecordTypeId] enter image description here

I want to insert field numbers in a 'history' object that links these numbers to the corresponding opportunities. I think I may have put the wrong API name for the field?

Thanks for your help

2 Answers 2


This error means that your user does not have access to the record type you have specified. With Id 0121t0000001qxAAAQ.

You can either grant access to this in the user's Profile or via a Permission Set.

For more information, see How Is Record Type Access Specified?


Thank you for your answer, in fact it was the wrong object's ID ! So I took the 'history' object ID and it's fine now.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .