Skip to content
RevOps Agentified
← All articles

GTM Systems

Reconcile a Salesforce bulk load before replaying rows

Reconcile Salesforce Bulk API 2.0 job results by source key and recover the failed or unprocessed rows without duplicating successful writes.

· 8 min read

  1. ResultsRetrieve the successful, failed and unprocessed row files.
  2. ExceptionsClassify the 1,400 keys by error, missing parent or unprocessed status.
  3. ReadbackReplay eligible rows and compare the written revision against billing.

Billing sends 25,000 subscription updates to Salesforce. The scheduler marks the upload complete. The Salesforce ingest job later ends in Failed, after writing part of the file. Customer Success needs to know which subscription statuses it can use for renewal outreach. This example follows one run with one row per subscription.

Read what Salesforce did with each row

Keep the submitted CSV, ingest job ID, billing export cutoff and external subscription key. After processing ends, collect the available row results. In successfulResults, sf__Id identifies the CRM record and sf__Created tells you whether Salesforce created it. In failedResults, use sf__Error to group rejected writes. For a failed or aborted job, check unprocessedrecords for rows Salesforce never processed. Join each file to the submitted key. Salesforce can return rows in a different order.

Reconcile counts, keys and field values

First-pass disposition of 25,000 source keys
ResultCountFollow-up
Successful rows23,600Record the Salesforce IDs. Compare the expected revision and status on key records.
Failed rows1,120Group by the Salesforce error. Repair invalid values or unresolvable parent keys.
Unprocessed rows280Check the job outcome, verify current source state and prepare the eligible keys for retry.

Make the job report count eligible writes

The first pass wrote 23,600 of 25,000 keys (94.4%). The 1,400 exceptions include subscriptions that may still show yesterday’s status in Salesforce. Compare the union of the result keys with the input manifest and flag keys in multiple result groups. Matching totals alone can hide one duplicated key and one absent key. If a key has no result, query its CRM revision and owned fields before deciding whether it needs another write.

Recover the 1,400 exceptions by key

In this scenario, 950 rows had an unrecognized picklist value and 170 had an unresolved Account lookup. Correct the allowed mapping for the first group. Check the Account crosswalk for the second. Review the 280 unprocessed keys against the current source state. Use a new Bulk API job for eligible failed and unprocessed rows after review. Keep the same unique external key so a retry updates the intended Salesforce record.

Spot field drift after a write succeeds

Compare subscription status and revision for every expected key at the same billing cutoff. If billing has advanced since that cutoff, record the newer version separately before collecting evidence for the retry. Upserting the same external ID locates the same CRM record. It can still overwrite newer values. If another integration can write this field, a read before an upsert leaves a race between the two operations. Use a single ordered writer per key or enforce the revision check at the destination when it accepts the change.

Which of the 1,400 exceptions go in the retry file?

Suppose the admin repairs all 950 invalid status values and finds approved parent IDs for 150 of the 170 unresolved lookups. Of the 280 unprocessed subscriptions, 260 still need the write. A later delivery already applied the current revision and status for the other 20.

Prepare 1,360 rows using current billing values (950 + 150 + 260). Attach the CRM readback for the 20 already current and send the remaining 20 missing parent IDs to the account-data owner. Leave those subscriptions out of the renewal audience until Customer Success verifies their status.

If all 1,360 retries succeed and readback confirms the expected fields on the 23,600 original successes, 24,980 keys are current (99.92%). Keep the incident open for the remaining 20. Save both job IDs with the manifest so the next operator can reconstruct which attempt touched each subscription.

Give the on-call person a short queue to work

Publish the key, failure reason, first-seen time, latest retry and owner for open exceptions. Keep the last applied source position handy. Test one rejected row, one unknown result and one late retry before the next release. The integration and sync guide shows how to report the backlog alongside row success and lag. For invoice mismatches, the quote-to-invoice reconciliation article traces the values to compare at the line level.

Keep reading

Of 25,000 submitted rows, 23,600 succeeded, 1,120 failed and 280 were unprocessed. Should you replay all 1,400 immediately?

Check your answer

Separate the two groups. Repair errors on failed rows. Check the job outcome and current source state for unprocessed rows before selecting keys to replay.

Get the article workpaper

Subscribe to the GTM Systems Academy newsletter to download the file.