Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Changing Item Tracking Code

(3) ShareShare
ReportReport
Posted on by 86

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

  • ehaeb Profile Picture
    86 on at
    Changing Item Tracking Code
    Hi, thank you all for the answers, i am now more convinced not to try bypass the BC logic and better to create an new Item.
     
    Best regards,
    ehaeb.
  • Verified answer
    Tech-Lucky Profile Picture
    1,101 on at
    Changing Item Tracking Code

    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:

    1. 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.

    2. 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.

  • Verified answer
    YUN ZHU Profile Picture
    85,982 Super User 2025 Season 1 on at
    Changing Item Tracking Code
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: How to create Item Tracking Lines automatically during an inbound transaction (Customization)
    https://yzhums.com/7943/
    Item Tracking in Microsoft Dynamics NAV 2013 Technical White Paper
    https://lnkd.in/g7heGgT7
    Microsoft Dynamicsâ„¢ NAV 5.0 Item Tracking Technical White Paper
    https://lnkd.in/gqPmMisy
     
    Thanks.
    ZHU
  • Verified answer
    KasparsSemjonovs Profile Picture
    4,446 Super User 2025 Season 1 on at
    Changing Item Tracking Code
    Of course the safest and recommended approach would be to nullify the inventory for this item, rename it to something else (if the orginal number is must have) then create a new item card with the changed values, and post the inventory if anything was left.

    A workaround (and I think works only with FIFO costing method for the item) would be to nullify the inventory for this item, then using configuration package You can change the Item Tracking Code on this item card (uncheck the validation checkbox for this field on Item Table line) and apply the entry. If there are no custom modifications done around this area, and no corrections will be done on previous transactions for this item, then no problems should arise, but anyway would be better to first try it out in TEST system (or copy of company) just to make sure and avoid unneeded problems.
  • Sohail Ahmed Profile Picture
    4,829 on at
    Changing Item Tracking Code

    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:

    • Data Integrity: Item Tracking (Lot No., Serial No.) is fundamental to how inventory is managed, costed, and traced. Modifying it directly for items with history will corrupt your inventory ledger, costing, and traceability.
    • Layered Entries: Item Tracking information is stored not just on the Item Ledger Entry, but also on Value Entries, Reservations, and potentially Bin Contents, Production Order Components, Sales/Purchase Lines, etc. All these related entries rely on the tracking dimension.
    • No Standard Feature: Business Central does not offer a standard function to change the Item Tracking Code on an item with existing inventory or posted transactions precisely because of the data integrity risks
     

    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:

     

    1. Item (Table 27): The Item Tracking Code field itself.

    2. Item Ledger Entry (Table 32): Lot No., Serial No., and Item Tracking Code fields on existing entries.

    3. Value Entry (Table 5802): Lot No., Serial No. fields.

    4. Reservation Entry (Table 337): Lot No., Serial No. fields if any reservations exist.

    5. Bin Content (Table 7302): Lot No., Serial No. fields if warehouse management is used.

    6. And potentially: Production Order Components, Sales Line, Purchase Line, Transfer Line (for any outstanding documents linked to the item).
     

    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:


    1. Zero Out Inventory: Ensure the inventory quantity for the existing item is zero. This means selling, adjusting out, or transferring all quantities.

    2. Block the Old Item: Once inventory is zero, set the old item to Blocked to prevent further transactions.

    3. Create a New Item: Create a new item number with the desired Item Tracking Code (e.g., "No Lot Tracking").

    4. Transfer/Adjust: If you must bring in "old" physical inventory under the new tracking, you would effectively adjust out the quantity from the old item (with its lot tracking) and adjust in the same quantity to the new item (without lot tracking). This clearly separates the historical tracking.

    5. Update Masters: Update any Bill of Materials, production routings, sales agreements, recurring sales/purchase lines, etc., to use the new item number.

    6.  

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans