Guides / Integrations / Salesforce
Integration desk

n8n × Salesforce Error Desk

16 exact-error fixes for n8n + Salesforce automations in production. No broad tutorials — only the failure modes that break a live sync.

Authentication

Illustrated diagram comparing the OAuth redirect URL in n8n against the callback URL configured in a Salesforce Connected App.
Authentication•9 min

Salesforce redirect_uri mismatch

The exact place two URLs have to match character-for-character when a Salesforce Connected App rejects n8n's OAuth callback, including the http vs https and trailing-slash mistakes that cause it.

Open fix →
Illustrated comparison of login.salesforce.com and test.salesforce.com OAuth endpoints for a Salesforce developer sandbox.
Authentication•8 min

Salesforce sandbox OAuth login URL

Why n8n's Salesforce credential can fail to authorize against a Developer sandbox specifically, even though the same setup works for a Partial Copy or Full sandbox.

Open fix →
Illustrated n8n and Salesforce workflow whose session expires mid-run with INVALID_SESSION_ID, fixed with isolated credentials and short batched runs.
Authentication•12 min

Salesforce INVALID_SESSION_ID in n8n

Salesforce sessions expire (default two hours) and the token endpoint returns no expiry, so n8n keeps using a session Salesforce has already invalidated. Isolate credentials per workflow, keep each run short, and let n8n re-authenticate on failure.

Open fix →
Illustrated troubleshooting diagram for How to set up a Salesforce Connected App for API access.
Authentication•6 min

Salesforce Connected App setup

External Client App or legacy Connected App, the PKCE and Require Secret combinations that differ between them, the scopes an integration actually needs, and the propagation delay that makes a correct setup look broken.

Open fix →
Illustrated troubleshooting diagram for Salesforce "missing code_challenge parameter": when PKCE is required.
Authentication•6 min

Salesforce PKCE code_challenge

The error means the app demands PKCE and the client did not send it. What the three parameters are, how to generate them correctly, and why the mismatch usually comes from mixing up two app types.

Open fix →
Illustrated troubleshooting diagram for Why Salesforce OAuth breaks after a sandbox refresh.
Authentication•6 min

Salesforce OAuth after sandbox refresh

A refresh replaces the org. Refresh tokens, the app's Consumer Key, the integration user and often the My Domain host are all new — so the credential fails for four independent reasons at once.

Open fix →

Data Sync

Illustrated flow showing an n8n Salesforce upsert node payload failing with an invalid field error while insert succeeds.
Data Sync•10 min

Salesforce upsert bad request

Why the Salesforce node's upsert operation can fail with a vague bad-request message on a custom object even when insert works, and the field-level checks that usually explain it.

Open fix →

Data Validation

Comparison graphic of a wrong-case picklist label versus the exact Salesforce API value, with a record-type availability note, for an n8n restricted-picklist error.
Data Validation•11 min

Salesforce restricted picklist error in n8n

Salesforce restricted picklists reject any value not in their defined set. n8n usually sends the label, the wrong case, a trailing space, or a value not enabled for the record type. Send the exact API value, case-sensitive, mapped to the record type.

Open fix →

Field mapping

Field mapping•6 min

Fix restricted picklist error

Four causes produce this one error: the label instead of the value, a case or whitespace difference, an inactive value, or a value the target record type does not expose. How to tell which, in one describe.

Open fix →
Illustrated troubleshooting diagram for Fix Salesforce "REQUIRED_FIELD_MISSING" when creating records via API.
Field mapping•6 min

Fix REQUIRED_FIELD_MISSING

The error names the field, and the field is often not required in the object's metadata at all. The five places a requirement can come from, and how to find which one is enforcing it.

Open fix →
Illustrated troubleshooting diagram for Why a valid picklist value still gets rejected: Salesforce Record Type restrictions explained.
Field mapping•6 min

Salesforce record type picklists

A field's describe lists forty values while the record type you are writing to allows eight. Which endpoint answers the question that governs the write, and how to make mapping record-type-aware.

Open fix →
Illustrated troubleshooting diagram for Restricted vs unrestricted picklist in Salesforce: which one your integration needs.
Field mapping•6 min

Salesforce restricted vs unrestricted

One rejects unknown values loudly; the other accepts them silently and pollutes the value set. The describe flag that tells them apart, and why the loud one is what an integration should want.

Open fix →

Reliability

FlowPatch diagram: Usage signal to threshold to paced workload. Monitor remaining quota and reset time.
Reliability•6 min

Salesforce API limits monitoring

One REST resource returns every allocation with its max and remaining. Which line actually governs your workload, what it costs to read, and how to alert before a backfill takes the org's integrations down.

Open fix →
Illustrated troubleshooting diagram for Salesforce Bulk API vs REST API: how error handling differs.
Reliability•6 min

Salesforce Bulk vs REST errors

REST tells you immediately and per request; Bulk 2.0 tells you afterwards, per row, in a results file you have to fetch. The two failure models, and the retry logic each one needs.

Open fix →