<turbo-stream action="update" target="wiki_card"><template>
<h1>E2120 Invalid Cross Reference Id</h1>
<p>The <code>INVALID_CROSS_REFERENCE_KEY</code> error in Salesforce typically means that you're trying to reference a record that either:</p><ol><li><strong>Does Not Exist</strong> – The referenced record ID is incorrect or doesn't exist in the system.</li><li><strong>Is Deleted</strong> – The record was deleted (sent to the Recycle Bin) and can no longer be referenced.</li><li><strong>Is Not Accessible</strong> – The user making the request lacks the necessary permissions to access the referenced record.</li><li><strong>Is of the Wrong Type</strong> – You're passing a record ID that belongs to the wrong object (e.g., using an Account ID where a Contact ID is expected).</li></ol><p><strong>E2120 - ECE_SForceDataError: We got an error back from SalesForce when trying to update or insert data in SalesForce: Error returned from SFDC on update: [message: invalid cross reference id , statusCode: INVALID_CROSS_REFERENCE_KEY ]. </strong><br><br></p><p>Possible Solutions:</p><ul><li><strong>Double-check the ID</strong>: Ensure the referenced record ID is valid and exists.</li><li><strong>Verify access</strong>: Confirm that the user has the necessary permissions to view/edit the record.</li><li><strong>Check if it's in the Recycle Bin</strong>: If so, restore it or use a different valid record.</li><li><strong>Ensure the correct object type</strong>: Confirm that the ID belongs to the expected object.</li></ul><p><br>A good exercise is to take the ID throwing the error and put it at the end of the Salesforce URL (easier in Salesforce Classic) to confirm if the record actually exists or is of the correct type.<br><br></p>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='E2120 Invalid Cross Reference Id' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='E2120 Invalid Cross Reference Id Salesforce Data Error' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>E2120 Invalid Cross Reference Id - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
