Hi there!
We are getting an error from a custom integration that says:
Record Type ID: this ID value isn't valid for the user: 0123F000002c926QAA", 4"errorCode": "INVALID_CROSS_REFERENCE_KEY", 5"fields": [ 6"RecordTypeId"
but I can't find this record type id anywhere. The integration user has all the necessary permissions and record type access to perform the actions. Salesforce even says "data not available" when I search for that record type id - any idea why that might be or how to solve this??
Thanks a ton!!
-Brenna
Hi Brenna,
The INVALID_CROSS_REFERENCE_KEY on RecordTypeId usually means Salesforce can't use the Record Type ID being sent by the integration for that transaction.
Even if the integration user has the correct permissions, I would check:
- Confirm that 0123F000002c926QAA actually exists in the target org and belongs to the object being inserted/updated.
- Check whether the Record Type was recently deleted and recreated. A recreated Record Type gets a new ID, so an integration using the old ID will fail.
- Verify the integration is pointing to the correct org/environment. Record Type IDs are org-specific and shouldn't generally be hard-coded between environments.
- Check the integration payload/logs to see where that RecordTypeId is coming from.
- Verify the Record Type is available to the integration user's profile/permission set.
If you can't find that ID in Setup or through a query, I would especially suspect a stale Record Type ID in the integration configuration or source system.
If you can share the object being created/updated and the relevant integration payload (with sensitive data removed), it would help narrow down the cause.