Why ERP orders and warehouse stock records diverge

ERPs and WMS platforms answer different questions. Your ERP tracks financial documents, customer balances, invoiceable quantities, and accounting periods. Your WMS tracks bin locations, lot or expiry dates, pick waves, and dock doors. When an integration is built simply as “push order to warehouse”, six predictable failure modes emerge.

None of these breakages are obvious in a five-order demo. They surface under real shipment volume, partial picks, mid-pick cancellations, or handheld scanner dropouts—turning stock accuracy into manual clerical work.

Failure modeWhat operations seesEngineering root cause
Duplicate writesThe same order deducts stock twice or generates duplicate dispatch notes.Missing per-event idempotency keys and database uniqueness constraints.
Partial shipment mismatchHalf an order ships; the ERP closes the whole line or leaves stale backorders.Line-item state machine does not model partial fulfillment transitions.
Cancel/pick race conditionSales cancels an order in the ERP while the warehouse has already picked it.No two-way state lock or cancellation rejection handshake.
Unit-of-measure driftERP counts cases while WMS counts individual units or pallets.Conversion ratios not anchored in a single canonical table with rounding rules.
Silent dropped messagesWi-Fi drops on a warehouse scanner and the pick confirmation never reaches ERP.No durable retry queue or dead-letter alert surface.
Dirty opening balancesLive sync starts before legacy open orders and stock counts are cleaned.Missing pre-cutover baseline reconciliation and freeze window.

Define one source of truth and explicit movement semantics

Reliable integration begins with an ownership matrix before a single connector line is written. Every field must have one authoritative owner: product master data, pricing, customer credit, and invoicing belong to the ERP; physical bin balances, lot picks, and cycle-count adjustments originate in the WMS.

Movement semantics must separate distinct events explicitly. Reservation, physical pick, dispatch confirmation, and return receipt are separate state transitions. Writing reserved stock and physical deductions into the same bucket guarantees phantom negative inventory.

  • Document source system, target system, trigger event, and compensating rollback rule for every movement type.
  • Centralize case-to-unit conversion factors and rounding rules in one versioned mapping table.
  • Enforce idempotency at the database layer using external event IDs so retries never double-write.
  • Keep live credentials and production customer records out of development; validate against synthetic datasets.

Shadow-read cutover: reconcile before enabling writes

The costliest mistake in a warehouse transition is enabling two-way production writes on day one. Instead, sequence the cutover into two verifiable stages: shadow reading first, followed by client-authorized limited writes.

During shadow reading, the integration reads events from both ERP and WMS without mutating production ledgers, matches order lines, and generates a daily discrepancy report. Operations sees exactly which SKUs or workflows cause mismatches before any automated write touches accounting. Once rules hold, writes open for a single warehouse and a single order flow first.

CUTOVER RULE

Limit the initial implementation phase to one warehouse and one core order flow. Opening multiple warehouses, custom pricing exceptions, and return flows simultaneously makes discrepancy isolation nearly impossible.

Retry queues, replay controls, and daily diff reporting

No production network stays healthy all month. ERP maintenance windows, temporary API timeouts, or an unmapped SKU will happen. Failed events must land in a durable retry queue rather than disappearing into log files.

That queue should be legible to both operations and IT: which order or stock movement is waiting, why it was rejected, and how an authorized operator replays it after fixing the master data.

  • Test normal orders, duplicate deliveries, API timeouts, unmapped SKUs, and manual replay on synthetic data before handover.
  • Keep an immutable audit trail recording who triggered or replayed every adjustment and when.
  • Agree in writing with the operations lead on acceptable discrepancy and latency thresholds before sign-off.

Acceptance proof and rollback drills

An ERP–WMS integration is not finished when an endpoint returns HTTP 200. Delivery must be verified against written acceptance criteria—including a timed rollback drill proving how operations reverts safely if a cutover stalls.

Environment access provisioning, historical data cleanup, and formal operational sign-off always remain human responsibilities overseen by your team alongside the builder.