Skip to content
ERP · Migration

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.

What we compare after every migration run
Kind of checkWhat it comparesWhat it catches
Record countsProducts, clients and documents in both systemsRows lost or duplicated on import
TotalsSums of orders, payments and invoices per periodWrong amounts, VAT or currency
BalancesStock per warehouse, debt per clientMovements missed or counted twice
SamplesRandom records opened side by sideFields copied without their meaning
Repeat runsThe same import run twiceImports 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

  1. Warehouse: old system
  2. Warehouse: new system
  3. Orders: old system
  4. Orders: new system
  5. 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.

FAQ

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.

Let’s talk

Afraid to touch your old system?

List the modules you use in the form below, and we’ll reply in writing with which one to move first and how we would check it. A 30-⁠minute call works too.

Wrocław, Poland · Central European Time

Prefer to write? Describe the task in two or three lines and we’ll reply by email.

    We use your details only to reply. Privacy

    Thank you! Your message is with us, and we’ll reply by email.

    Test mode: the form works, but this preview sends nothing.

    Book a 30-⁠min call