Digital Policy EditionTechnology Magazine

Startups

A CSV import should show what it plans to change

A preview window can make imports trustworthy by reporting which rows will be added, updated, skipped, or sent back for repair.

A laptop displays a spreadsheet with a grid of rows and columns beside document folders.

A factory office exports a product list from an old system and imports it into a new inventory tool. The file has sixteen columns, an empty row beneath the headings, and two records that share a short stock code. The software reports six hundred successful imports. A clerk then discovers that leading zeros disappeared from codes and a price column was read as text. A success count has only answered whether the import ran. The question the clerk cares about is how the catalogue differs from the one it is supposed to replace.

Show the column mapping before work begins

List the input heading beside the corresponding destination field and give a sample parsed value. An imported part number may look like a number while needing all its original characters. A date like 04/05/2026 is ambiguous until a format is chosen. Make type conversion an explicit decision where the same input can yield two valid outputs. Preserve enough of the original to explain a rejected row.

Name the rule that matches existing records

Updating by an internal identifier differs from matching a display name or a supplier's SKU. Name the chosen identifier and show which rows match more than one possible target. An import should provide a predictable outcome when the same file moves through twice. Publish that outcome before the upload so the operator knows whether retrying can create duplicates or replace a record.

A supplier's SKU can be unique within a supplier catalogue while appearing elsewhere for a different part. If the target catalogue keys on supplier plus SKU, display that pair and what happens when the supplier column is absent. Ask the operator to review the few conflicting rows before applying the file. An automated default that chooses the first matching item can quietly alter an unrelated product, and a count of unchanged duplicates will not make that problem visible afterwards.

Preserve the difference between blank and unknown

An empty field in the imported sheet may mean intentionally clear this value, no information available, or leave the existing value untouched. Those meanings affect addresses, prices and stock limits differently. Allow a selection for optional fields where appropriate and report what would be cleared. Distinguish rejected rows from unchanged rows in the preview so a total does not imply success where no action was taken.

Account for changes between preview and commit

Another user might update the inventory after a preview was prepared. A service can check the record revision before applying a planned update, or show a refreshed comparison for any conflicts. Preserve the operator's intended mapping if they need another pass. A visible warning gains credibility when it describes which rows changed and leaves the operator a way to inspect and resolve them.

For a long import, retain the plan reference while loading rows in chunks. If a product is edited after the first chunk, the result needs a way to mention that the next record could no longer be applied safely. An operator should still be able to identify committed changes and review conflicts for a second pass. Consider what the application shows when an import stops after a power outage or browser closure. A near-final result ought to distinguish complete rows from those that were never attempted.

Test a deliberately troublesome file

Make a sample with a quoted comma, a leading zero, two rows with one identifier, and a blank field. Run a preview, fix one row, and execute the test in a practice workspace. Compare the actual changes with the plan. An operator should also be able to download a short rejection list without exporting unrelated records or asking engineering to read service logs.

Give the practice file a description that spans two lines inside a quoted field and a spreadsheet value that looks like a date but is actually a part identifier. Ask the clerk to preview those samples and adjust the mapping without touching any other columns. Compare the rejection file with the original source line numbers, including its heading. A good explanation can show a location the user can repair in their preferred spreadsheet without exposing a neighbouring customer's information or requiring a different import format.

Measure repairs as part of import completion

Count how often users need a second upload, how long they spend correcting records, and which part of the mapping required intervention. Five hundred accepted rows can represent hours of work if a few important entries have to be reconstructed by hand. Compare validation messages with actual repair behaviour to see whether they name the correct row and offer a practical next step.

Collect the common reasons for rejected rows but avoid keeping full uploaded files just to produce a quality chart. Store a small, sanitised operational summary. Compare cases where the source format is genuinely unsupported with cases where a clear mapping could make the original input work. A product team might reduce repair time by letting users save a reviewed template for a known supplier. Provide an explicit update path if that supplier changes its column names the following month.

A transparent import gives a clerk a small reconciliation job before any records move. Turning the proposed changes into visible evidence makes a final count worth trusting.