Loading

Salesforce Loyalty Management: "INVALID_CROSS_REFERENCE_KEY: invalid cross reference id" when loading or querying Transaction Journal external IDs

게시 일자: Jun 23, 2026
상세 설명

This article explains why we receive the error "INVALID_CROSS_REFERENCE_KEY: invalid cross reference id" (sometimes shown as "invalid cross reference Id") when inserting, upserting, or seeding records on Loyalty Management Cloud objects such as Transaction Journal.

솔루션

Possible Cause 1: The referenced parent or lookup record is missing from the job.

  • Identify the lookup/foreign-key field named in the error.
  • Confirm the parent record exists in the target org by querying it.
  • Add the parent object and the lookup relationship to the same data load or seeding job so the parent is created or resolved before the child record is inserted.
  • Re-run the load with the parent included first.

Possible Cause 2: The running user lacks access to the referenced record or Record Type.

  • Go to Setup > Users > Permission Sets for the API/integration user.
  • Grant access to the referenced Record Type via Setup > Object Manager > <Object> > Record Types, then assign it to the user's profile or permission set.
  • If the error reads "Record Type ID: This ID value is not valid for the user", assign that Record Type  to the user.
  • As a workaround , Try assign "View All Data"/  "Modify All Data" permission to the user via the permission set, then re-test.
Knowledge 기사 번호

005387482

 
로드 중
Salesforce Help | Article