Skip to main content
Something's wrong

Stock in your shop does not match your warehouse or ERP

The usual reasons a stock figure in your shop differs from the warehouse or ERP, what to check first, and what to send HC.

The short answer

HC copies a stock figure from your warehouse or ERP into your shop. It does not calculate stock. When the two numbers differ, the cause is nearly always one of six things: the figure being compared is not the one HC sends, the SKU does not match exactly, the figure has not changed so it was not sent again, a buffer or block list is doing its job, someone edited stock in the shop by hand, or the update failed. Work through them in this order.

What to check

1. Are you comparing the right figure?

The figure sent to your shop is normally the stock that is free to sell: what is in the warehouse with no order committed against it. It is not the total on the shelf. If your warehouse shows 10 on hand and 7 are allocated to open orders, the shop should show 3. Which figure your integration sends was agreed when it was set up.

2. Does the SKU match exactly?

Products are matched between systems on SKU, and the match is exact. A SKU that differs by one character, or exists in the warehouse but not in the shop, cannot be updated. The stock event for it fails with an error saying the SKU was not found. If you copied a product in your shop, check the copy has its own SKU and is not still carrying the original's.

3. Has the figure changed since it was last sent?

To avoid sending thousands of identical updates, many stock streams skip a SKU whose quantity has not changed since it was last sent. Two situations follow from this:

  • A product created in the shop after its stock figure was last sent gets no stock until the figure changes in the warehouse or ERP.

  • A figure that was corrected by hand in the shop is not corrected back until the source figure changes or the next full sync runs.

4. Is a buffer or block list applied?

Some integrations hold back a fixed number of units per SKU before sending the figure, to protect against overselling. This is a buffer. Some keep a list of SKUs that never receive stock updates. This is a block list. If your integration uses either, a difference of exactly the buffer amount, or a SKU that never updates, is expected behaviour.

5. Did someone edit stock in the shop?

The warehouse or ERP is the source of truth. A stock figure typed into the shop by hand is overwritten the next time the stock stream sends that SKU. If the shop figure keeps going back to a number you did not expect, correct it in the source system.

6. Did the update fail?

  1. In the Control Panel, go to Reporting > Events.

  2. Search for the SKU and narrow the list to your stock stream.

  3. Open the most recent event and check its status. Ok means the figure was delivered. Error or Failed means it was not, and the error message says why.

If the last event is Ok and shows the figure you expected, the difference arose after HC delivered it, for example an order placed since or a manual edit.

What this means for you

  • Fix stock in the warehouse or ERP, never in the shop.

  • Give every product in the shop its own SKU, identical to the one in the warehouse or ERP, before you expect stock on it.

  • Expect a short delay between a change in the warehouse and the shop. Stock streams run on a schedule.

What to send HC

If none of the checks explains the difference, send HC the SKU, the figure in each system with the time you read it, and the stream name. See How to get support.