Old data is always messier than expected
Every migration starts with someone saying the data is "mostly clean". It never is, and that is not a criticism of anyone. Years of real work leave real marks: the same customer typed three ways, dates written in whatever format the person preferred that day, and amounts with commas, currency signs or the word "approx".
The goal is not perfect data. The goal is to find the problems before go-live, while they are cheap to fix, instead of after, when staff are using the new system and losing trust in it.
Step 1: Take stock
List every source: spreadsheets, the old system's exports, paper registers that matter. For each one, write down who owns it, how many rows it has and which totals people rely on, such as the number of active customers or the outstanding balance. Those totals become your checks later.
Step 2: Profile the data
Before changing anything, measure it. A quick profile of each column shows what you are dealing with:
- Duplicates: the same customer by phone number, by name spelled differently, or by email.
- Dates in several formats, and dates that cannot be real.
- Amounts stored as text, with commas, symbols or notes mixed in.
- Required fields that are empty, and values that do not match the agreed list.
- Records that point to something that no longer exists, such as an invoice for a deleted customer.
Step 3: Map and agree the rules
Write a simple mapping: each old column, the new field it goes to, and the cleaning rule on the way. Which of two duplicate customers survives? What happens to a date that cannot be read? Get the people who own the data to agree the rules in writing. It turns arguments at go-live into decisions made weeks earlier.
Step 4: Rehearse the import
Import into a test copy of the new system, never straight into live. Then run the whole import again from the start. A migration you can repeat at will is a migration you can fix: change a rule, run it again, compare.
Step 5: Reconcile the totals
After each rehearsal, compare the new system with the totals from step 1: record counts, the outstanding balance, the stock on hand. Every difference has an explanation, such as merged duplicates or rows that were skipped on purpose. Write each one down. When the only differences left are ones you can explain, the data is ready.
Step 6: Cut over and verify
- 1 Agree a short freeze when nobody changes the old data.
- 2 Run the final import using exactly the rehearsed process.
- 3 Reconcile the totals one last time and have the data owners sign off.
- 4 Keep the old system or files read-only for reference.
Done this way, go-live day is calm and boring, which is exactly what it should be.