Leaving a legacy ERP without losing a single record
Companies rarely stay on an outdated accounting or ERP system because they like it. They stay because they are afraid of losing data on the way out. Here is how a move goes when every record is counted twice: once in the old system and once in the new one.
By Ross Honcharuk, founder and CTO7 min read
The fear is reasonable. An old system holds years of catalogues, prices, counterparties, stock and documents, often with fields nobody remembers adding. What a migration loses is rarely a whole table. It is a discount kept in a comment field, a product merged with its twin, a balance that is off by one invoice.
Why data goes missing in a migration
- Hidden meaning. Over the years people store things wherever they fit: a delivery note in the address line, a status in a colour. A script that copies fields copies the field, not its meaning.
- Duplicates. The same client or product exists twice with different spellings. Merge them carelessly and the history of one of them disappears.
- A one-night switch. Everything moves at once, the old system is turned off, and the errors surface weeks later, when there is nothing left to compare with.
- Nobody owns the check. Developers check that the import ran. Nobody checks that the totals match.
Step 1: an inventory, not a database dump
Before any code we list what actually lives in the system and who uses it: catalogues, prices and discounts, counterparties, stock by warehouse, open orders and documents. For each part we note how often it changes and what breaks if it is wrong. The result is a short map that sets the order of the move, starting with the module that hurts most today.
Step 2: map the fields, then let people confirm
Mapping hundreds of old fields to a new data model is the slowest part of any migration, and this is where AI helps most. It reads the old structures and sample records, proposes the mapping and drafts the migration scripts. An engineer reviews every rule, and the people who work with the data confirm the doubtful ones. AI takes over the routine; it never decides what a field means.
Step 3: reconcile automatically
Every migration run is followed by checks that compare the two systems. If a check fails, the run is not accepted, however small the difference.
| Kind of check | What it compares | What it catches |
|---|---|---|
| Record counts | Products, clients and documents in both systems | Rows lost or duplicated on import |
| Totals | Sums of orders, payments and invoices per period | Wrong amounts, VAT or currency |
| Balances | Stock per warehouse, debt per client | Movements missed or counted twice |
| Samples | Random records opened side by side | Fields copied without their meaning |
| Repeat runs | The same import run twice | Imports that are not safe to repeat |
The last row matters more than it looks: a migration is run many times before the final switch. At a wholesale importer we built the supplier-invoice import so that several Excel and XML files go in inside one database transaction, and a repeated or wrong file is blocked. A migration script needs the same guarantee.
Step 4: run both systems in parallel
The old system is not switched off on the day the new one appears. For a while both run side by side: the new one receives the same data, people start working in it module by module, and the checks keep comparing. When the numbers have matched for long enough, that module switches over. The old database then stays untouched as an archive.
A parallel run, module by module
- Warehouse: old system
- Warehouse: new system
- Orders: old system
- Orders: new system
- Dealer portal: new system
- Old system
- New system
- The old system becomes a read-only archive
Each module works in both systems until the checks match, then it switches. New modules that never existed in the old system start in the new one.
Schematic, not to scale.
Step 5: keep the systems talking during the move
A move takes months, not a weekend, so the old and the new system have to exchange data in the meantime. A furniture factory’s dealer portal was synced with a cloud warehouse system, and where one system had no API, a browser robot entered orders into it until an API appeared. For a supplier of car-service equipment, products and their properties have come from the accounting system for years, with import and export controls for managers. Bridges like these are temporary on purpose: each one goes once its module has moved.
Do you have to give up your accounting program?
Not always. Many companies keep a separate program for accounting and tax reporting and move everything else to a system of their own: sales, warehouse, dealers, documents and the website. The accounting program then receives finished data instead of being the place where everyone works.
How long it takes
That depends on how many modules you use and how clean the data is. After the inventory we write a plan with a timeline for every module. The first module goes live while the rest still runs in the old system, so the business sees results long before the whole move is over.
Questions and answers
Can we migrate without stopping work?
Yes. Both systems run in parallel, people switch module by module, and the old system stays available until the checks show that the numbers match.
What happens to our old database?
It stays untouched as a read-only archive. Nothing is deleted, so any old record can still be looked up.
Can AI migrate our data on its own?
No, and we don’t let it. AI drafts the field mapping and the scripts, engineers review them, and automatic checks prove the result.