How to bring your customers' old data into new software
Import is the first real work people do in a new product. How to plan mapping, previews, duplicates, undo and clear reports so their old data arrives intact.
Every new piece of software starts with a migration nobody planned for. The people switching to it already have years of records somewhere else: a spreadsheet with forty columns, an export from the old tool, a shared drive of contacts, a notebook. If that history cannot come with them, the new product starts life as an empty screen and a long weekend of retyping, and plenty of people simply stay where they are.
Import is usually treated as a script someone runs once during setup. It deserves the same care as any feature people touch every day, because it is the first real work they do in your product and the first moment they decide whether to trust it with their data. Here is how we approach it.
Treat import as a feature, not a setup script
A one-off script works for the first customer, run by the developer who wrote it. It breaks for the second customer, whose file is shaped differently, and it is useless for the tenth, who wants to do it on a Sunday night without asking anyone.
Give import a real screen, a real owner on the team and a place on the roadmap. Decide early who runs it: the customer alone, the customer with help, or your team on their behalf. Each answer changes how much explaining, checking and undo the screen needs. If your team will run most imports at first, that is fine, but build the tool they use as if a customer will eventually use it too.
Start from the files people actually have
The clean sample file you test with is not what arrives. Ask your first few customers to send the real thing before you write any import code, and look at it closely. You will usually find a few patterns that shape the whole design.
- Names in one column. First and last name together, sometimes with a spouse: “John and Mary Smith.”
- Dates in every format. 3/4/26, March 4, 2026-03-04 and “spring” can all live in the same column.
- Notes as data. A free text column holding the phone number, the dietary need and the reason they left, all in one cell.
- Encoding surprises. Accented names that turn into garbage because the file was saved by an older program.
- Extra rows. Totals at the bottom, a title in row one, blank rows used as dividers.
You do not need to handle every one of these automatically. You need to know they are coming, so the import either handles them or tells the person clearly which rows it could not read.
Let people map columns and preview before anything is saved
The center of a good import is a mapping step: here are the columns we found in your file, here is where we think each one goes, change anything that is wrong. Guess from the header names, show a few sample values beside each guess, and make “skip this column” an easy choice.
Then show a preview of what the first records will look like inside the product, before a single row is written. This is the cheapest place to catch a mistake. A person who sees every phone number landing in the email field will fix the mapping in ten seconds. The same person discovering it after two thousand records are saved will spend an afternoon, or give up.
Nothing should be saved until the person has seen what will be saved.
Decide how duplicates and conflicts are handled
Real data has duplicates: the same person entered twice in the old tool, or a record that already exists because someone started typing before the import. Decide the rule before the first file arrives, and show it on screen rather than hiding it in the code.
Pick what counts as a match, such as the same email address, and what happens when one is found: skip the row, update the existing record, or create a new one anyway. Updating is the risky option, because it can overwrite good data with an old file. If you allow it, only fill empty fields by default and make replacing existing values a separate, deliberate choice.
Some duplicates will slip through no matter what. Give people a way to find and merge them afterward. In Studio, the CRM can list likely duplicate people and merge them, which takes pressure off the import itself to be perfect.
Make every import reversible
Even with a good preview, people will import the wrong file, the wrong sheet or the wrong version. Tag every record with the import it came from, and offer a way to undo that whole import in one step for a reasonable window afterward.
This sounds like extra work, and it is a small amount of it. It also changes how people feel about the whole process. When they know a mistake can be undone, they try the import themselves instead of waiting for a call with your team, and that saves you more time than the undo button cost to build.
Large files should run in the background, with progress shown and an email or notice when they finish. An import that holds a browser tab open for ten minutes will eventually be closed halfway through.
Report what happened, row by row
When an import finishes, the summary should answer three questions plainly: how many records were added, how many were updated or skipped, and which rows failed and why. “Row 214: date not recognized” is useful. “Import completed with errors” is not.
Let people download the failed rows as a file they can fix and import again. That turns a dead end into a short loop, and it means your support inbox is not the only way to recover from a messy spreadsheet. It also gives you a steady record of which problems come up most, which tells you what to handle automatically next.
Plan the way out as well as the way in
The same people who care about getting their data in will eventually ask how to get it out. An export that produces a file your own import can read back is a good test that both sides are honest. It also answers the data ownership question many buyers now ask before they sign up, which we wrote about in our guide to deciding between building and buying software.
Exports also make support easier. When a customer reports that something looks wrong, an export from before and after shows exactly what changed.
What to do next
If you are planning a product, or your current one has an import nobody likes to run, start small and concrete.
- Collect real files. Ask three customers for the actual export or spreadsheet they would bring, and read every column.
- Build the mapping and preview first. They prevent more bad data than any amount of cleanup later.
- Write down the duplicate rule. One sentence on what counts as a match and what happens next, shown on screen.
- Add undo by import. Tag records with their import so a wrong file costs minutes, not a weekend.
- Finish with a clear report. Counts, failed rows with reasons and a file to fix and retry.
Done well, import is the moment a new product stops being empty and starts holding someone's real work, which is also the moment they begin to rely on it. If you are weighing how to bring your own data into new software, tell us what you are working with.
Start a project