A data migration is only successful if the data arrives complete, accurate and usable. Moving thousands of form submissions, uploaded files, customer records, orders and documents from one system to another creates many opportunities for silent errors: truncated fields, broken file links, lost relationships, wrong encodings or missing records. These problems often surface weeks later, when a customer asks for a document that no longer opens or finance cannot reconcile orders. A structured data migration validation process catches them before launch. This guide provides a practical checklist.
Why Validation Must Be Planned
Validation is often treated as a quick check at the end. In reality, it should be planned alongside the migration itself, with clear criteria, tools and owners. Without agreed validation, nobody can confidently say the migration is complete, and sign-off becomes a matter of opinion.
Level 1: Record Counts
Start with counts for every data type:
| Data type | Source count | Target count | Excluded intentionally | Difference |
|---|---|---|---|---|
| Customers | 25,410 | 24,980 | 430 duplicates merged | 0 |
| Orders | 142,300 | 142,300 | 0 | 0 |
| Form submissions | 61,250 | 60,900 | 350 spam | 0 |
| Files | 38,720 | 38,705 | 0 | 15 |
Any unexplained difference must be investigated. Counts should be produced by scripts, not estimated.
Level 2: Totals and Aggregates
For financial and numeric data, compare totals:
- Order values by month and year
- Tax totals by rate
- Loyalty points and store credit balances
- Quantities in inventory records
Matching totals give confidence that numeric data has not been altered during transformation. Finance teams should review and sign off on financial reconciliations.
Level 3: Field-Level Checks
Select a random sample of records for each data type and compare every field between source and target:
- Text fields are complete, not truncated
- Special characters and non-English scripts display correctly
- Dates and times are correct, including time zones
- Numeric precision is preserved
- Picklist values map correctly
- Empty fields are genuinely empty in the source
Automated comparison scripts can check thousands of records, with manual review of a smaller sample for context.
Level 4: Relationships
Records rarely stand alone. Validate that:
- Orders link to the correct customers
- Order lines link to the correct products
- Form submissions link to the right forms and campaigns
- Files link to their parent records, such as applications or tickets
- Parent-child records, such as categories and subcategories, are intact
Broken relationships are among the most damaging migration errors because data exists but cannot be found.
Level 5: Forms and Submissions
For migrated form data:
- Each submission retains all field values and timestamps
- Attachments are linked and open correctly
- Source information, such as page URL and campaign, is preserved
- Consent records are migrated with dates
- New forms on the target system work and store data in the same structure
Also test that live forms continue to send data correctly after launch, using a process like our website testing and QA checks.
Level 6: File Integrity
Files need special attention:
- Every file exists in the target storage
- File sizes match the source
- Checksums, such as MD5 or SHA-256, match for a sample or all files
- Files open correctly, especially PDFs and images
- File names and paths are mapped correctly in records
- Private files remain private, with correct access controls
A single misconfigured storage permission can expose confidential documents publicly, so test access as both authorised and unauthorised users.
Level 7: Functional Validation
Data should work in the application, not just exist in the database. Test real user journeys: logging in, viewing history, downloading documents, searching records and generating reports. Business users should perform these tests, because they know what correct looks like.
Level 8: Performance and Search
After migration, check that search indexes are rebuilt and return correct results, and that pages with large data volumes load acceptably. Missing indexes often cause slow queries after migration.
Documenting and Signing Off
Create a validation report containing:
- Counts and totals with explanations for differences
- Sample check results
- Known issues and their resolution
- Sign-off by data owners for each area
This report provides evidence that the migration met its criteria and supports audits.
Data Migration Validation in Practice
A legal services firm migrated 200,000 client documents and case records to a new case management portal. Validation scripts compared counts and checksums for every file and sampled 1,000 records field by field. The checks found 312 documents with incorrect path mappings due to special characters in folder names, and a storage permission that made a test folder public. Both were fixed before launch, avoiding missing documents and a potential data exposure.
Common Mistakes
- Validating only a handful of records manually
- Ignoring relationships between records
- Not checking file permissions
- No finance sign-off for financial data
- Skipping validation of the final production migration
Tools That Make Validation Faster
Validation at scale needs automation. Useful tools include SQL queries or scripts that compare counts and totals between source and target databases, checksum utilities for files, data comparison tools that highlight field-level differences and simple dashboards summarising results for stakeholders. Spreadsheet sampling works for small migrations but becomes unreliable beyond a few thousand records. Keep validation scripts in version control alongside migration scripts, and run them after every test migration so improvements are measurable. For websites built on WordPress development or Drupal development platforms, plugin data often lives in custom tables, so validation scripts must include those tables too. Teams using custom CMS development can build validation reports directly into the admin area for business users to review.
Key Takeaways
Validation should be planned before migration begins, not after problems appear. Define record counts, sample checks, file tests and business sign-off criteria in advance, and keep the old system available until the new data is confirmed.
Frequently Asked Questions
How Many Records Should We Sample?
Enough to give confidence, often several hundred per data type, plus full automated counts and totals.
Who Should Sign Off Validation?
Data owners from each business area, such as finance, operations and customer service.
Should Validation Be Repeated After Launch?
Yes. Re-run key checks after the final production migration and monitor for issues in the following weeks.
Thorough validation ensures your migrated data is complete, accurate and safe. Explore our website migration service, review website content migration, learn about website security, see law firm website development, check website platform migration, or contact us.
