Guides / Integrations / Salesforce
Integration desk

n8n × Salesforce Error Desk

7 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.
Authentication9 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.
Authentication8 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.
Authentication12 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 →

Data Sync

Illustrated flow showing an n8n Salesforce upsert node payload failing with an invalid field error while insert succeeds.
Data Sync10 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 Validation11 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 →