Features can be rewritten; data cannot be re-created. Data migration is the most underestimated part of a system replacement project: when it goes wrong, the damage is not a few missing rows but mismatched ledgers, broken document numbering, and untraceable history — debts still being paid months after launch. This guide breaks migration into five steps: inventory, cleansing and mapping, strategy selection, validation and rollback, and launch acceptance.
1. Inventory first: you are moving more than database rows
Before any technical work, build a data asset list that answers three questions: what moves, how much, and who decides. Assets usually fall into three groups:
- Master data. Customers, suppliers, products, org structure, dictionary configuration. Small in volume but referenced everywhere — one wrong code mapping breaks everything downstream.
- Business documents. Orders, approvals, accounting entries, inventory transactions. They carry time spans and state transitions; migration must preserve status and relationships, not just rows.
- Attachments and files. Contract scans, images, exported reports. Often scattered across object storage or third-party systems — the easiest thing to miss.
For each group, record the source system, tables or directories, data volume, time range, retention policy (full migration vs. recent hot data plus archived history), and the business owner. Configuration data (workflows, permissions, dictionaries) is often treated as "rebuild in the new system", but rebuilding is neither cheap nor error-free — put every item in the list and evaluate it.

2. Field mapping and data cleansing
Old fields and new fields rarely map one to one. The field mapping table is the core deliverable of this stage:
| Legacy field | New field | Conversion rule | If it cannot move |
|---|---|---|---|
| customer_name (free text) | Customer profile + linked ID | Deduplicate and match; create when unmatched | Into the pending-confirmation list |
| status (custom 0/1/2) | Status dictionary code | Map via reference table | Values outside the enum go to an exception list |
| remark (with history) | Notes + change log | Keep verbatim | Not moved; stays queryable in the old database |
Cleansing handles three problem classes: dirty data (nulls, duplicates, invalid formats), semantic drift (the same field means "0=male 1=female" in the old system but a dictionary code in the new one), and historical debt (same name for different people, gapped document numbers). Cleansing rules must be confirmed by business owners before they are fixed in scripts — engineers cannot decide on their own that "these three customers are the same". Cleansing before migration saves a lot of effort compared to repairing afterwards: every post-migration fix must be traced back to the old database for its source, doubling the bookkeeping.

3. Strategy: stop-and-cut, dual write, gradual cutover
| Strategy | Downtime window | Consistency risk | Engineering effort | Typical fit |
|---|---|---|---|---|
| Stop-and-cut | Long (hours) | Low (one-shot migration) | Low | Manageable data volume, a maintenance window is possible |
| Dual write | Short (minutes) | Medium (depends on reconciliation) | High | Core systems that cannot stop long |
| Gradual cutover | Incremental | Medium (depends on two-way sync) | Highest | Multi-entity rollouts, very large data volumes |
Most small and mid-sized projects pick stop-and-cut: schedule the window in a business trough (weekend or after month-end close), rehearse end to end in the test environment, and write the measured duration plus margin into the cutover plan. Dual write or gradual cutover is for large, business-critical systems that cannot afford long downtime — their cost lies in reconciliation and two-way sync, so budget the engineering like a second small system.

4. Reconciliation and rollback plans
Migration without reconciliation criteria is not migration. Validation works best in three layers, each with an explicit pass standard:
- Volume reconciliation. Row counts, amount totals, key group counts, checked item by item before and after. For money and quantities, tolerance is zero.
- Key-field sampling. Sample-compare amounts, statuses, related IDs, and timestamps field by field; agree on sampling ratios and exception thresholds up front.
- Business verification. Take real documents from the old system and walk them through the new one: findable, matching, and processable. If the books tie but the business cannot work, the migration has not succeeded.
Write the rollback plan into the same cutover document as the validation plan: trigger conditions (which layer failed, how much difference is too much), who decides, and what state to return to (usually the old system resumes service while the new one rolls back to its pre-migration state). During dual write, publish a daily reconciliation report and clear differences the same day — never carry them overnight.

5. Launch cutover and acceptance
On cutover day, follow the checklist: stop writes → freeze data → run migration → three-layer validation → business spot checks → open traffic and observe. Timestamp and sign every step, so problems can be traced to a specific step instead of "we migrated last night and something is off somewhere".
Define acceptance in the contract from the start, listing the three validation layers and business sign-off as pass conditions — see how to sign a software outsourcing contract for clause wording and how to accept an outsourced project for the checklist. Decide the history policy at the same time: migrate hot data in full; cold data only needs to be archived and queryable, not loaded into the new primary database. The switchover order between old and new system interfaces is the other side of the field-mapping and scheduling problem in why system integration always runs late. If an external team runs the migration, the delivery boundary follows the handover criteria in build in-house or outsource.

6. How we work
We do custom development and system integration, and data migration is a standard part of integration work; scope is described under custom development and system integration. We take migration projects on one precondition: the data asset list comes first. No list, no project — a migration without a clear scope accumulates errors faster than progress.
We do not make empty "not a single row lost" promises. What we commit to is that every step is verifiable and reversible: every migration plan carries reconciliation criteria and a rollback switch. We decline the same kinds of projects as in the pricing guide: "migrate it fast" with no validation window, or refusal to do business spot checks. To size up your migration and pick a strategy, talk about your project.
Frequently asked questions
Will data migration lose data?
"Not a single row lost" is an empty claim. What engineering can deliver is three-layer validation plus a rollback plan: zero-difference volume reconciliation, key-field sampling, and real-document business checks. Any failed layer triggers rollback and the old system keeps running. For amounts and inventory, tolerance is zero.
How long will the business be down?
It depends on strategy and data volume. A stop-and-cut window is compressed by rehearsal: run the full pass in test, then take the measured duration plus margin as the estimate. Core systems that cannot stop use dual write to cut downtime to minutes, at the price of higher engineering effort and continuous reconciliation.
How should dirty legacy data be handled?
Cleanse before migration, never "fix as we go". Rules (what counts as duplicate, which value maps to which dictionary code) are confirmed by business owners and then fixed in scripts; what cannot be repaired goes to an exception list with a decision per item (migrate as a note, archive separately, or drop), and anything dropped must stay traceable.
How do we verify the migration succeeded?
All three validation layers pass plus business sign-off: volume reconciliation (zero difference in row counts and amount totals), key-field sampling, and real documents walking through the new system. A migration that "finished" with no reconciliation report is not an acceptance basis.
Should all history be migrated?
Layer it by query needs. Recent hot data goes into the new system's primary store for daily queries and reports; years-old cold data only needs archiving and retrieval, not a seat in the new system. Business owners set the layering line by query frequency and put it in the data asset list.

