Back to Blog
Integrations & systems

Online Store and ERP Stock Discrepancies: How to Find the Cause

When an online store and ERP disagree about stock, manually changing a number may hide the underlying problem. Follow a practical diagnostic path through stock definitions, sync delays, failed updates and conflicting changes before choosing a fix.

Published 4 min read

A shopper orders the last item shown as available online, only for the operations team to find that the ERP has already allocated it to another order. The reverse happens too: goods sit in the warehouse while the website says they are sold out. Either discrepancy disrupts sales and creates avoidable investigation for the people fulfilling orders.

Changing the number displayed in one system may appear to fix the issue, but it rarely explains why the numbers diverged. To diagnose stock discrepancies between an online store and an ERP, trace one affected item from the business event that changed its availability through to the update each system received. Start by establishing what each number means.

Check whether the numbers describe the same stock

An ERP may show physical units on hand while the storefront shows units available to sell. Open orders, reservations, damaged goods, non-sellable locations and a deliberate safety buffer can all account for a difference. If the two figures follow different rules, a mismatch on screen is not necessarily an integration failure.

Pick one SKU and variant. Record the identifiers in both systems, the relevant warehouse or location, each quantity and the time you checked it. Does the store aggregate several warehouses, or can it fulfil orders from only one? Does a bundle consume component stock? Does a returned item become sellable immediately, or only after inspection? These details matter more than comparing product-level totals in isolation.

Agree on an availability rule with the people responsible for ecommerce and fulfilment. It should say which system determines sellable quantity and when a reservation is created or released. Without that shared definition, teams can spend hours investigating two correct but different measurements.

Separate delayed updates from missing updates

If the figures eventually match without anyone intervening, examine propagation time. Updates may wait in a queue, run in batches, hit processing limits or depend on an order reaching a particular state. Compare when the source recorded the movement with when the destination received and applied it. The time a refreshed page shows a new number is not always the time the underlying update completed.

A delay matters most when the store can keep taking orders during the gap. Depending on the risk, the appropriate response might be to flag unusually stale stock, shorten an update interval or change how availability is published. Making every process run more frequently will not help if the bottleneck is an unprocessed queue or an incorrect order-state rule.

If the difference persists, inspect integration logs for that item and time window. Look for rejected operations, expired credentials, new required fields, unmapped variants and messages that arrived but failed during processing. Keep the distinction between “sent” and “applied”: an initial acknowledgement does not prove the destination changed its inventory record.

Rebuild the sequence of competing changes

Some discrepancies arise because several processes update the same item in different ways. Imagine that the ERP records a delivery, the store reserves a unit and an overnight import then writes an older stock snapshot over the newer result. The last update to arrive is not necessarily the latest business state.

Build a timeline for a recent example. Include the order, reservation, warehouse movement and integration messages, with event or request identifiers where available. Record previous and new quantities, source, creation time and application time. This makes it easier to spot duplicate messages, out-of-order delivery or retries that subtract the same unit twice.

The right safeguard depends on the update model. A delta such as “subtract one” needs protection against duplicate processing; repeating it changes stock again. A command to “set available stock to four” avoids that particular problem but can overwrite newer changes if it comes from an old snapshot. Define which system owns each type of stock change and what happens when updates conflict. A blanket rule to trust whichever message arrives last is usually too weak to explain business intent.

Make a controlled fix, then verify it

Before running a broad resynchronization, identify the affected SKUs, locations and open orders. Preserve the quantities and relevant movement history you found. Coordinate manual adjustments with fulfilment and ecommerce staff: correcting a value while new orders and warehouse movements continue can create a second discrepancy.

A proportionate fix might repair a variant mapping, safely retry failed messages, change when reservations are released or correct the rule used to publish sellable stock. A periodic reconciliation can compare like-for-like quantities, record exceptions and assign them for review. It should not silently overwrite operational decisions or become a substitute for fixing a recurring failure.

Test the chosen change against realistic sequences: the last sellable unit, two orders placed close together, cancellation, return and a late-arriving update. Check both the final quantity and the event history. Once live, monitor delivery failures, time since the last applied stock change and items whose differences persist. Alerts are useful when someone owns the response and knows what to check next.

A practical first step is to choose one recently mismatched SKU and trace it back to the earliest divergent movement. If you want help clarifying that integration or deciding what is safe to change in production, review the workflow with Cibercoding.

Topics

  • Integrations
  • Ecommerce
  • ERP
  • Inventory Management
  • Data Synchronization