Why your van app and the warehouse show different stock numbers for the same item
iotoms team · November 6, 2026 · 5 min read
A hardware and electrical distributor running six vans out of one warehouse had a Tuesday morning routine: the warehouse team printed a stock sheet before the vans left, and each driver's handheld app showed its own running count as the day went on. For months nobody looked twice at it. Then a driver called the depot at 10 a.m. asking why his app said he had 40 units of a popular circuit breaker when the warehouse system, checked five minutes earlier by the ops manager on her laptop, said 12. Neither number was obviously wrong. Both machines were telling the truth about something — just not the same something, at the same moment.
The gap nobody could explain
The ops manager's first move was the obvious one: assume the app was broken and tell the driver to trust the warehouse number. That worked for a day. Then it happened again, on a different item, with the numbers reversed — the app showed less stock than the warehouse did. By the end of the week it wasn't isolated to one SKU or one van. It was happening across the fleet, a few times a day, always on fast-moving items, and always resolving itself an hour or two later without anyone touching anything. That pattern — wrong, then quietly right again — is the signature of a sync problem, not a data-entry error. A wrong number that fixes itself wasn't ever wrong. It was just early.
Where the numbers actually came from
Once the distributor's software team traced a single discrepancy end to end, the mechanism was clear. The warehouse system and the van app were not reading from the same place at the same time — each held its own cached copy of "how much stock exists," and each updated that copy only when something told it to. The warehouse's number updated the instant a dispatcher recorded a transfer out to a van. The van app's number updated only when the handheld had signal and synced with the server, which could lag by minutes in a strip mall basement or longer on a rural stretch of the route. So for a window after every transfer, load-out, or return, the two systems were describing two different realities: one that already knew about a change, and one that hadn't heard yet.
It got worse on busy days because more than one thing could change the same number in the same hour — a transfer to a van, a return from a different van, a correction after a damaged-case writeoff — and each system received those events in a different order depending on when it happened to sync. Two systems that each hold their own copy of a number, and each update that copy independently, will agree most of the time and disagree exactly when it matters most: right when someone is making a decision based on the count.
The turning point
The question that actually moved things forward wasn't "which number is right" — it was "which number is the source, and which numbers are just copies of it that haven't caught up yet." Treated as a data ownership question instead of a bug report, the fix stopped being about making sync faster (it helps, but it never closes the window completely) and started being about making staleness visible and making conflicts resolvable in a fixed order.
The team picked one ledger — a single, append-only log of stock-moving events, each one timestamped and sequenced at the moment it happened, not at the moment it synced — as the one source of truth. Every device, warehouse screen and van app alike, became a reader of that ledger, not an independent holder of its own count. A van's on-screen number was relabeled, visibly, as "as of your last sync" rather than presented as live truth. And when two updates to the same item arrived out of order — a transfer recorded by the warehouse and a sale recorded by a van that hadn't synced in twenty minutes — the ledger replayed them in the sequence they actually happened, not the order they arrived, so the final count converged to the same answer everywhere, even if it took a few minutes to get there.
What to check if this is happening to you
- Confirm whether your systems share one source of truth for stock, or whether each device keeps its own copy that gets updated independently — the second pattern guarantees this exact symptom.
- Check whether any screen that shows a count also shows when it was last updated. If a number claims to be live but has no sync timestamp, nobody can tell a stale read from a wrong one.
- Look at whether discrepancies cluster around transfers, returns, and writeoffs — moments when more than one system touches the same item in a short window are where the race happens.
- Watch whether a mismatch resolves itself within a sync cycle without anyone correcting it. If it does, that's lag, not corruption, and the fix is architectural, not a data cleanup.
- If vans work with intermittent signal, make sure events are timestamped and sequenced at the moment they happen in the field, not at the moment they reach the server — otherwise a late-syncing van can silently overwrite a more recent warehouse update.
iotoms keeps one event ledger behind every stock number — warehouse, van, and counter all read from it, every change is sequenced by when it actually happened rather than when it arrived, and any screen showing a count also shows how current it is, so a driver and a dispatcher looking at the same item know exactly what they're looking at, even mid-sync.