Archived transactions: moving old POS data out without losing the audit trail
Archive, do not delete. In LS Central the documented route for old payment data is a batch job that moves entries out of the live Trans. Payment Entry table into the Archived Payment Entry table, and those archived entries can be turned back into payment entries by running the batch job again. The record leaves the busy table. It does not leave the system, and the audit trail survives the tidy-up.
That distinction is the whole piece. Deleting old transactions destroys the trail an auditor, a refund dispute, or a statement query may later need. Archiving changes where the data sits and how fast it can be reached. One limit needs stating plainly at the start: the LS Retail pages retrieved for this piece document the mechanism table by table. No end-to-end retention procedure, selection, archiving, verification, restore, in that order, was found in them. The checklist below is built from the documented parts, with the joins marked as decisions for the retailer to record, not as vendor instructions.
How LS Central archiving works: batch job and archived tables
The Archived Payment Entry table holds archived Trans. Payment Entries, created by running the archive batch job. When the batch runs, the system moves the relevant sales entries from the Trans. Payment Entry table to the archived table. Nothing in that description involves a delete step: the entries change tables.
The return path is documented too. Payment entries can be created back from archived payment entries by running the batch job. That reversibility is what separates an archive from a purge. A retention rule built on this mechanism can state a restore method in one sentence, because the method is the same batch job run in the other direction.
Three routes get confused in retention discussions. Keep them separate:
| Route | What the sources document | Where the data ends up |
|---|---|---|
| LS archive batch job | Moves entries from Trans. Payment Entry to the Archived Payment Entry table; entries can be created back by running the batch job again | Archived tables inside LS Central, with fewer indexes and basic lookup only |
| External archiving (LS Central 28.0) | Functionality added to export Archived Transactions to external storage, and to import them back from external (Azure) storage | Outside the database, in Azure storage, until imported back |
| Business Central Data Archive extension | Pre-installed extension; each archive holds up to 10,000 records per table, splitting into further archives beyond that; data can be explored via Excel or CSV and moved onward to Azure Blob storage or Power BI | Archive records inside Business Central, or files exported from them |
The third row is a parallel Business Central mechanism, not the LS transaction archive. No retrieved source states that the generic extension governs LS transaction tables, so a retention plan should name which mechanism owns which tables instead of assuming one tool covers both. The same caution applies to Retention Policies: LS Central 28.0 added support for the Price History table in Business Central Retention Policies in SaaS. That is one named table gaining policy support, not evidence that transaction tables follow the same route.
What you give up: indexes, lookup depth, and speed
Archived entries have fewer indexes, so only basic lookup is provided on them. That is the documented cost, and it should be priced into the retention rule before the first batch runs. Live tables are where fast, indexed searching happens. The archive is where old entries remain reachable for the occasional lookup that an audit or a dispute produces.
Spec check, claim against source:
| Claim heard in planning | What the source actually says |
|---|---|
| “Archived entries search just like live ones.” | No. Archived entries have fewer indexes; only basic lookup is provided. |
| “Archiving is one-way.” | No. Payment entries can be created back from archived payment entries by running the batch job. |
| “The Data Archive extension takes unlimited records per archive.” | No. Each archive holds up to 10,000 records per table and splits into further archives beyond that. |
| “An externally archived transaction can be refunded straight away.” | No. It must first be imported back and restored before the web service can return it. |
Two of those rows are good news and two are friction. A retention rule that quotes only the good rows will fail the first time someone needs an old entry quickly.
External archiving to Azure, and the restore you must prove first
LS Central 28.0 added functionality to export Archived Transactions to external storage, and to import Archived Transactions from external (Azure) storage. External here means the archived transaction no longer sits in the database at all. The capacity gain is larger than the internal archive offers. So is the dependency on the return path.
The dependency is specific. When a receipt is scanned for a refund or exchange, the POS requests the original transaction from Head Office. If that transaction was externally archived, it must first be imported back and restored before the web service can return it. A refund at the till therefore waits on an import step that an internal archive does not impose.
No setup or operations guide for external archiving was found, the capability is announced inside the 28.0 release notes. Treat that as a scope limit, not a detail to improvise around. External archiving belongs in a retention plan only once its restore has been run end to end on a test transaction, during a quiet period, with the elapsed time recorded.
Checklist: select, archive, verify, document the retention rule
- Name the mechanism per table. For each table in scope, record whether the LS archive batch job, external archiving, or the Business Central Data Archive extension owns it. Leave no table assigned by assumption.
- Set the selection rule in writing. Record the age boundary and any other selection criteria the retailer chooses, plus who approved them. The sources document the move itself, not selection filters, the rule is the retailer’s decision and should read like one.
- Count before the run. Record how many entries the selection covers in the live table. That number is the baseline the verification step checks against.
- Run the archive batch job. The system moves the relevant sales entries from Trans. Payment Entry to the archived table.
- Verify in the archived table. Confirm the archived entries are present and that a basic lookup finds a known entry from the selection. Basic lookup is the documented access level, test at that level, not at live-table speed.
- Prove the return path. Create payment entries back from archived entries by running the batch job, on a small sample, before the archive grows large.
- Document the retention rule. One record per run: date, selection rule, counts before and after, mechanism used, and the restore method. Future audits read this record, not memories.
What success looks like: the live table no longer carries the selected entries, the archived table holds them, a basic lookup retrieves a sampled entry, and the sample restore in step 6 completed. All four, not the first one alone.
Restore drill: bring one old transaction back end to end
A retention rule is only as good as its worst day. Run this drill before the rule is needed for real:
- Pick the awkward case. Choose an old transaction of the kind a refund or exchange would need, not the easiest entry in the archive.
- Internal archive: create the payment entries back from the archived entries by running the batch job, then confirm the restored entries are usable where the query originated.
- External archive: import the transaction back from Azure storage and restore it first; only then can the web service return it to the POS for the refund or exchange.
- Record the elapsed time and every step taken. File both with the retention rule from the checklist.
What success looks like: the old transaction is back in a usable form, the refund or exchange flow can proceed against it, and the drill record states how long that took. If step 3 has never been run, the external archive is a hope, not a retention route, keep the data in the internal archived tables, where the return path is the batch job, until the drill passes.
, Dex Carter, Tech Writer
Keep readingNext: The Transaction Register: Where Posted POS Transactions Live and How to Query Them →