Contact us
Insights

Retiring a flat-file interface

How to replace an old CSV or fixed-width file feed with a modern integration, without losing data or breaking what still depends on it.

The problem

The file that everything quietly depends on

Many businesses still move orders, stock, or invoices as files: a CSV dropped in a shared folder every night, or a fixed-width export from an older system. They work until they don’t. A file arrives half written, a column moves, nobody notices a failed transfer, or the one person who understands the format leaves. Replacing the file with an API or a modern integration is usually the right move, but the file often feeds more than anyone remembers.

Before you start

Find out what the file really does

Every reader

List every system, script, and spreadsheet that opens the file. There’s often a report or macro nobody mentioned.

Every field

Document each column, its format, and its meaning, including codes and blank values with special meanings.

Hidden rules

Note what the file does implicitly, such as excluding cancelled orders or rounding prices.

Timing

Record when the file arrives and what depends on that time, such as a morning pick run.

The switch

How to retire the file safely

Step 1 of 5

  1. Create the replacement integration while the file keeps running, so nothing changes for the business yet.

  2. For a set period, compare the records each route delivers, day by day, until they match.

  3. Switch each system that used the file to the new route, checking each before moving to the next.

  4. Leave the old export running but unused for an agreed period, so you can switch back if needed.

  5. Stop the export, remove the folder and old scripts, and update the documentation.

When a file is still the right answer

Not every file needs replacing. If the receiving system only accepts files, or the data really is needed once a day, a well-built file transfer can be perfectly reliable. The improvements are then about the file itself: a completion marker so half-written files are never read, a record count to check against, an archive of every file received, and an alert when one doesn’t arrive.

Still relying on a nightly file?

Tell us what the file carries and which systems read it. A few lines are enough.

Tell us what’s not working