Mobile Inventory and tracked items: keeping lots and serials right with MIValidateItemTracking
Item tracking fails at the worst possible moment. The count was done in the morning, the receiving was sent from the handheld by noon, and the error surfaces at statement posting, when the day is being closed and the item in question is back on a shelf, in a storeroom, or sold. Anyone who has chased the message "expiration date must have a value in tracking specifications" through an open statement knows the shape of the problem: the tracking data was wrong where it was captured, and discovered where it could no longer be fixed cheaply. LS Central 25.0 added the pieces to move that check to the device, at the moment of capture. This guide explains how they connect and how to switch them on.
Why tracked items break on mobile first
Mobile Inventory's worksheet model is built for the floor, not the desk. A worksheet is defined for the user, the counting itself works offline against the item master held on the device, pick the worksheet, pick the area if the worksheet uses areas, scan or search the item, enter the quantity, and only when the work is finished does the user send the worksheet to the central database for posting. The same device flow covers purchasing, positive and negative stock adjustments, label ordering, prepack explosion, and stock counting with or without areas, and retail receiving can scan lot numbers and expiration dates as part of the receipt.
That design is exactly right for speed, and exactly wrong for tracking data. A mistyped serial, a lot scanned against the wrong item, an expiration date the item requires but the entry lacks, none of these stop the worksheet. They travel with it into the central database and are discovered downstream, where the documented fix in community threads is grim: find the item in the statement transactions, correct the lot so it carries its expiration date, and if necessary post a negative adjustment for the item and lot and bring the stock back in with the tracking lines corrected. Prevention beats that repair every time, and prevention has to happen where the physical item is still in the operator's hand.
The 25.0 validation pieces, and how they connect
LS Central 25.0, released October 16, 2024, on Business Central 2024 release wave 2, added two connected features:
- MIValidateItemTracking, a new web service that enables external item tracking validation, external, here, meaning validation called from outside the back office, i.e. from Mobile Inventory.
- Validate Tracking Code, a new field on the Retail Vendor Card, the Retail Purchase Order, and Retail Receiving, which controls whether tracking is validated for that document flow.
The connection between them is the document chain. The field's value is set once and then inherited: when a Retail Purchase Order is created, the value is inherited from the vendor, if specified there; when a Receiving document is created, it is inherited from the Retail Purchase Order; and the value is then sent to the Mobile Inventory devices by the GetDocument web service, riding along with the document the operator is about to work on. The device therefore knows, per document, whether tracking must validate, and MIValidateItemTracking is the service it calls to do the validating against the centre.
| Stage | Without validation | With Validate Tracking Code + MIValidateItemTracking |
|---|---|---|
| Capture on device | Lots, serials and dates accepted as typed or scanned | Tracking checked against the centre while the item is still in hand |
| Worksheet sent / receiving posted | Bad tracking data travels into the central database | Invalid tracking is caught before it becomes a posted problem |
| Statement posting | Where tracking errors traditionally surface, as posting-blocking messages | Nothing new to discover; the day closes |
| Cost of a mistake | Negative adjustment and re-entry of the item/lot to repair | Re-scan or correct the physical item on the spot |
Validate Tracking Code: set it once, inherit it three times
The inheritance chain is the setup story, and it rewards setting the value at the top. Put Validate Tracking Code on the Retail Vendor Card for vendors whose goods are lot- or serial-tracked, and every Retail Purchase Order raised against that vendor carries the value with it. From the purchase order it passes to the Retail Receiving document automatically. It is not locked, though: the value can be overwritten on the Retail Purchase Order and on the Receiving Header documents, which is the right escape hatch for the one delivery from a tracked vendor that genuinely is not tracked, mixed pallets exist, and a per-document override beats a wrong global default.
The practical rule: default at the vendor, override at the document, never rely on the operator remembering anything. By the time the document reaches the device through GetDocument, the decision has already been made by someone looking at setup, not by someone holding a scanner in a stockroom doorway.
What the person holding the device sees
The surrounding flows do not change shape. Receiving still runs the documented path: create and release the Retail Purchase Order, open Receive PO in the app, insert the received quantity, tap Send; the Retail Receiving is created with the updated line, then Confirm and Post, and the posted document is verified in the back office. Counting still runs Stock Counting → Send → Store Inventory Worksheet → Edit Journal → Proceed/Post, with Qty. Calculated and Qty. (Physical Inventory) waiting in the journal. Business Central's own tracking pages tell the same story from the other side: on Item Tracking Lines, serial, lot and package numbers can be scanned in, including a Scan multiple action that enters each barcode and moves to the next field, and posting the journal is what links the tracking numbers and expiration dates to the item ledger entry. Validation inserts itself at the one point all of these flows share: the moment a tracking value is entered, before any posting depends on it.
A setup and first-use procedure
- Confirm the version. MIValidateItemTracking and Validate Tracking Code arrived in LS Central 25.0. On an earlier release, the device-side check does not exist and the rest of this procedure has nothing to switch on.
- Set Validate Tracking Code on the Retail Vendor Card for every vendor supplying lot- or serial-tracked goods. This is the head of the inheritance chain; a value set here reaches purchase orders and receiving documents on its own.
- Spot-check the inheritance. Raise a test Retail Purchase Order against one of those vendors and confirm the value arrived on the order; create the receiving and confirm it arrived there too, since the Receiving Header is what GetDocument carries to the device.
- Run one tracked receipt end to end with the device flow above, deliberately including a lot with an expiration date, and verify the posted document in the back office.
- Decide the override rule with the team: who may overwrite Validate Tracking Code on a purchase order or receiving header, and for what reason. The override exists for genuine exceptions; if it becomes routine, the vendor default is wrong and should be fixed at the card.
- Keep counting discipline for tracked items. In counts, use areas for stock spread across the floor so two people do not double-count a tracked line, the area concept exists precisely to divide the floor and avoid duplication, and remember the counted quantity lands in Qty. (Physical Inventory) in the worksheet, where tracking corrections belong before Proceed/Post, not after.
What success looks like
A tracked delivery is received on the device, its lots and serials validated as they are scanned, the receiving posts cleanly, and statement posting at the end of the day has nothing to complain about, no tracking specification errors, no negative-adjustment repairs, no lot carried without the expiration date its item setup demands. The check still happens; it just happens at the dock door, where fixing it costs a re-scan instead of a journal.
FAQ
Does validation slow receiving down?
The flow gains a check at entry time and loses the repair loop at posting time.
Given that the documented alternative for a bad lot at statement posting is a
negative adjustment and re-entry of the stock, the trade favours validating early, especially since LS Retail continues to ship hotfixes weekly and features in two
waves a year, so the 25.0 behaviour is the platform's direction, not an experiment.
Where should the default live, vendor, order, or receiving?
At the vendor, because inheritance flows vendor → purchase order →
receiving. Overrides on the order and the receiving header are for exceptions on
specific documents, not for carrying the policy.
What about items counted in a stock count rather than received?
Counts travel the worksheet path, sent to the central database for posting, where
Qty. (Calculated) and Qty. (Physical Inventory) meet in the Store Inventory
Worksheet. Tracking discipline there is procedural: scan rather than type wherever
the item allows it (the Business Central tracking pages support scanning serial,
lot and package numbers directly), and correct tracking in the journal before
posting links the numbers to the ledger entry.