Skip to content

fix: map Composite API statusCode to errorCode in SaveError (#1854) - #1861

Open
PamodaW wants to merge 1 commit into
jsforce:mainfrom
PamodaW:fix/composite-status-code
Open

PamodaW wants to merge 1 commit into
jsforce:mainfrom
PamodaW:fix/composite-status-code

Conversation

@PamodaW

@PamodaW PamodaW commented Nov 17, 2026

Copy link
Copy Markdown

Fixes #1854.

Composite API error entries return statusCode (e.g. DUPLICATES_DETECTED) instead of errorCode, so they slipped past errorCode checks.

  • Normalize statusCode -> errorCode in create/update/upsert/delete composite results
  • Add optional statusCode to SaveError
  • Add mock unit tests

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle Composite API errors with statusCode

1 participant