docs(salesforce): add INVALID_CROSS_REFERENCE_KEY FAQ for Update Record errors - #2306
Merged
Merged
Conversation
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Added a new FAQ section "Why am I seeing an
INVALID_CROSS_REFERENCE_KEYerror when updating a Salesforce record?" todocs/salesforce-integration-faqs.md. The section explains that this error comes from Salesforce (not Clay), passes through to the cell unmodified, and is caused by one of three conditions: wrong object type ID prefix, deleted/merged record, or integration user lacking record-level write access. Each cause includes a targeted fix.Why
An Intercom ticket from Miles Ross at Pacvue (Enterprise) asked why they were getting "invalid cross reference ID" errors in their Salesforce Update Record action. Fin didn't handle the conversation — it was escalated directly to a human (Bo Morin) who gave a detailed explanation. The existing
docs/salesforce-integration-faqs.mdhad no entry for this error. Adding it so Fin can answer next time without escalation.The support agent's explanation explicitly covered all three causes, and the customer said "Thanks!" then immediately asked to close the ticket — strong signal the answer fully addressed the question. Multiple other enterprise customers have hit the same error (corroborating Slack threads below).
Source link(s)
public-actions/apps/salesforce-new-ui/actions/update-object/action-code.ts:212-223confirms Clay extracts.messagefields from Salesforce's error array and returns them to the cell without wrapping (INVALID_CROSS_REFERENCE_KEYhas no special-case branch; onlyUNABLE_TO_LOCK_ROWis intercepted by name). Action definition:isPublic: true, no Eppo/LaunchDarkly gate — available to all users. All three stated causes verified against code and corroborating Slack threads (#proj-audience-import-export Apr 2026 confirming deleted-record cause; #team-audiences Aug 2026 showing the same error in a different context).Uncertainties
None. Cause 3 (sharing rules/ownership) is technically a slight simplification — Salesforce sometimes returns
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITYfor pure permission denials, but returnsINVALID_CROSS_REFERENCE_KEYwhen the record is invisible to the integration user (indistinguishable from non-existence from the user's perspective). The description is functionally accurate for customer self-service troubleshooting, and matches how Clay's own support agents explain it to customers.Related observations
None.
Closes DOC-2054