OBLYTECH Logo
OBLYTECH Logo

Data Migration Reconciliation Counts After Load

Reconciliation counts after a data migration load compare how many records left the source with how many arrived in the target, by object and by owner. Run the check before users start working in the new data, so a silent drop is traced while the load file is still at hand.

Decide what counts to compare before the load starts

A count means something when both sides measure the same thing. Before the load, write down the objects in scope and the filter that defines each one. An account extract that includes inactive accounts cannot be compared with a target that loaded just the active ones. The mismatch will look like a loss when nothing was lost.

Next, agree the grain of the comparison. Object-level totals show whether a whole file arrived. Owner-level totals show whether the records a particular team depends on arrived. Teams usually need both, because a load can match its overall total while one territory or queue loses rows.

Keep a short list of the fields that define ownership. Owner IDs, team assignments and queue membership often change shape during mapping. An owner count that looks right in aggregate can still point records at the wrong person, so compare the owner field as its own check rather than as a side effect of the record count.

If the source data needs cleaning before it can be counted, that is a separate piece of work. The data quality guidance for migrations covers the cleaning step. Run the counts in this page against the cleaned extract, not the raw one, so the comparison tests the load and not the cleanup.

Build source and target counts by object

Run the source query against a frozen extract, not the live system. If the source keeps changing during the reconciliation window, the numbers drift and the comparison loses meaning. Record the query text, the cut-off time and the person who ran it in the same log as the load.

Work through the objects in this order.

  1. Freeze the source extract and note its cut-off time.
  2. Count each in-scope object in the source using the same filters that produced the load file.
  3. Count each object in the target after the load job reports that writing has finished, not while batches are still running.
  4. Count the rows the load rejected or skipped, and keep that figure separate from the rest.
  5. Write source, loaded and rejected counts side by side for each object.

The arithmetic is simple. In a one-to-one load, source count minus rejected count should equal target count, and any difference left over is the number to investigate. Keep rejected rows apart from that difference, because a rejected row was visible to the load process and a missing row was not. The two need different fixes and different log entries.

Load tools can differ in how they report rejected and skipped rows, and that affects how easy step four is. If you are still deciding how the load will run, settle the choice of load tool for a migration first, because it shapes where the reject information comes from.

Check owner totals and ownership fields as a separate step

Owner-level reconciliation starts with the same source and target counts, grouped by the owner each record carries after mapping. Group on the owner the target will store, not the owner in the legacy system, so the comparison tests the mapped value the users will see.

Three patterns commonly change who owns a record without changing the record count, which is why an object-level check can pass while the owner view fails.

  • Records assigned to an owner who was inactive in the target at load time.
  • Records that landed under a default or placeholder owner.
  • Records whose owner lookup returned no match in the mapping table.

Keep the owner comparison as its own worksheet with one row per owner, showing the source count, the target count and the difference. Sort by difference, largest first, so the owners with the biggest shift are the first ones to contact. Do not average across owners, since a large gap for one owner disappears inside a total.

Duplicates distort owner counts too, because a record loaded twice appears under its owner twice. The duplicate review routine for data stewards covers how to resolve those pairs once the owner view flags them.

Set a tolerance and a go or no-go rule before release

Decide before the load what difference is acceptable, and name who can approve a larger one. Zero tolerance is a sensible starting point for small reference sets such as a short list of codes or regions, because a single missing value can hide a whole group of records. Large transactional objects often carry a small expected reject rate, and the rule should state that rate as a number rather than a feeling.

Write each rule in the migration runbook with three parts: the object, the difference allowed, and the named person who can approve a larger difference. Record that approval beside the counts it applies to, so the sign-off stands on its own later.

A tolerance chosen after the numbers arrive tends to fit whatever came out, and the reconciliation then confirms the load instead of testing it.

For help planning this work, see Salesforce implementation.

Trace a mismatch before users see the data

When a count is off, start with the smallest unit that could explain the gap. Pull the rejected rows for that object first, because a load error log reads faster than a full record comparison. If the rejected count accounts for the difference, the gap is explained and the next step is the fix and the reload.

If the rejected count does not explain it, compare keys. Export the source record identifiers and match them against the identifiers stored in the target. The unmatched records form the working set. Group that set by a shared attribute such as source batch, creation date or owner, since a shared cause often shows up as a cluster rather than scattered rows.

  1. Confirm the rejected count and match it to the error log for the object.
  2. Match source keys against target keys to list the missing records.
  3. Group the missing records by batch, creation date or owner to find a shared cause.
  4. Fix the mapping or the source data, then reload the affected set.
  5. Rerun the object count and the owner view before releasing the data.

Reload just the affected set when the fix is narrow. Reloading the whole object repeats work that already reconciled, and it can create duplicates if the match key on the reload differs from the key used in the first pass. Confirm the key before the rerun starts.

Write each mismatch into the reconciliation log with its cause, the fix and the reload date. When someone asks later why a batch was reloaded, the log answers the question without a search through email.

Keep reconciliation evidence for audit and handover

A reconciliation earns its place in the project record when someone else can reproduce it. Store the source query, the filters, the cut-off time, the target query and the run times in one place. Store the sign-off for each tolerance beside them, so the evidence and the decision live together.

Handover matters because the person who ran the load often moves on before the first question about the data arrives. A short handover note should list the objects reconciled, the tolerance applied to each, any rejected rows that were accepted, and the outcome of the owner view. Teams that want a standing group for the cutover and the weeks after it can review the dedicated Salesforce delivery teams model.

Questions about checking counts after a migration load

Should records created in the target during the load window count?

Decide that in the scope list before the load. Records created by users or automation in the target during the window are not in the source extract, so they appear as target rows with no source match. Track them as a separate category so they do not hide a real shortfall.

What should the reconciliation do with deleted or archived records?

Settle the rule in the scope list as well. If the source extract includes archived records and the target hides them, the totals will differ for a reason unrelated to the load. Count both sides under the same visibility rule.

What does it mean when the target holds more records than the source?

Extra rows often come from a load that ran twice or from a retry that did not check for existing records. Compare the extra keys with the load batch identifiers before you treat them as valid.

Who should sign off on the reconciliation?

Sign-off usually sits with the business owner of the object and the migration lead who holds the load log. The sign-off names the object, the difference accepted and the date, so the record stands on its own when someone reviews it later.

Can the counts match while field values are still wrong?

Yes. Counts confirm that records arrived, not that their field values are correct. A record can land in the right count and still carry a truncated text value or a shifted date. Sample key fields alongside the counts, and have the owners check the values their teams use daily.