Hi,
Does someone have experience with changing the tracking code of an item that has item ledger entries?
What table entries need to be modified if the item tracking code changes from lot tracking to no lot tracking?
Best regards,
ehaeb
Hi,
Does someone have experience with changing the tracking code of an item that has item ledger entries?
What table entries need to be modified if the item tracking code changes from lot tracking to no lot tracking?
Best regards,
ehaeb
As far as I know, once an item has ledger entries with tracking (lot or serial), you cannot simply change its item tracking code to "None" due to the historical tracking requirements enforced by the system. You have two possible approaches:
Create a New Item:
Create a new item with the desired tracking setup (e.g., without lot tracking), then perform a negative adjustment for the old item and a corresponding positive adjustment for the new item to transfer inventory, ensuring cost is handled appropriately.
Customization (Not Recommended Without Caution):
You could technically bypass standard validations through customization—this may involve altering validations in the item tracking code logic and possibly modifying data in tables like Item Tracking Code, Item Ledger Entry, and Reservation Entry. We’ve implemented a similar approach in a specific case, but this method requires extreme caution to avoid data integrity and audit issues.
Hope this might be helpful:
Changing the Item Tracking Code for an item that already has Item Ledger Entries (ILEs) is an extremely complex and generally unsupported direct modification in Business Central, particularly when going from Lot Tracking to No Lot Tracking.
Why it's so complex and risky:
What would theoretically need to be modified (and why you shouldn't directly):
If you were to force this change, you'd be looking at modifying data in:
Item Tracking Code
field itself.Lot No.
, Serial No.
, and Item Tracking Code
fields on existing entries.Lot No.
, Serial No.
fields.Lot No.
, Serial No.
fields if any reservations exist.Lot No.
, Serial No.
fields if warehouse management is used.from Lot Tracking to No Lot Tracking is particularly problematic because you'd be trying to remove a dimension that existing records rely on. This is fundamentally different from changing between two tracking codes (e.g., from one Lot No. code to another, or one Serial No. code to another), which might have slightly less catastrophic but still significant implications.
Recommended (and generally only safe) approach:
The only truly safe and supported way to effectively change the item tracking for an item with history is a phased approach, often requiring a "new item" strategy:
Blocked
to prevent further transactions.Item Tracking Code
(e.g., "No Lot Tracking").Directly modifying table entries to change the Item Tracking Code on an item with existing Item Ledger Entries is highly discouraged and will lead to data corruption. The robust approach involves creating a new item and managing the transition of inventory and future transactions. If you absolutely must try a direct data manipulation, it would require significant customization and data migration expertise from a Microsoft Partner, performed only in a test environment, with full understanding of the extreme risks.
✅ Mark this answer as verified if it helps you.
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1