← All guides

CSV import discipline: item data loads that don't corrupt the file

Data, integrations & replication · 4 min read · By Dex Carter · Published 2026-10-28 · Last updated 2026-10-28

Every item-data horror story has the same first chapter: a spreadsheet, a deadline, and an import run at full size on the first attempt. Prices in the description column, a key matched on the wrong field updating 4,000 wrong records, units of measure carried as text that almost matches. The technology of importing is easy; the discipline around it is what separates a data load from a data incident.

Before: the file and the keys

During: samples before volume

  1. Load ten rows. Check them in the system as a user would: the item card, the price at a till lookup, the barcode scan.
  2. Load a hundred, including the known edge cases, the longest description, the item with variants, the one with the odd unit conversion.
  3. Only then the full file, in the quiet window, with a backup or a reversibility plan that was actually tested, not assumed.
  4. Watch the error list as a census, not a nuisance: errors cluster by cause, and the second cluster is a mapping fix, not 300 manual corrections.

After: prove the load in the places it will be used

Counts agreed (created vs updated vs rejected, reconciling to the file's rows), value spot-checks on the high-price tail, and a scan-test of a sample of barcodes at a real till, because the import's true destination is a beep. Anything already traded under a corrupted record (a price that was live for an afternoon) gets its own tidy-up note while the window is short.

Vendor-supplied files: trusting the sender's columns

Supplier price and item files arrive with the supplier's semantics, which differ from yours in the quiet places: prices that may be per case or per unit, tax-inclusive or not, effective immediately or from a future date printed in a header row nobody reads. The import discipline for vendor files starts before the file: a written per-supplier profile of their format's meanings, agreed once and stored with the import routine. Then the standard gates apply, counts, probes, reversibility, plus one more: the first import from a new supplier is supervised line by line on a sample, whatever the profile says, because profiles describe intentions and files contain Tuesdays. Suppliers change their exports without announcement; the canary probes are how you hear about it from your data rather than from your shelves.

Updates are more dangerous than creates

A create-import that goes wrong gives you bad new items: visible, countable, removable. An update-import that matches on the wrong key gives you good items silently rewritten, descriptions replaced, prices halved, tax groups shuffled across records that were trading happily that morning. Treat update imports with the higher ceremony: match-key uniqueness proven on both sides, a before-snapshot of the fields being touched (export the existing values for the matched records first, so the import is reversible by construction), and the sample pass executed as updates against real records, not creates against test ones. If the tooling cannot snapshot the before-state, the import waits until it can, that rule, stated once and kept, prevents the single most expensive sentence in item data management: "we can't put it back, we don't know what it said."

Success: item loads that are boring at full size because they were interesting at ten rows, and a mapping archive that makes the next supplier's file a morning's work instead of a week's archaeology.

, Dex Carter, Tech Writer