Salesforce External ID Upsert: 7 Checks for New Records
Find why a Salesforce external ID upsert created a record. Check the org, object, field, value and response before correcting the mapping or data.
An integration reports a successful upsert, but the CRM team sees a new record. Follow one request from source mapping to response to find why the expected record did not match.
The short answer
When a Salesforce external ID upsert creates a record, compare the actual request with the intended org, object and field. Check the sent value against the stored value and confirm the response for that row. Send mapping changes to the integration owner and record reconciliation to the CRM data owner.
1. Verify what the upsert returned
Find the response for the exact source row.
The Salesforce REST API examples show a creation response and an update response. Record the status and returned record ID where available. Confirm the new ID with the authorized admin before treating the case as a duplicate.2
- When it helps
- When an integration marks the request successful.
- What to watch
- A successful request can create or update a record.
2. Confirm the org and object
Compare the actual request with the expected destination.
The Salesforce external ID upsert route names the target object. Check the request host against the intended org and compare the object name with the one that holds the expected record. Keep the host and record details inside the approved support channel.1
- When it helps
- When test and production use similar mappings.
- What to watch
- Matching field names can exist in different destinations.
3. Confirm the external ID field
Compare API names in the route and mapping.
The REST resource matches using the field named in its path. Ask the admin to confirm the exact field API name and which incoming source column populates it. Check the mapping version used on the failed run.12
- When it helps
- When a screen label looks correct but the integration was recently edited.
- What to watch
- The displayed field label may differ from its API name.
4. Compare the sent and stored values
Check the value after the connector transforms it.
Compare the external ID sent in the actual request with the value stored on the expected record. Look for lost leading zeros, whitespace or an unexpected prefix. Use a masked comparison where possible.1
- When it helps
- When the raw import row looks correct.
- What to watch
- The request value can differ from the source file.
5. Count matches on the target field
Have an authorized admin check the intended object.
Salesforce documents three outcomes for this REST upsert. A missing match can create a record, a single match updates it, and multiple matches return a 300 response without writing a record. Verify which outcome the response and target lookup support.1
- When it helps
- When the team assumes every duplicate came from multiple matches.
- What to watch
- A 300 response cannot explain a successful insert from that same request.
6. Check whether inserts should be allowed
Review the contract before retrying the affected row.
Salesforce documents an updateOnly parameter for the external ID REST resource. If the integration should update existing rows only, ask its owner to check support in the API and connector version in use, then verify the behavior in an approved test environment.12
- When it helps
- When a missed match should never create a record.
- What to watch
- The setting does not correct the field or value mapping.
7. Assign the mapping or record correction
Keep the two records traceable while the owner investigates.
Give the integration owner the target object, field API name, masked value comparison and response. Give the CRM data owner the IDs of the expected and newly created records through the approved channel. Pause affected retries with the owner until the mapping and record handling are agreed.
- When it helps
- When both the source mapping and CRM data may need correction.
- What to watch
- A new write could make the reconciliation harder.
Putting it into practice
Start with the exact response and request. Use the match result to decide who owns the mapping fix and who can resolve the record already created.
How this guide was researched
We checked the Salesforce REST API upsert reference and worked API examples on 25 November 2026. The leading-zero case is illustrative.
A request-level checklist distinguishes missing matches, unexpected destinations and CRM record reconciliation.
Editorial standardsSources
- Upsert Records Using sObject Rows by External ID
Checked 25 November 2026 · Route structure, match outcomes and the updateOnly parameter.
- Insert or Update a Record Using an External ID
Checked 25 November 2026 · Example responses for create and update, and multiple-match response.