Engineering guide / Data migration

How to migrate business data without losing history

A successful migration does more than copy rows. It preserves the meaning of the records, the relationships among them, the history the operation still needs, and enough evidence to show that the target system can be trusted before the source is retired.

Every row can arrive and the migration can still lose history.

Loss is not limited to missing records. It also occurs when stable identifiers change, relationships break, timestamps lose their timezone or precision, status values collapse into a different meaning, authorship disappears, attachments become detached, or a blank and a deliberate zero are treated as the same value.

Decide what must survive before selecting the transfer mechanism

Identity and relationships

Preserve or deliberately remap stable identifiers and the links among customers, locations, requests, work, documents, people, and transactions.

Operational state

Define how every active, pending, completed, cancelled, or exceptional state maps to the target without inventing equivalence.

Change history

Identify which transitions, previous values, authors, reasons, and timestamps remain necessary for decisions, support, or accountability.

Precision and context

Protect units, currencies, decimal rules, timezones, codes, enumerations, and the difference between missing, unknown, and zero.

Access and provenance

Carry forward the approved ownership, permissions, consent context, source reference, and evidence needed to understand where a record came from.

Documents and references

Keep attachments, external references, versions, and checksums associated with the correct business record and retention decision.

Answer these questions in order before transforming production data

  1. Which source is authoritative for each record type, and who can resolve a conflict?
  2. What does each source field mean in the real operation, including codes, blanks, defaults, and formulas?
  3. Which records and history must be live in the target, searchable in an archive, retained as an immutable export, or excluded by an authorized decision?
  4. Which target identifiers and relationships must remain stable for users, integrations, documents, and reports?
  5. How will normal records, edge cases, duplicates, and known defects be represented in test fixtures?
  6. Which counts, totals, samples, relationships, and exception reports must agree before cutover can be approved?
  7. What change freeze, rollback threshold, source access, and responsible people are required during the transition?

Not all history needs the same destination

01

Operational in the target

Current records and history that users or automated processes need in the normal workflow.

02

Searchable archive

Older detail that must remain available for reference but does not need to drive the new application.

03

Controlled evidence export

A documented, access-controlled snapshot retained for an approved business, contractual, or regulatory reason.

04

Authorized exclusion

Data removed only through an explicit owner and retention decision; convenience alone is not a deletion policy.

A migration sequence that keeps decisions reviewable

  1. Inventory sources and owners

    List files, databases, applications, exports, attachments, integrations, record volumes, known defects, access limits, and the person responsible for each source.

  2. Define the target model

    Agree on canonical concepts, identifiers, relationships, states, permissions, timestamps, units, and lifecycle before writing transformation code.

  3. Classify required history

    Choose what stays operational, what moves to an archive, what is retained separately, and what may be excluded with documented authority.

  4. Write the mapping contract

    Record every source-to-target field, transformation, default, lookup, rejection rule, relationship, and unresolved decision in reviewable form.

  5. Clean without hiding defects

    Normalize approved values and resolve duplicates while preserving an exception log; do not silently manufacture missing business facts.

  6. Rehearse with representative fixtures

    Test normal records, historical variants, boundary values, broken references, duplicates, attachments, and permissions in a non-production run.

  7. Reconcile and obtain approval

    Compare agreed counts, totals, samples, relationships, and exception reports. Assign every accepted discrepancy before authorizing cutover.

  8. Cut over with recovery controls

    Define the change freeze, final delta, verification window, rollback threshold, source-system access, monitoring, and owners before switching responsibility.

  9. Preserve the evidence

    Store the approved mapping, run logs, reconciliation results, exception decisions, archive location, and ongoing retention owners with the project documentation.

Reconciliation should test meaning, not only volume

Record coverage

Compare expected, accepted, rejected, merged, archived, and excluded records by source and business category.

Relationship integrity

Confirm that required parent, child, document, assignment, and transaction links still resolve to the intended records.

State and totals

Compare business-relevant status distributions, quantities, financial totals, dates, and derived values using approved rules.

Representative review

Have responsible users inspect normal, historical, sensitive, and exceptional records in the target workflow.

Access boundaries

Test that roles can see and change only the data authorized for their responsibilities, including archived material.

Recovery readiness

Verify that the team can identify a failed threshold, stop the cutover, restore the agreed state, and communicate the decision.

Task321 illustrates the relationships a migration would need to preserve—not a completed client migration.

Its demonstrated workflow relates requests, customers, locations, services, assignments, dates, schedules, status, and limited customer tracking. Those relationships provide a concrete modeling example, but this guide does not present Task321 as evidence of a completed client data migration.

Review the Task321 technical case

Planning a system change or data consolidation?

Describe the sources, required history, target decision, and the operation that cannot be interrupted.

Discuss a data migration