Data Migration Testing: Checks That Prove Accuracy

A finished load job is not a finished migration. The job log can go green while balances, statuses, and customer links are already wrong, and the people who notice are usually the ones running the business the next morning.

Why a Successful Load Does Not Prove a Migration Worked

A successful load only shows that data left the source and landed in the target. It does not show that the content is correct. Think of a moving truck. The truck arriving proves the boxes moved. It does not prove each box is intact, or that the kitchen works once you unpack it.

The stakes are old and still current. A 2005 Softek study, a 30-question survey of migration practices cited in a later historical review of migration failure, found that 83% of projects either failed outright or exceeded their planned budgets and schedules. The same review keeps that result separate from Gartner's 2005 forecast that more than 50% of data-warehouse projects would have limited acceptance or fail because of inadequate data quality.

Two testing priorities follow from those findings. Records must arrive accurate and complete, and applications must be able to use the migrated data on schedule. Earlier work pointed at the delays that testing has to catch before cutover: incomplete source-to-target mapping, network transfer speed, and load monitoring. In a 2002 Information Architecture Team survey, more than 90% of respondents rated those issues as major problems.

A real test therefore covers field-level mappings, record counts, transformation rules, referential integrity, reconciliation, performance, and application usability. Finishing the load is the start of that list, not the end. Treat the result as a go or no-go gate. Tidying defects after users are live is how a green job becomes a missed close.

Validation Checks to Run at Each Migration Stage

Validation holds up when it is a set of automated, measurable checkpoints across the ETL lifecycle, not a manual spot check the night before go-live. Profile before anything moves, compare transformations while they run, reconcile after the load, apply the final delta at cutover, and smoke-test the queries the business depends on.

Each row below pairs one check with the pass criterion that lets the migration move on, and with the failure that criterion is there to catch. Truncated loads, altered content behind equal counts, and orphaned child records all look like success if you only watch the job status.

StageCheckPass CriterionFailure It CatchesBefore executionProfile source row counts, null rates and data typesBaseline recorded and signed offNull rates that silently become defaultsBefore executionDocument field-level source-to-target mappingEvery target field has one owner and one ruleSource fields dropped without noticeDuring transformationCompare produced values with independent reference logic on a sampleValues match within the agreed toleranceRounding, type conversion or null-handling driftAfter loadFull-dataset row count reconciliationZero unexplained missing recordsTruncated or partial loadsAfter loadChecksums or aggregates per key tableTotals and checksums match the sourceChanged content hidden behind equal row countsAfter loadReferential integrity checksNo orphaned child recordsBroken customer-to-order or account-to-transaction linksCutoverApply pending source changes and reconcile the final deltaFinal delta matches the captured change logTransactions committed during the moveAfter cutoverSmoke tests of key business queries on migrated recordsResults match the agreed expected valuesReports showing wrong totals or missing customers

How a pass criterion actually decides

Write the criteria before the first execution, not after the first defect. Zero unexplained missing records and exact key-relationship preservation are the two I would not soften. A rounding tolerance belongs in the same document, with a number the finance or clinical owner has already accepted.

Before execution, SQL profiling should capture row counts, null distributions, data types, aggregates, and relationship constraints. Give every target field one owner and one rule. A field with no owner is how a source column disappears without anyone signing for it.

During transformation, compare produced values with independent reference logic on a sample. The independent query is the point. If the migration code and the check share the same expression, they will share the same bug. Agree the tolerance first. A currency field rounded to cents can pass. A balance rounded to whole units should not.

After the load, reconcile full-dataset counts, then checksums or aggregates per key table, then referential integrity. Counts catch truncation. Checksums catch content that changed while the row total stayed flat. Relationship checks catch the child row whose parent never arrived.

At cutover, apply the captured changes and reconcile that delta against the change log. After redirect, smoke-test the key business queries against the migrated records. A report total that does not match the agreed expected value is a failed gate, even when every prior row is green.

Teams that have already moved large content estates can borrow the same gate habit from lessons from 3,000+ completed migrations. The domain differs. The rule does not. A checkpoint you cannot measure is a checkpoint you will skip under schedule pressure.

Six Quality Dimensions and the Gates That Block Release

Row counts are one signal. They are not the score.

A 2026 research framework on post-migration quality scored six dimensions: row fidelity, accuracy, integrity, structural fidelity, consistency, and business-rule compliance. A migration can match every count and still fail because transformed values, relationships, or business rules are wrong.

DimensionWhat It CatchesHow to Measure ItRow fidelityMissing and extra recordsHarmonic mean of missing and extra record rates, so one defect is not counted twiceAccuracyWrong field values after transformationField-level match rate against the source-derived expected valueIntegrityBroken relationships between tablesReferential checks for each relationship typeStructural fidelitySchema, data type or constraint driftSchema comparison against the approved target designConsistencyConflicting values for the same entity across tablesCross-table reconciliation of shared attributesBusiness-rule complianceRules the target no longer satisfiesRule queries run against the migrated target

Why the row-fidelity math matters

Row fidelity uses a harmonic mean of missing and extra records. A row that is both absent from the right place and present in the wrong place is one defect, not two. Counting it twice makes a bad load look worse than it is, and it hides a different load that lost records. The harmonic mean pulls the score down when either side is weak, so a clean "no extras" result cannot disguise a large set of missing keys.

Accuracy is the field-level match rate against the value you derived from the source, after the documented transformation. Type casts, null defaults, and code-set remaps show up here.

Integrity runs a referential check for each relationship type, not a single orphan query on the biggest child table. Account-to-transaction and customer-to-address fail for different reasons.

Structural fidelity compares the landed schema with the approved target design. A column that widened, a constraint that did not deploy, or a timestamp that lost its zone will not move the row count.

Consistency reconciles shared attributes across tables. The customer name on the account and the customer name on the open order are the same fact. If they diverge, reports will pick a side at random.

Business-rule compliance runs the rule queries on the target. Active status plus a closed date, a balance that must equal its postings, an order that must not ship without a line. These are the checks a count cannot see.

Two gates, not a blended average

The framework was tested on four production healthcare datasets, millions of rows, and more than 800 pipeline runs. The composite quality score had a strong negative correlation with downstream data-readiness defects (r < -0.9, p < 0.001). When the score fell, defects downstream rose with it.

The release rules were blunt. A composite score below 70 blocked acceptance. Any individual dimension below 75 triggered review, even when the composite cleared 70. That second gate is the one teams try to negotiate away. Don't. A 90 on row fidelity does not repair a 60 on business-rule compliance, and averaging them into a pass is how a wrong status code ships.

Practical rule: Record both thresholds before the first trial load. A gate you invent after the score lands is a negotiation, not a control.

Build the scorecard from the table, weight the dimensions the business feels, and keep the floor. I would rather slip a rehearsal than explain a composite that passed because five easy dimensions covered one broken rule.

How to Reconcile Counts, Values and Relationships

Layer the checks. Each one catches what the previous one is blind to.

A documented CRM migration in financial services shows the shape. Validation combined source-system checkpoints, ETL transformation checks, target-integrity validation, row-count reconciliation, checksum verification, field-level comparisons, and post-migration business-rule queries. Testing covered 15 million customer records and reached 99.98% field-level accuracy, complete row-count parity with zero missing records, and 99.97% referential integrity across relationship types, as reported in that financial-services CRM migration case.pdf?download=1). Those thresholds were the target, not a result negotiated after the gaps appeared.

A professional team of business analysts reviewing financial documents and data charts during a collaborative office meeting.

Run order

  1. Freeze the source baseline. Record counts, checksums, and key aggregates before the first load. If the source keeps moving, you will reconcile against a number that no longer exists, and every later gap becomes an argument.
  2. Compare total row counts by table. List every gap with an explanation tied to a rule, such as an agreed exclusion or a rejected duplicate. An unexplained gap is a truncated or partial load. Counts are cheap, and they only detect loss or duplication.
  3. Run checksums per table. Equal counts with unequal checksums mean the content changed in transit or in transformation. This is the check that stops a team declaring victory because both sides say 15 million.
  4. Compare critical field values. Pick the fields that change a decision, not every column. Measure field-level accuracy against the threshold you set before execution. In the case above, that bar was 99.98%. Type conversion, code remaps, and null handling fail here while counts and checksums can still pass if the damage is narrow.
  5. Check every relationship type for orphans. Totals cannot reveal a transaction whose account key no longer resolves. The case held 99.97% referential integrity across relationship types. I would not treat the remaining 0.03% as noise until each broken link has an owner and a disposition.
  6. Run the business-rule queries. Balances, statuses, and open orders are the outcomes, not the rows. A platform that already reconciles operational series, such as this time-series workload on Snowflake, is a useful model for which metrics deserve a query of their own. If the rule query fails, the migration fails, regardless of parity on counts.
  7. Compare with the pre-agreed thresholds and log every exception for a retest. Do not reset the bar because the run was close. Retest the failed slice after the fix, on the same baseline, so the sign-off matches the last execution.

Customer, account, and transaction migrations are where this order earns its keep. Row counts detect loss or duplication. Checksums detect content changes. Field rules verify transformations. Relationship checks find broken links that simple totals cannot expose. Skip a layer and the next layer will not backfill it.

Measuring Performance Against a Pre-Migration Baseline

Correct data can still be a slower system. Record query latency, throughput, and error rate on the source before the first load. Run the same workloads against the target and compare each result with that baseline. A migration can keep every record and still degrade latency, throughput, or security, so these measures sit beside correctness, not inside it.

Use a production-like replica, not a small sample. Volume-dependent defects, bad plans, missing indexes, lock waits, show up only at scale. Keep source and target available for the same workloads during the comparison so the delta is controlled and rollback stays possible.

For the transfer itself, measure transfer speed, scalability, and error rate under controlled extraction, transformation, and loading. One published evaluation drove those scenarios with Apache JMeter, which is enough tooling for a repeatable pass if you fix the workload list first.

Say a reporting query takes 2 seconds on the source and 9 seconds on the target. Totals can match exactly and the baseline still fails. Fix indexing or load order before cutover. Write the tolerance for each workload before execution. "No slower than baseline plus 10%" is a gate. "Feels fine" is not.

Operational platforms make the gap obvious. An energy management workload on Snowflake only stays useful if the queries operators run after the move return in the window they ran before it. Match the baseline, or do not cut over.

When Row Counts Pass but Business Meaning Changes

Matching counts and checksums do not mean the migration is correct.

A status code can land on a value the target accepts and the operation does not. "Closed" mapped to "complete" looks valid in the schema and wrong on a backlog report. Timestamps can shift because a session time zone changed, so a same-day order becomes yesterday's order. Duplicate customers can survive under different identifiers, each total looking clean because no row was lost. An aggregation can preserve the grand total while moving revenue from one customer to another. Every one of those failures passes a row count and can pass a table checksum.

This gap is widest on Snowflake-centered migrations and other analytics platforms. Success there is downstream metrics, dimensional relationships, time-series behavior, and the decision a dashboard drives. Copied records are the input. They are not the outcome. Standard guidance already names poor data quality, complex transformations, legacy logic, large volumes, downtime, and compliance as the core risks. It rarely turns those risks into a business acceptance test, which is the hole a review of AI-assisted migration practice keeps pointing at.

A migration is correct when the decisions made from it stay the same.

A professional analyzing data migration reports between source and target systems on a laptop and paper.

What to run instead of another count

"Representative data" is not a test design until you define what it represents. Pair source-to-target reconciliation with four wider checks.

  • Production-like workload replay: Run the queries, jobs, and dashboard extracts that ran last month, not a hand-picked happy path.
  • Metric-level comparisons: Compare the KPI, not only the base table. If customer-level revenue moves and the company total does not, the metric failed.
  • Distribution and anomaly analysis: Compare null rates, code frequencies, and outliers with the source profile. A spike in one status is a mapping error even when the row total matches.
  • Explicit tolerances: Write one tolerance per transformation. Zero for keys and money. A stated bound for rounding and for timestamps that cross a zone.

Also test the edges, not the average. Nulls, late-arriving records, duplicates, historical corrections, extreme values, and privacy-masked data are where semantic failures hide. A masked national ID that still joins, or fails to join, tells you more than a thousand ordinary rows.

Before cutover, answer one question in writing. Which business decisions must remain invariant after migration, and how will you measure those invariants after go-live? If you cannot name the decision, you cannot tell a passed checksum from a broken business.

Testing the Cutover and Handling Rejected Records

Say you cut over an order system on Friday night. Monday's warehouse report is short a few hundred orders. The load job says complete. The orders were committed on the source after extraction and before applications pointed at the new database. They are not in either reconciliation total you saved.

The test has to pin the comparison point first. A literature review of database migration validation is direct about this. The source state you compare with the destination must be named. Practical options are a consistent copy, a controlled suspension of writes, or change capture that applies new transactions after the initial load. Pick one before the window, and rehearse it.

The cutover sequence

  1. Control or interrupt writes at the agreed moment. Open transactions need a rule too, commit and capture, or abort and replay.
  2. Apply every pending change captured since extraction. This is the slice that makes a "complete" load lose live orders.
  3. Run final reconciliation of counts, checksums, and key aggregates against that named source state. Not against yesterday's baseline.
  4. Redirect applications to the target only after that reconciliation passes.
  5. Confirm essential operations. Place an order, update a record, and run the daily report. If any of the three fails, the redirect is not done.

What the exception log must show

Rejected records are part of the result, not leftovers. Count every rejected row, identify each one, and link it to the rule that blocked conversion. A duplicate key and an invalid code are different defects and need different owners.

The log is the audit trail you use when the business asks where the gap went. A small reproducible pattern makes the shape obvious. In a legacy-to-relational example that loaded synthetic customer and transaction CSV files into SQLite, with profiling, mappings, cleansing, and an exception path, four of eight customer rows migrated and five of ten transaction rows migrated. Duplicates and invalid rows went to the exception log instead of loading. Valid transaction totals reconciled to EUR 3,225.74, and the automated acceptance checks passed, as documented in that legacy-to-SQLite migration example. The numbers are tiny. The rule scales. Accepted rows, rejected rows, and a business total you can recompute.

Unexplained rejections are a failed cutover, not a cleanup task for later.

Shorter windows make the same sequence harder, not optional. Operators planning a low-downtime move can use a practical walkthrough of secure data migration for SMBs to see how write control and the final delta fit inside a tight outage. The log still has to name every row you refused to load.

Set Your Acceptance Criteria Before the Next Migration

Write the acceptance criteria down before the next trial load. A criterion you still owe the team on cutover weekend will be waived.

  1. Zero unexplained missing records.
  2. Exact preservation of every key relationship.
  3. A documented tolerance for numeric rounding, signed by the metric owner.
  4. Latency and throughput thresholds taken from the pre-migration baseline.
  5. The composite gate of 70 and the per-dimension gate of 75.
  6. Business-rule queries signed off by the owner of each metric.
  7. An exception log entry for every rejected record, with the blocking rule attached.

Classify each defect by business impact, then retest after every fix. Sign-off has to reflect the final run, not the first one that was "close enough."

Where the same reconciliation has to run on every trial, automation beats a fresh spreadsheet. Faberwork designs new test cases and automates customer regression sets, and the same practice is what we used when we helped a major healthcare company with its test automation. Finance leaders who want the control side of that discipline can start from a data migration guide for CEF CFOs. The list above is the version I would not shorten.

This week, write down the three business decisions your migrated data must still support. Then run the first checklist item, unexplained missing records, against the trial load you already have.


If those three decisions are still unnamed, or the trial load has gaps you cannot explain, bring the mapping and the last reconciliation to Faberwork. We will turn them into repeatable test cases, automate the regression set, and tell you which gate is blocking cutover.

NOVEMBER 20, 2026
Faberwork
Content Team
SHARE
LinkedIn Logo X Logo Facebook Logo