Prompt
Why is my sync from Salesforce to SQL Server not updating
Latest observation
There are a few common reasons a Salesforce → SQL Server sync “runs” but nothing appears to update. The key is to figure out where it’s breaking: Salesforce source, the sync tool/job, or SQL Server target.
Most common causes
1) The sync is using a timestamp filter and Salesforce records don’t qualify
Many syncs only pull records where LastModifiedDate is newer than the last sync watermark. If:
- the watermark is wrong,
- the job missed a run,
- time zones are off,
- or the records weren’t actually modified,
then nothing gets pulled.
2) API limits or job failures in Salesforce
Salesforce may:
- hit API limits,
- return an error on the query,
- fail due to permissions,
- or truncate/skip data because of invalid fields.
Check:
- Salesforce integration user permissions
- sync logs
- API usage
- failed query/error messages
3) SQL Server upsert/merge logic is broken
The data may be arriving, but the load step may not update rows because:
- the
MERGEstatement has a bug, - the key match is wrong,
- updates are blocked by constraints,
- or the process only inserts new rows and never updates existing ones.
4) Data type or mapping mismatch
If Salesforce fields don’t map cleanly to SQL Server columns:
- string too long,
- datetime conversion issue,
- null handling issue,
- decimal/number precision issue,
the sync may fail silently or skip rows.
5) The destination table is being updated, but you’re looking at the wrong table/view
Sometimes the sync writes to:
- a staging table,
- a different schema,
- or a downstream reporting view that isn’t refreshed.
6) Permissions in SQL Server
The sync account may have:
- insert permission but not update permission,
- permission on staging but not final table,
- or trigger/constraint issues preventing updates.
7) Deduplication or key mismatch
If the sync matches on the wrong key:
- Salesforce
Idmay not be used, - external ID mapping may be wrong,
- whitespace/case differences in natural keys can prevent updates.
8) The sync is scheduled but not actually running
The job may be:
- disabled,
- failing on startup,
- stuck in retry,
- or not triggered by the scheduler/agent.
Quick way to troubleshoot
Check these in order:
-
Did Salesforce records change recently?
- Confirm a record was updated after the last sync time.
-
Does the sync job show success or failure?
- Look at the latest run logs.
-
Is data landing in a staging table?
- If yes, the issue is probably in the SQL load/update step.
-
Is the target row key matching correctly?
- Verify Salesforce
Idor external ID is used consistently.
- Verify Salesforce
-
Can the sync account update SQL Server rows?
- Test permissions directly.
-
Any errors in mapping/conversion?
- Look for failed rows, rejected records, or null conversions.
If you want, I can help you narrow it down fast
Reply with:
- what sync tool you’re using,
- whether the job shows success/failure,
- whether inserts work but updates don’t,
- and any error message/log snippet,
and I’ll help pinpoint the most likely cause.
Brands