Recovering LS Central POS transactions after offline mode: replay and duplicate checks
The companion guide on this site covers what the POS does while the connection is down: it keeps selling into local storage and uploads when the link returns. This guide starts the morning after, when the upload did not go cleanly. Some receipts are missing at head office, the statement will not tie to the POS report, and nobody is sure whether the gap is five transactions or fifty. The worst response is to “just resend everything”, because a transaction that actually arrived can arrive a second time, and now the gap has become a double-count.
Recovery is safe when it is done as accounting, not as IT folklore: classify every missing receipt first, replay only the class that needs replaying, then prove, by count and by receipt number, that the Transaction Register holds each sale exactly once before any statement is calculated.
Three ways a transaction goes missing: never sent, failed, or sent twice
Never sent. The transaction is still on the store side. Under the offline POS model, sales are pushed from the POS or POS server to head office after each sale using POS web services, and the store side polls head office for packages in return. If the terminal, the store server, or the send configuration was down, the transaction never left. It exists locally and nowhere else, this is the only class that needs a replay.
Failed at head office. The transaction travelled but was not accepted or not processed. Which failure points exist depends on the send path configured in the POS Functionality Profile: LS Retail’s replication guidance has the profile activating Send Transactions, Use Background Session, and Use Web Replication, and from LS Central 26.1, Send Transactions by Storage Queue writes the transaction to cloud storage while a lightweight queue message references it, with head office processing the messages asynchronously. A web replication failure, a stopped background session, and an unprocessed storage-queue message look identical from the store (“it’s not at head office”) but are fixed in different places.
Sent twice. The transaction arrived, and then arrived again. This class is real, not theoretical: LS Central’s own 27.1 hotfix notes describe a deadlock on serial coupon synchronization during POS posting that caused the same receipt to be posted twice, creating duplicate transactions in the Transaction Register, fixed by making posting roll back cleanly on a synchronization failure so a retry no longer duplicates. The mechanism generalises: wherever a send is retried after an ambiguous failure, the retry can land on top of a success nobody saw. LS One’s release notes record the same pattern from the other side, the POS retries saving a receipt several times specifically to avoid a duplication issue, and a lost transaction XML on save was its own separate fix.
Before any replay: freeze the statement and take the counts
Do not calculate the statement for the affected period yet. A statement calculated on an incomplete or double-counted register bakes the error into posted statements, and unwinding a posted statement is far more work than delaying one. Then take three counts, in writing: the number of transactions the POS reports for the offline window (from the terminal’s own journal or end-of-day report), the number of receipts in that window now present in the Transaction Register at head office for that store and terminal, and the tender total for the window from each side. The difference between the first two counts is the size of the problem; the tender totals tell you whether the missing receipts are the small ones or the day’s big sale. Recovery is finished when all three numbers agree, not when someone says the sync “looks done”.
The recovery procedure, in order
- Confirm the link and the send path are actually live. Check connectivity from the store, then confirm which send mechanism the POS Functionality Profile uses (web replication with background session, or storage queue on 26.1+) and that it is running. Replaying into a still-broken path just re-queues the failure.
- List the exact missing receipts. Compare the POS-side journal for the offline window against the Transaction Register at head office, receipt by receipt. Work from a list of receipt numbers, not from totals, totals can agree while two different errors cancel each other out.
- Classify each missing receipt. Still present only on the POS or store server: never sent. Shown as failed or stuck in the send mechanism, or referenced by an unprocessed queue message on the storage-queue path: failed at head office. Already in the register once: not missing at all, remove it from the replay list immediately.
- Clear the failure before resending the failed class. A transaction that failed at head office failed for a reason, a data error, a blocked item, a service that was down. Fix the cause first; resending into the same error produces the same failure, and on some paths, a duplicate.
- Replay only the never-sent receipts. Use the normal send mechanism rather than manual data entry. A hand-keyed replacement transaction is a new transaction, not a recovery: it breaks the receipt-number chain and will double-count the moment the original finally syncs.
- Re-take the three counts. POS count, register count, and tender totals for the window must now match exactly. Investigate any remaining difference before moving on, do not average it away.
- Run the duplicate check (next section) before calculating the statement.
- Only then, calculate and post the statement for the period, and record the offline window, the counts, and what was replayed in the store’s end-of-day notes, so the next person is not re-diagnosing a known event from scratch.
What success looks like: register count equals POS count for the window, tender totals agree to the cent, the duplicate check below returns no receipt twice, and the statement calculates without the totals mismatch that started the investigation.
The duplicate check: proving every receipt exists exactly once
Duplicates hide because two copies of one receipt have the same amount, the register total simply looks “a bit high”. Check structurally instead of by eye: filter the Transaction Register to the affected store, terminal, and the offline window plus a margin on both sides, then sort or group by receipt number and look for any number appearing more than once. Extend the margin beyond the window itself, because a retry can land minutes or hours after the original, at reconnect rather than at sale time. For any duplicated receipt, compare both entries line by line before removing anything: confirm they are the same sale (same lines, same tender, same timestamp at the POS) and not two genuinely separate sales that happen to share a total. A duplicated entry is handled through the system’s normal void and audit controls, never by deleting posted records directly, and the voided duplicate stays visible in the audit trail, which is the point of using the controls.
Failure class to remedy: the decision table
| Class | Evidence | Remedy | Risk if mishandled |
|---|---|---|---|
| Never sent | Receipt on POS journal, absent from register, send path was down | Restore the path, replay via the normal send mechanism | Manual re-entry double-counts when the original syncs |
| Failed at head office | Send error, stuck background session, or unprocessed queue message | Fix the underlying cause, then resend | Blind resend repeats the failure, or duplicates a partial success |
| Sent twice | Same receipt number twice in the register for one sale | Void one copy through the normal audit controls | Statement overstates sales and tenders until it is caught |
| Not missing | Receipt present once; totals differ for another reason | Stop, investigate the totals difference separately | “Recovery” creates the duplicate it was meant to fix |
Prevention, briefly
Most of this procedure becomes unnecessary with two habits: an end-of-day count comparison between POS and head office on any day a terminal reported offline (the absence of a report is not evidence of a clean day), and staying current on hotfixes for the send path, the duplicate class above existed as a product defect until a hotfix closed it, which is a pattern worth remembering before blaming staff for a double posting.
FAQ
Can transactions just be resent in bulk to be safe? No. Bulk resend is how the never-sent class gets fixed and the sent-twice class gets created. Replay from a receipt-level list, after the duplicate check has cleared each receipt as genuinely absent.
The statement was already calculated on the incomplete register. Now what? Recover and verify the transactions first, then deal with the statement through the normal correction process for posted statements. Do not replay transactions to “match” the statement, the register is the record; the statement follows it.
A suspended sale is also missing from head office. Same problem? Not necessarily. Suspended transactions follow their own path. LS Central holds a sale locally when it cannot be suspended to the remote database, by design. Check the suspended list before counting a receipt as lost.
How long should offline transactions be recoverable? Treat local POS data as a short-lived buffer: recover the same day wherever possible, and never let a terminal run unsynced for days while its local store is the only copy of real sales.
General information for LS Central and Business Central administrators, not professional advice. Send-path configuration and hotfix behaviour vary by version, confirm the mechanism your POS Functionality Profile uses, and test recovery steps in a sandbox before applying them to a live store.
IndexBack to all guides →