Skip to content

Stop a stale inventory CSV from replacing newer stock

Compare each row’s On hand (current) value with the live quantity captured for that same variant and location. Hold mismatches for review; do not clear the current-value check just to force an import.

What you need

For an ecommerce inventory lead reviewing a bulk Shopify inventory CSV after stock may have changed since export.

  • The exported inventory CSV and its export time.
  • The latest quantity for the same variant and location, plus the source timestamp.
  • A reviewer who can approve quantity changes.

Check the CSV snapshot against current stock before import

  1. Match by variant identifier and exact location name; do not rely on row order.
  2. Compare On hand (current) to the latest known on-hand quantity for that pair.
  3. Hold any mismatch or missing identifier and refresh that row from the source.
  4. Check On hand (new) against the approved adjustment, then import only after a second person reviews held rows.

Three rows, one stale snapshot

Synthetic data. The export was made at 09:00 and the latest warehouse feed arrived at 10:15.

Scroll the table to see all columns.

Synthetic CSV review
SKU / locationCSV currentLatest sourceCSV newDecision
MUG-01 / Main242420Review adjustment
MUG-02 / Main182116Hold; refresh current
MUG-03 / North779Review adjustment

MUG-02 changed from 18 to 21 after export. Hold it instead of importing the stale row. The other two still need approval for the proposed new counts.

What to hand over

A reviewed import file plus a short hold list showing mismatched variants, locations and the newer source quantity.

Limitation. A matching current quantity does not prove the proposed new quantity is correct; it only reduces the risk of overwriting a newer snapshot.

Next step

Bring a redacted export, its timestamp and one example of a stock change that happened before import. Map the review and approval steps.

Discuss an inventory review workflow

Sources