Data reconciliation

On this page 7

Data reconciliation is the process of comparing data between a source and a target, or between two independent systems, to verify that records, counts and values agree and to explain every difference that remains. In data processing, it is the control that proves a migration, an integration job or a daily pipeline delivered complete and accurate data rather than merely finishing without errors.

Reconciliation answers a narrow but critical question: does the target faithfully reflect the source after extraction, transformation and loading? It is a core practice in finance, banking, telecommunications billing, data warehousing and regulatory reporting, where an unexplained difference of a single record or cent can have legal or financial consequences.

How data reconciliation works

A reconciliation process follows a repeatable cycle. It extracts comparable data sets from both sides, aligns them on a shared key or aggregation level, compares them according to defined rules and classifies each result as matched, unmatched or within tolerance. Every break is then investigated, explained and either corrected or formally accepted.

The essential prerequisite is a common basis for comparison. Both sides must use the same cut-off time, the same filters, the same currency or unit and a reliable matching key. Many apparent breaks turn out to be timing differences, such as a transaction that was booked in the source after the target snapshot was taken.

The table below outlines the main stages and their typical outputs.

StagePurposeTypical output
ExtractionCapture both data sets at an agreed cut-offSource and target snapshots
NormalizationAlign formats, units, codes and keysComparable records
MatchingPair records or aggregates by key and rulesMatched and unmatched sets
Exception handlingInvestigate and classify each breakExplained differences
Sign-offApprove the result and retain evidenceAudit trail and report
Stages of a reconciliation cycle

Levels and types of reconciliation

Reconciliation can operate at several levels of granularity, and mature pipelines combine them. Cheap aggregate checks run on every load and catch gross failures quickly, while expensive record-level comparisons run less often or only when an aggregate check fails.

LevelWhat is comparedDetectsCost
Row countNumber of records on each sideDropped or duplicated loadsVery low
Control totalsSums of key amounts or quantitiesTruncation and conversion errorsLow
Hash totalsChecksums over selected columnsSilent value changesModerate
Grouped aggregatesTotals per date, region or accountLocalized gapsModerate
Record-level matchEach record and field by keyIndividual mismatchesHigh
Reconciliation levels from coarse to fine

By purpose, practitioners also distinguish technical reconciliation, which checks that a pipeline moved data correctly, from business reconciliation, which checks that independent systems agree on facts. A bank matching its internal ledger with a counterparty statement performs business reconciliation; an engineer comparing a staging table with a warehouse table performs technical reconciliation.

Reconciliation may be one-to-one, where each source record has exactly one target counterpart, or one-to-many and many-to-many, where a single payment settles several invoices. The more complex patterns require matching rules with tolerances, such as allowing an amount difference of one cent caused by rounding or a date difference of one business day.

Data reconciliation is often confused with neighboring quality practices, yet each one asks a different question about the data. Reconciliation is inherently comparative: it needs at least two data sets, whereas most other checks examine one data set against rules or expectations.

PracticeCore questionNeeds a second data set
Data reconciliationDo the two sides agreeYes
Data validationDoes each value meet the rulesNo
Data profilingWhat does the data look likeNo
Record linkageWhich records describe the same entityUsually yes
DeduplicationWhich records are repeatedNo
Anomaly detectionWhich values are unusualNo
How reconciliation differs from neighboring practices

The boundaries are practical rather than absolute. Record linkage supplies matching techniques, such as fuzzy name comparison, that reconciliation uses when no reliable shared key exists. Validation and profiling often run first, because comparing two data sets that are each internally broken produces noise rather than insight.

Implementing reconciliation in data pipelines

Effective reconciliation is automated, scheduled and recorded. In batch processing, control totals are typically captured when data leaves the source and compared after the load completes; in streaming systems, counts are reconciled per time window, with a grace period for late-arriving events.

Engineers commonly implement record-level comparison as a full outer join on the business key, followed by column-by-column comparison of the matched pairs. Frameworks such as Apache Spark, Dask or pandas handle this pattern well, and for very large tables partition-level hashing narrows the search before a detailed comparison.

The following decision table helps choose an appropriate approach.

SituationRecommended approachReason
Daily warehouse loadRow counts and control totals each runFast detection at low cost
One-time system migrationFull record-level comparisonEvery record must be proven
Financial ledger versus bankRule-based matching with tolerancesTiming and rounding differences are normal
Very large tablesPartition hashing, then drill downAvoids comparing billions of rows
No shared keyFuzzy matching on several attributesKeys differ between systems
Choosing a reconciliation approach

Each run should store its inputs, rules, results and approvals. That evidence supports audit requirements in regulated industries and allows engineers to see whether break rates are trending upward over time.

Limitations and common mistakes

Reconciliation proves consistency between systems, not correctness of either one. If the source itself contains wrong values, a perfectly reconciled target simply reproduces the error. Teams also underestimate how much effort exception handling requires once break volumes grow.

  • Mismatched cut-off times create false breaks that waste investigation time.
  • Counts alone are insufficient, because a load can have the right number of rows with wrong values.
  • Overly wide tolerances hide genuine errors behind accepted differences.
  • Unresolved breaks carried forward accumulate until no one can explain the balance.
  • Manual spreadsheet reconciliation does not scale and leaves a weak audit trail.

Understanding it simply

Data reconciliation is like checking a receipt against your bank statement. You put the two side by side, tick off every item that matches and look closely at anything that does not.

Companies do the same thing with computer systems. When information moves from one system to another, someone has to confirm that nothing was lost, doubled or changed along the way. The key idea is simple: never assume the copy is right; compare it with the original and explain every difference.

Applied in practice

A regional insurer migrates 4.2 million policy records from a legacy mainframe to a new cloud data platform. The data engineering team defines three reconciliation layers: row counts per product line, control totals of annual premium per region and a full record-level comparison on policy number across 38 fields.

The first run shows matching row counts, but premium totals in one region differ by 0.3%. The record-level comparison traces the gap to 1,870 policies whose premiums were stored in a legacy currency field that the transformation ignored. After the mapping is fixed, a second run reconciles every record and every total, and the remaining 112 breaks are documented timing differences from policies changed during the migration window. The signed reconciliation report becomes the evidence that allows the business to decommission the mainframe.