Analyst Bootcamp Join on TelegramJoin
Junior+ · Systems Analysis

The data migration plan: mapping, cleaning, cut-over, rollback

🕥 10 min read🧭 SA📅 updated 2026-11-04Читать на русском

Moving data from an old system to a new one is where projects quietly fail: wrong fields, lost history, a weekend cut-over that cannot be undone. The analyst's job is a plan on a few pages: field mapping, data quality rules, the cut-over sequence, reconciliation checks and a way back.

The weekend that lasted a month

A company moves its customer records from an old CRM to a new one. The import runs on Saturday. On Monday, 8% of customers have no phone number (the old system stored two formats), 1,200 have the wrong account manager (a code table was not mapped), and nobody can tell which records were touched by support since the export. The old system has been switched off.

A migration plan prevents each of those with one section. It is not a technical document; it is the set of decisions a developer cannot make alone, written down before the first test run.

Section 1: scope and the inventory

What moves, what stays, what is archived. One table of entities with counts:

EntityRecordsMoves?Note
Customers48,300yesincluding inactive (legal retention)
Contacts (people at customers)112,000yesduplicates to be merged, see rules
Opportunities9,400 open, 61,000 closedopen: yes; closed: last 3 yearsolder ones archived as read-only export
Activity log (calls, e-mails)2.1 Mlast 12 monthsthe rest stays in a searchable archive
Attachments300 GBlinks onlyfiles stay in the document store

The counts come from the old database today; they will be compared with the new one after the load. Everything marked "no" or "archive" gets a sentence about where it will live and who can read it.

Section 2: field mapping

One row per target field. This is most of the document, and most of the work, and it is where the 8% phone problem is found before it happens.

Target fieldSource fieldTransformationRule when it fails
customer.nameACCOUNT.NAMEtrim; collapse double spacesrequired: reject row, report
customer.phoneACCOUNT.TEL1, ACCOUNT.TEL2normalise to E.164; prefer TEL1if neither parses: load empty, flag for review
customer.ownerACCOUNT.REP_CODE via code tablemap REP_CODE → user idunknown code: assign to "Unassigned", report
customer.segmentderivedrevenue last 12 months → S/M/L thresholds—
customer.createdAtACCOUNT.CREATEDparse dd/mm/yyyymissing: use first activity date
contact.emailCONTACT.EMAILlower-case; validate formatinvalid: load empty, flag; duplicates merged by rule M1

Three columns the developer cannot fill: the transformation rule, the failure rule, and the code-table mapping. Those are business decisions. "Prefer TEL1" is a decision; "assign unknown reps to Unassigned" is a decision. Get them from the data owner and write their name under the table.

Section 3: data quality rules

Before the load, run the rules against the source and publish the counts. The owner then decides for each: clean in the old system, clean during migration, or accept.

-- Q1 duplicate contacts: same lower(email) under the same customer
SELECT lower(email), account_id, count(*) FROM contact
GROUP BY 1, 2 HAVING count(*) > 1;              -- 3,180 groups

-- Q2 phones that parse in neither column
SELECT count(*) FROM account
WHERE NOT parses_e164(tel1) AND NOT parses_e164(tel2);   -- 3,900 (8.1%)

-- Q3 unknown rep codes
SELECT rep_code, count(*) FROM account
WHERE rep_code NOT IN (SELECT code FROM rep_map) GROUP BY 1;   -- 4 codes, 1,200 rows

The numbers go in the plan with a decision next to each: Q1 merge by rule M1 (keep the most recently active); Q2 load empty and give sales a list; Q3 two codes are retired reps → "Unassigned", two are typos → fixed in the old system this week.

The plan in one line: inventory, mapping, quality, trial runs, cut-over with checks, and a way back.
The plan in one line: inventory, mapping, quality, trial runs, cut-over with checks, and a way back.

Section 4: trial runs

Nothing goes live on the first run. The plan schedules at least two full rehearsals on a copy, each ending with the reconciliation checks (Section 6) and a list of defects. The rehearsal also measures how long the load takes, which decides whether the cut-over fits in a night or needs a different approach.

Section 5: cut-over sequence

Minute by minute, with owners and a go/no-go point:

Fri 18:00  Freeze: old CRM read-only (banner + permissions). Owner: IT
Fri 18:15  Final export (counts recorded). Owner: data team
Fri 18:30  Load + transformations (rehearsed: 2 h 40 m). Owner: dev
Fri 21:30  Reconciliation checks R1–R6 run; results to the channel. Owner: analyst
Fri 22:00  Go / no-go. Decider: head of sales ops. No-go → rollback plan
Sat 09:00  Smoke test by 5 sales users with a script (20 min). Owner: analyst
Mon 08:00  New CRM live; old CRM read-only for 90 days; support macro updated

The freeze is the line that prevents "which records were touched since the export". If a freeze is impossible (24/7 operations), the plan needs a delta load: capture changes after the export and apply them after the main load, which is a different, harder project and should be named as such.

Section 6: reconciliation checks

How you know the load worked, written before the load:

Section 7: after

Old system read-only for a retention period; a list of known gaps (the 3,900 empty phones) with an owner; the archive location for what did not move; a review two weeks later of what users report. Migrations are judged a month after the weekend, not on Monday.

With AI

A model will draft a credible plan skeleton and can write the quality queries from your column names. It cannot make the mapping decisions, set the thresholds, or choose who decides at 22:00 on Friday. Use it for structure and SQL; every transformation and failure rule needs a named owner.

Try it (5–10 minutes)

Migration: "Move the help-desk tickets from the old tool to the new one: 40,000 tickets, 2,000 open, 15 agents, 8 statuses in the old tool, 5 in the new."

  1. Write the inventory with a decision for closed tickets and attachments.
  2. Map the 8 statuses to 5 (invent them) with a failure rule, and map "assigned agent" with a rule for agents who left.
  3. Write the cut-over sequence with a freeze, a go/no-go, three reconciliation checks and the rollback trigger.

Where this shows up in real work

  • System analyst and data migration analyst job posts ask for "data mapping", "migration planning" and "reconciliation"; interviewers ask what you check after the load.
  • In real projects the field-mapping table with failure rules is the most reused document: it becomes the test plan, the user communication and the audit evidence.
  • Freelance "move us from X to Y" projects are priced by the mapping table; the analyst who produces it in the first week sets the realistic timeline.

Sources worth reading

Practice it on real drills

Data migration / cut-over planReverse-engineering legacy behaviourData model for a new feature

Finished reading and did the exercise?