Adding Lot and Expiry Tracking to Items Already in Stock in Business Central

Why Business Central refuses a lot tracking code on items with history, the two routes that work, and how to convert stock group by group while the warehouse keeps picking.

Business Central will not switch an item to lot specific tracking once item ledger entries exist, because every posted entry has no lot number and specific tracking requires each outbound quantity to come from a received lot; posted history cannot be rewritten. Two routes work. Create a new lot tracked item, usually by renaming the old one and copying it to the original number, then convert the counted stock into it lot by lot with expiry dates at unchanged cost. Or, where your version accepts the new code on the same item, zero out the untracked quantity and re-receive it with lots and expiry dates. Convert by priority, one item group per window, so picking continues.

Why does Business Central refuse a lot tracking code on an item that already has stock?

Because the history already says something different. Every receipt, sale, transfer and adjustment posted for the item created item ledger entries without a lot number, and outbound entries have already been applied to inbound ones on that basis. Lot specific tracking means, in Microsoft's words on set up item tracking, that the lot assigned when an item enters inventory must follow it when it leaves. The untracked entries cannot satisfy that, and Business Central does not rewrite posted entries, so the item card refuses the change once ledger entries exist.

Two other checks often surprise people. Business Central also stops the change while open documents carry item tracking for the item, and a change to warehouse tracking can be refused once warehouse entries exist at locations with bins. The exact validation has moved between versions, so test the specific code you want on a sample item in a sandbox copy of production before you plan around either answer.

Which routes work for items that already have inventory?

Two, and many companies use both: the new item route for the items where full lot traceability and FEFO matter, and the same item route for low-risk items where recording the lot is enough. What lot tracking, expiry dates, FEFO picking and Item Tracing then give you is covered on Business Central for food distribution; this page is only about getting existing stock into that state.

RouteHow it worksFits whenWatch out for
New lot tracked itemRename the old item, copy it to the original number with the new tracking code, convert counted stock into it with lots and expiry at unchanged cost, block the old itemYou need Lot Specific Tracking, warehouse tracking for FEFO at bin locations, or the same item change is refusedItem history is split across two cards; related master data and integrations must follow the new item
Zero out and re-receive on the same itemClose open documents, assign the code, post the untracked quantity out and the same counted quantity back in with lots and expiry datesYour version accepts the code on the item, typically lot numbers recorded on transactions without specific trackingWeaker traceability rules; confirm in a sandbox that the code is accepted and that the result supports the picking you need

When can you keep the item number and re-receive the stock with lots?

When Business Central accepts the new tracking code on the existing item. That is more likely for a code that records lot numbers on inbound and outbound transactions without Lot Specific Tracking, and at locations without bins, where no warehouse entries stand in the way of warehouse tracking. Close or post every open purchase, sales, transfer and warehouse document for the item first, then assign the code.

The stock on the shelf still has no lot in the system, so it has to be zeroed out and received again. In one item journal, post a negative adjustment for the untracked quantity per location and a positive adjustment for the same counted quantity with lot numbers and expiry dates, at the same unit cost, so inventory value does not move. If the old entries already carry a placeholder lot, the item reclassification journal can change it to the real lot with a New Lot No. and a New Expiration Date instead, as Microsoft describes on track items with serial, lot and package numbers. Run it after a shift, not during picking.

How do you move stock into a new lot tracked item without changing its value?

Follow the pattern Microsoft documents for the related problem of changing a costing method, on changing costing methods for items. Rename the original item, for example by adding a prefix, so the new item can take the original number that users, labels and price lists know. Create the new item with Copy Item, assign the lot tracking code, then convert the stock.

Microsoft recommends assembly orders for the conversion: the new item is the assembly output, with the lots and expiry dates on its item tracking lines, and the old item is the single component with quantity per one. Assembly orders keep the cost flowing even if purchase invoices or freight charges for the old item are still to be posted, and a conversion can be reversed if something is wrong. You need one assembly order per item, location and variant with stock. For many lots on simple items, paired lines in one item journal are faster: a negative adjustment on the old item and a positive adjustment with lots on the new item at the same unit cost, checked afterwards on the inventory adjustment account.

  • Run Adjust Cost - Item Entries for the old item before converting, so the unit cost you carry over is current.
  • At warehouse locations, picks may be needed before an assembly order posts; check the location setup.
  • Integrations that identify items by their system ID can follow the renamed old item rather than the new one; check each connector and mapping before the window.

What else has to follow the item to the new number?

Everything that points at the item and is not copied by Copy Item. Microsoft lists the areas for the costing method case, and the list is the same here. Work through it per item group before the conversion window, not after.

  • Stockkeeping units with their own planning parameters, and bin content with minimum, maximum, default or dedicated settings.
  • Item substitutions, item references such as barcodes and vendor item numbers, and price lists or discounts that name the item.
  • Production BOMs (Exchange Production BOM Item does the replacement) and assembly BOMs.
  • Standard item journals, analysis reports, prepayment percentages and project prices that name the item.
  • Open sales and purchase documents, reservations, requisition and planning worksheets, transfer orders and warehouse documents.
  • Integrations: webshop, EDI, scanning app and reporting mappings. A webshop example of moving stock between item numbers is on Business Central and Shopify.

How do you capture lot numbers and expiry dates for stock already on the shelf?

By counting it, lot by lot, from the labels. Calculate the expected quantity with a physical inventory journal, then count per location, bin, lot and expiry date. Stock whose lot or expiry cannot be read should not get an invented date: give it an internal lot number, record the earliest plausible expiry, and set Blocked on its lot information card until quality has looked at it.

For entry, turn on Item Tracking on Lines for a dedicated item journal batch; Lot No. and Expiration Date then appear on the journal line, and Edit in Excel lets you fill those columns from the count sheet and publish them back. At locations with directed put-away and pick, use the Warehouse Physical Inventory Journal, which exposes the same tracking fields, and synchronise the result to the item ledger. Capturing lots on the floor from then on, with the mobile app or a scanning app, is covered on Business Central warehouse scanning.

How do you phase the change so picking never stops?

One priority group at a time, each in its own short window, with open picks for that group finished first. The rest of the warehouse keeps working on the old setup while a group is converted, and a group is only started when the previous one has been checked.

GroupTypical itemsWindowWhy this order
1Short shelf life, recall exposure, customer or regulator asks for lotsFirst, after a shift, one location at a timeThe risk of not having lots is highest here
2Longer shelf life but sold to customers that require lot numbers on documentsNext window, after group 1 is verifiedNeeded soon, lower operational risk
3Low-risk items where recording the lot is enoughLast, often by the same item routeLeast to gain, so least effort first
  • Keep the quantity already promised to open sales orders on the old item until it ships, as Microsoft suggests for the costing method case, or convert everything and convert the promised quantity back.
  • Print lot labels for the converted stock before the window ends, so the first picks the next morning can scan them.

What are the steps to add lot and expiry tracking to items already in stock?

Classify, design, test, prepare, count, convert, verify. Rehearse the whole sequence for one group in a sandbox copy of production before the first live window.

  • Classify the items: Sort the items that need lots and expiry into priority groups: recall exposure and short shelf life first, regulated or customer-mandated traceability next, the rest last, and agree one conversion window per group.
  • Design the item tracking codes: Decide per group whether you need Lot Specific Tracking, Lot Warehouse Tracking for FEFO at bin locations, Use Expiration Dates, Require Expiration Date Entry and Strict Expiration Posting, and create the codes.
  • Test both routes in a sandbox copy: In a sandbox copy of production, try assigning the new code to a sample item after closing its open documents, and run the new item route end to end, so you know which route each group can take on your version.
  • Prepare the new items: For the new item route, rename the original item, use Copy Item to create the new one under the original number with the tracking code, and move stockkeeping units, substitutions, BOM lines, bin content, item references, prices and integration mappings.
  • Count by lot and expiry: Count the stock of the group by location, bin, lot and expiry date from the labels, and decide what happens to stock whose lot or expiry cannot be read.
  • Convert in the window: Finish open picks for the group, then convert the counted quantity: assembly orders or paired item journal lines at the same cost for a new item, or a negative and a positive adjustment with lots and expiry on the same item. Keep any quantity already promised to open orders on the old item until it ships.
  • Verify and block: Check the Inventory Valuation and the item tracking on the new entries, run a test pick and a mock trace, then set Blocked on the old item once its quantity is zero and move to the next group.

How do you check that the conversion worked before the next group?

With the same checks an auditor or a customer would run. Compare the Inventory Valuation for the group before and after: total value should not move, only the item numbers. Open the item ledger entries of the new item and confirm every positive entry has a lot and an expiry date. Run a test pick to confirm lots are suggested in expiry order where FEFO is switched on, and run a mock trace from one supplier lot forward with Item Tracing. How FEFO and tracing behave, and how a mock recall is designed, is on Business Central for food distribution.

What does Solzet deliver for adding lot and expiry tracking in Business Central?

Solzet runs the conversion as a short data project. We classify the items with your operations and quality leads, design the item tracking codes, test both routes on your version in a sandbox copy, prepare the new items and their master data, plan the count and the label print, and convert group by group in agreed windows with a valuation check after each. Where the volume of lots calls for it, our AL developers build a small import or conversion tool. Our own senior consultants and developers do the work. The service line is Dynamics 365 Business Central, with Business Central AL development for extensions.

Where customer and account data for the same products is handled in a CRM, buyers who would rather not carry Microsoft licensing for it can choose a custom CRM. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.

What do people ask us?

Can I add an item tracking code to a Business Central item that already has inventory?

Not with lot specific tracking once item ledger entries exist, because the posted entries have no lot. A code that only records lots on transactions may be accepted after open documents are closed, depending on your version. Otherwise create a new lot tracked item and convert the stock into it.

How do I give existing stock lot numbers and expiry dates in Business Central?

Count it by lot and expiry, then post it in with item tracking: a positive adjustment from an item journal batch with Item Tracking on Lines, or an assembly order into a new item. At directed put-away and pick locations use the Warehouse Physical Inventory Journal.

Will converting stock to a new item change our inventory value?

It should not. Assembly orders carry the cost from the old item to the new one, and paired item journal lines at the same unit cost net to zero. Run cost adjustment first and compare the Inventory Valuation before and after.

Can we keep the same item number when we add lot tracking?

Yes, with the new item route: rename the original item, then use Copy Item to create the lot tracked item under the original number. History stays on the renamed item, and users, labels and price lists keep the number they know.

What if we cannot read the lot or expiry date on some stock?

Do not invent one. Give it an internal lot number with the earliest plausible expiry and set Blocked on the lot information card until quality has reviewed it.

How do we avoid stopping the warehouse during the change?

Convert one priority group per window, after a shift and one location at a time, with open picks for that group finished first. Keep quantity promised to open orders on the old item until it ships.

Does Solzet do this conversion for Business Central customers?

Yes. We design the tracking codes, test both routes on your version in a sandbox, prepare items and master data, plan the count and convert group by group with a valuation check after each.

Which solution is right for your business?

Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.