Data migration from spreadsheets Moving data is a project of its own, and your old files are messier than you remember

The files your company runs on today hold duplicate customers, names typed three ways and dates that only their author understands. All of that needs a plan before the first import line runs.

Published Naqrah Tech, Muscat6 min read

Scattered glass grains gathered into a small brass bowl

In short

Moving data into a new system is a project inside your project, with its own team, its own table and its own sign-off. Most of what surprises you lives in the old files themselves, and very little of it lives in the code. So run complete trial imports, check every total against the source file, and let the people who own the numbers approve the result before any live data moves.

  • Old files carry decisions nobody wrote down, such as what an empty cell means.
  • Each trial import produces counts that you compare against the source, and repeated agreement is the test.
  • A parallel period ends with a signature that carries a name and a date.

A file called "customers final (2)"

At an air-conditioning maintenance company in Seeb, customers have lived in one spreadsheet for years. The file looks clean when you open it, but it holds three entries for one company: "Al Falah Trading", "Falah Co." and "الفلاح للتجارة". One phone number carries the country code, another has none, and a third has stray spaces that break any exact match. Nobody in the office knows which entry is the right one, because each person remembers a different customer. (This is an illustrative case built for this post.)

What the file hides

The first mistake is to treat an import as copying and pasting. Old files carry decisions that nobody wrote down. What does an empty cell mean? Zero, unknown, or forgotten? These are the kinds of problems you meet in a typical file:

  • Duplicate names, typed differently. The same Arabic name can be typed with different forms of alef, such as أ, إ, آ or ا. A database compares characters exactly, so it counts two spellings as two customers. You need a matching rule, then a human check on the cases the rule cannot settle.
  • Arabic-Indic digits. The digits ٠١٢ look like 0 1 2 on screen, but Unicode assigns them a separate block that starts at U+0660. An import that stores them as text leaves amounts that no total can add up.
  • Free-text dates. "Third week", "3/4" and "end of month" all describe a date, to the person who typed them. A standard format is a decision the owner makes, and the old rows are converted to it, with the leftovers reviewed by hand.
  • Numbers without units. "500" can mean 500 OMR or 500 cartons. The Omani rial is counted to three decimal places. A file that stores prices to two places rounds every amount when it converts, and the totals drift in the third decimal.

Each of these looks small on its own. Together they cause the first reconciliation to fail, and the failure looks like a bug in the code when the real problem sits in the file.

Inventory every field before the import

Before a developer writes a line of import logic, build a table with one row per field you intend to move. The last column matters most, because every field needs someone who decides what it means:

Field in the fileWhat it actually meansDecision neededWho decides
Customer nameThe same company, under several namesA matching rule and one reference recordSales manager
Phone numberWith a country code, or without itOne format, and a length checkFront desk lead
Order dateA date, or a description in wordsOne format, with free text reviewed by handAccountant
PriceWith or without a currency, two places or threeThree decimal places and an explicit currencyOwner
Order status"done", "delivered", a tick markA fixed list of statuses, each with a meaningOperations manager

Write this table with the people who own each field, alongside the developer. The developer knows how to import data. The meaning of a field belongs to whoever uses it every day. Our guide on moving from spreadsheets and WhatsApp to a company app sets out the overall order of the move, and this table is the work that happens inside each step of it.

Rehearse until the numbers agree

The live data moves across only after the trial runs succeed. A copy of the files gets imported into a test environment, and the errors show up there. After each change to the rules, the import runs again from the first row. The aim is trial runs that produce the same counts twice in a row, and a clear explanation for every warning along the way.

  1. Export the files as they are, and record the row count of each file and the total of every money field.
  2. Import into the test environment, and record what was rejected, what was merged and what was converted.
  3. Compare the counts with the source file. Every difference gets a written cause, and then a fix.
  4. Show the list of exceptions to the owner of each field, and take their decision.
  5. Run the whole rehearsal again after every change, until two runs in a row produce the same numbers.

The exceptions list is the most important page in the project. Each rejected row needs someone to decide its fate: correct it, merge it with another row, or archive it. A row that nobody decides on comes back months later, inside a report that nobody can explain.

The parallel period finds what you missed

Trial runs work on frozen copies. A parallel period works on live operations. For a fixed stretch of time the team records work in both the spreadsheet and the new app, and new situations show up that nobody predicted: a customer asks to change an order after it has closed, an employee adds a column the form never had, or a rep logs a visit under yesterday's date. Each case gets written down and settled before the old spreadsheet closes.

The parallel period needs a measure of success that is agreed in advance, or it can run forever. Decide before it starts which figures must match between the two systems: the number of open orders, the outstanding balance for each customer, and the sales total for the last full week of the month. The parallel period ends when those figures agree.

Who signs, and when

A migration ends with a signature that carries a name and a date. Three signatures usually do the job. The finance lead confirms that the totals match the source file. The operations manager confirms that the sample orders work on a normal working day. The owner signs the closing of the old spreadsheet. Once everyone has signed, the old files move to read-only storage, together with a note that explains what was moved and what stayed behind, because someone will ask about it a year from now.

An archive is a closed room with clear permissions. Anything you will never use stays out of the import, and anything you do import carries personal data covered by Oman's data protection law. Keep the old files where access is controlled, as you would the new system. We wrote about that in our post on writing the permissions table before the first screen.

Write the field inventory before your next meeting with the developer, and ask for a written report after every trial run: how many rows went in, how many were refused, and why. If that report does not exist yet, hold off on moving live data. You can begin that planning with our digital transformation work for company operations.

Sources

  1. Unicode Consortium: Decimal digits terminology
  2. Royal Decree 6/2022, Personal Data Protection Law (decree.om, Arabic)

This post is general planning information as of its publication date. Your files and their rules need an assessment of their own.

Send us your current files

We check the fields and the duplicates, run a trial import on a copy, and show you the exceptions list before anything is written to the new system.

Or call us on +968 7119 0707, Muscat, Sultanate of Oman