Actiknow
Data Engineering

Data Warehouse Reconciliation Framework: How to Prove a Migration Preserved the Numbers

Learn how to validate a data warehouse migration with row counts, control totals, dimensional checks, exception logs and business sign-off before cutover.

Business intelligence operations team investigating a power bi semantic model refresh failure

A migration is not successful merely because every pipeline ran and the new warehouse is online. Success means decision-makers can trust that the new platform preserves the intended records, calculations, reporting definitions and access boundaries. A reconciliation framework turns that promise into repeatable evidence. It establishes what is being compared, which differences matter, who resolves them and what must pass before the business moves to the new system.

Why matching row counts are not enough

Imagine two order tables containing the same number of records. During migration, one customer’s orders are assigned to another region, a decimal is rounded incorrectly, and a cancelled order is counted as completed. Both tables can still have identical row counts. Even a global revenue sum can match while regional revenue is wrong. That is why validation needs multiple layers: structural checks, completeness checks, control totals, dimensional comparisons, keyed record comparisons and end-to-end business reporting tests.

Finance manager and bi analyst comparing warehouse migration results to identify regional revenue and record level discrepancies

This is particularly important when teams change both their warehouse and their transformation logic. A platform move from one SQL engine to another can introduce differences in time zones, null handling, floating-point arithmetic, case sensitivity, date functions and join behavior. A framework must distinguish a genuine defect from an intentional, documented change.

1. Define the comparison contract before migration

Start with a signed inventory of source tables, target tables, transformations, business metrics, reports, historical periods and critical downstream consumers. Each object should have an owner, business criticality, expected grain, primary or composite key, refresh cadence, comparison method and acceptance threshold.

A critical rule is to compare like with like. Freeze or snapshot a common source boundary, or define a CDC watermark that both environments can reproduce. Without a consistent point in time, an actively changing source can produce false mismatches. Record source snapshot IDs, batch IDs, extraction timestamps and the exact transformation versions used.

Write down allowed differences before testing. A currency conversion, deliberate exclusion of test customers or changed business definition is not a defect if approved, but it must not be silently treated as a match. Separate exact-match controls from business-approved tolerances.

2. Build a layered reconciliation framework

Layer A: Schema and structure. Check column presence, types, precision, scale, nullability, keys, partitioning and relevant constraints. Confirm that decimal money values have not become approximate floating-point values and that date/timestamp semantics are preserved.

Layer B: Completeness. Compare row counts, distinct business-key counts, duplicate-key counts, null counts and rejected-record counts. Break them down by ingestion batch, date, tenant, region or another meaningful partition. A total count can hide offsetting errors across partitions.

Layer C: Financial and operational control totals. Compare sums of revenue, refunds, quantities, balances and other critical measures. Include counts of statuses and minimum/maximum dates. Choose the measures that executives actually rely on, not only columns that are easy to aggregate.

Layer D: Dimensional slices. Reconcile revenue by month and region, customers by segment, orders by status and inventory by warehouse. Compare the same business grain and filters on both systems. This exposes errors that disappear in overall totals.

Layer E: Keyed row-level comparison. For critical tables, align records on stable keys and compare normalized field values. Use canonical serialization and consistent hash functions if hashing is appropriate. Hashes are useful triage signals, not a substitute for checking mismatched records or business semantics.

Layer F: Reporting parity. Run critical dashboards, finance extracts, board metrics and downstream models on both environments. Check filter behavior, date windows, KPI definitions, joins, row-level access and drill-down totals. A table can reconcile while a report still diverges because its semantic layer changed.

Data architects reviewing layered warehouse reconciliation checks from schema validation through business reporting parity

3. Make the checks repeatable

A reusable reconciliation run should capture run_id, object_name, source_snapshot, target_snapshot, rule_id, source_value, target_value, absolute_difference, relative_difference, tolerance, status, severity and evidence_location. Store the results in a dedicated audit schema or controlled evidence repository.

A simple control-total pattern is to aggregate both sides at the same grain. For example, for each business_date and region, calculate COUNT(*), COUNT(DISTINCT order_id), SUM(net_amount) and SUM(refund_amount). Full outer join the two aggregate result sets on business_date and region, and flag missing slices or amounts outside an approved tolerance. Do not compare one system’s gross sales to the other’s net sales or one system’s local dates to the other’s UTC dates.

For approximate numeric fields, use explicit tolerances that reflect business requirements and numerical behavior. For financial amounts stored as exact decimals, an exact comparison may be appropriate. Document any normalization of nulls, whitespace, case, timestamps or currency before it enters the comparison engine.

Avoid scanning enormous tables unnecessarily. Run broad counts and aggregates first, then partition-level checks, then targeted keyed comparisons on failing partitions. Schedule deep validation during suitable windows and track its cost. Sampling can supplement coverage but should not be presented as proof that every critical row matches.

4. Investigate exceptions instead of averaging them away

A reconciliation dashboard should distinguish Pass, Fail, Review, Not Tested and Accepted Exception. The last two are not passes. An exception register should identify affected table, business slice, keys, observed variance, suspected cause, owner, severity, resolution deadline and retest evidence.

Common causes include missing incremental batches, duplicate ingestion after retries, soft deletes not propagated, wrong join cardinality, changes in dimension history, rounding differences, late-arriving facts, inconsistent time-zone boundaries and divergent business filters.

For example, if total revenue matches but revenue by region does not, inspect customer-to-region mapping and slowly changing dimensions before modifying the revenue calculation. If a partition count is low, trace source extraction, landing, transformation filters and target loads in order. Fix the root cause, rerun the affected checks and record the outcome.

Data engineer investigating regional revenue mismatches and reconciliation exceptions during a warehouse migration

5. Separate engineering acceptance from business sign-off

Engineering should attest that pipelines, schemas, counts, keys, lineage and controls behave as specified. Finance and operations should confirm that their most important metrics and reports remain usable and meaningful. Security owners should validate sensitive-data permissions. The migration sponsor should make the final go/no-go decision using all three evidence streams.

A practical acceptance pack contains the inventory, comparison contract, run summaries, unresolved exceptions, approved tolerances, dashboard parity results, data freshness results, security tests, rollback plan and named signatories. Avoid a single vague statement such as ‘99% reconciled’ unless the denominator, criticality and exclusions are explicit.

An unexplained difference in a board-level revenue metric should normally block cutover even when thousands of low-risk tables pass. Conversely, a documented difference in a retired noncritical field may be accepted with a time-bound remediation plan. Business risk, not raw pass percentage, should determine the gate.

Finance, operations, security and engineering stakeholders reviewing warehouse migration evidence before cutover approval

6. Plan for live data and cutover

Static historical data is easier to reconcile than an active system receiving new transactions. For live migrations, define an initial snapshot, CDC replication boundary, catch-up strategy and a final comparison watermark. Validate inserts, updates, deletes, replays and late-arriving records. Track CDC lag and the age of the latest fully reconciled partition.

Run the old and new environments in parallel for a representative business cycle where feasible. Include month-end or other material reporting events if they drive critical decisions. Rehearse cutover and rollback, including how dashboards will be pointed back to the previous system and how new writes will be handled. A rollback is not safe merely because the old database still exists.

After cutover, continue monitoring freshness, row counts, key metrics and exceptions. A one-time migration certificate cannot guarantee that tomorrow’s incremental loads will remain correct.

A four-week pilot roadmap

Week 1

Choose one important domain, such as sales orders. Inventory source-to-target objects, owners, critical reports, keys, snapshot boundaries and acceptance rules. Capture baseline results before the new pipeline is treated as authoritative.

Week 2

Implement schema, counts, distinct keys, control totals and dimensional-slice checks. Store run-level evidence and publish a simple exceptions dashboard.

Week 3

Add keyed comparisons for high-risk fields, investigate mismatches and validate the main dashboards with business owners. Test CDC behavior if the domain is updated continuously.

Week 4

Run a parallel reporting cycle, rehearse cutover and rollback, review the evidence pack and document the go/no-go decision. Then extend the tested framework to other domains instead of rebuilding checks from scratch.

Data engineering project team planning a four week warehouse migration reconciliation and cutover validation roadmap

What executives should ask at the cutover meeting

  • Which business decisions depend on the migrated data?
  • Are both systems compared at the same snapshot or watermark?
  • What proportion of critical objects and partitions was actually tested?
  • Which differences remain open, and who approved them?
  • Did finance, operations and security sign off?
  • How quickly can we detect and reverse a material defect?
  • Who owns reconciliation after launch?

The strongest answer is not ‘the ETL job was green.’ It is a traceable set of controls, results, exceptions and approvals that supports a specific release decision.

Where reconciliation fits in the broader BI architecture

Reconciliation should be designed alongside data integration, modeling and dashboard delivery rather than added at the end. Actiknow’s business intelligence consulting and implementation services cover these connected disciplines, including data integration, solution architecture and reporting. A well-designed reconciliation layer protects the value of those downstream dashboards because users can see whether the underlying measures have passed agreed checks.

Frequently asked questions

1. What is data warehouse reconciliation?

It is a structured comparison of source and target data, transformations and business outputs to establish whether a migration preserved agreed information and meaning.

2. Are matching row counts sufficient?

No. They do not detect incorrect values, swapped attributes, broken joins or semantic changes.

3. Should every column match exactly?

Not necessarily. Intentional transformations and platform differences need approved normalization rules and tolerances; critical identifiers and exact financial measures may require exact matches.

4. How do we reconcile billions of rows?

Use partitioned aggregates and control totals first, then keyed comparisons for high-risk or failing slices. Record coverage and cost.

5. Can hashes prove that data is identical?

They can help identify differences, but only when both systems use identical canonicalization and hashing. They do not prove that business definitions are correct.

6. What happens when the source keeps changing?

Compare consistent snapshots or a shared CDC watermark, and reconcile subsequent changes separately.

7. Who should approve the migration?

Engineering, relevant business metric owners, security stakeholders where applicable and the accountable sponsor should each sign off on their responsibilities.

8. What is an acceptable variance?

It depends on the metric and risk. Agree thresholds before testing, and do not automatically permit percentage tolerances for financial or regulatory controls.

9. When should reconciliation stop?

Continue critical checks after cutover as part of routine pipeline and reporting reliability monitoring.

10. What should be delivered?

A versioned rule inventory, executable comparisons, run history, exception log, report-parity results, documented tolerances and sign-off evidence.

Conclusion

A reliable warehouse migration is a controlled change in business information, not just a successful transfer of data. Start with shared comparison boundaries, test from schema through business reports, explain every material variance and require accountable sign-off. When reconciliation is automated and retained after launch, the migration becomes an opportunity to strengthen long-term reporting trust.

Discuss your migration validation approach

If your team is planning a warehouse migration or struggling to establish parity between reporting platforms, explore Actiknow’s BI consulting capabilities and contact the team to discuss the integration, modeling and validation requirements of your project.