{"title":"Walkthrough: Trace serial and lot numbers","url":"https://jonas-paprotka.de/docs/walkthrough-tracing-serial-lot-numbers/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/walkthrough-tracing-serial-lot-numbers, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/walkthrough-tracing-serial-lot-numbers","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"This topic describes the actions that are needed to take to prevent selling a defective item, and also how to trace and recall items when needed.","date":"2026-11-10","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Walkthrough: Trace serial and lot numbers","slug":"walkthrough-trace-serial-and-lot-numbers","at":0,"chars":16836},{"level":2,"title":"About this walkthrough","slug":"about-this-walkthrough","at":846,"chars":378},{"level":2,"title":"Roles in this walkthrough","slug":"roles-in-this-walkthrough","at":1224,"chars":187},{"level":2,"title":"Prerequisites for the sample transactions","slug":"prerequisites-for-the-sample-transactions","at":1411,"chars":936},{"level":2,"title":"Scenario for tracing a defective frame","slug":"scenario-for-tracing-a-defective-frame","at":2347,"chars":1449},{"level":2,"title":"Prepare sample data","slug":"prepare-sample-data","at":3796,"chars":7227},{"level":3,"title":"To create the items","slug":"to-create-the-items","at":4068,"chars":1047},{"level":3,"title":"Define the racing bike manufacturing setup","slug":"define-the-racing-bike-manufacturing-setup","at":5115,"chars":738},{"level":3,"title":"To purchase components","slug":"to-purchase-components","at":5853,"chars":633},{"level":3,"title":"Purchase a second lot of components","slug":"purchase-a-second-lot-of-components","at":6486,"chars":777},{"level":3,"title":"To produce end items","slug":"to-produce-end-items","at":7263,"chars":913},{"level":3,"title":"Produce the second pair of racing bikes","slug":"produce-the-second-pair-of-racing-bikes","at":8176,"chars":1207},{"level":3,"title":"To sell the end items","slug":"to-sell-the-end-items","at":9383,"chars":1640},{"level":2,"title":"Trace from usage to origin","slug":"trace-from-usage-to-origin","at":11023,"chars":2379},{"level":3,"title":"To determine which lot included the faulty frame and who supplied it","slug":"to-determine-which-lot-included-the-faulty-frame-and-who-supplied-it","at":11499,"chars":1903},{"level":2,"title":"Trace from origin to usage","slug":"trace-from-origin-to-usage","at":13402,"chars":1809},{"level":3,"title":"To find all usage of the faulty lot","slug":"to-find-all-usage-of-the-faulty-lot","at":13879,"chars":1332},{"level":2,"title":"Find open records for a serial or lot number","slug":"find-open-records-for-a-serial-or-lot-number","at":15211,"chars":1314},{"level":3,"title":"To find all occurrences of LOT1 in non-posted records, such as open orders","slug":"to-find-all-occurrences-of-lot1-in-non-posted-records-such-as-open-orders","at":15553,"chars":972},{"level":2,"title":"Related information","slug":"related-information","at":16525,"chars":311}],"text":"# Walkthrough: Trace serial and lot numbers\nWhen product defects occur, the errors must be identified and affected items must be prevented from leaving the company. If defective items have already been shipped, you must trace who received them and, if you need to, recall the items.\nThe first task of defects management is to investigate where the defective items came from and where they were used. This investigation is based on historic data and is made easier by searching through item tracking entries using the Item Tracing page.\nThe second task of defects management is to determine whether the traced items are planned for in open documents, such as non-posted sales orders or consumption journals. Perform this work on the Find entries page. Use Find Entries to search related posted entries and open records for a serial or lot number.\n## About this walkthrough\nThis walkthrough demonstrates how to identify which items are defective, which vendor supplied them, and where they are used so that those orders can be stopped or recalled.\nThis walkthrough illustrates the following tasks:\n Tracing usage to origin.\n Tracing origin to usage.\n Searching for all current records which hold the traced serial/lot number.\n## Roles in this walkthrough\nThis walkthrough demonstrates tasks that are performed by the following user roles:\n Quality Controller\n Warehouse Manager\n Order Processor\n Purchasing Agent\n## Prerequisites for the sample transactions\nTo complete this walkthrough, you will need:\n A test company with manufacturing available. Don't use a production company for this walkthrough.\n The sample vendors Custom Metals Incorporated and Coolwood Technologies, and the sample customers Selangorian Ltd. and Cannon Group PLC.\n The units of measure, posting groups, and item tracking codes shown in the item tables. LOTALL must require lot-specific tracking, and SNALL must require serial-specific tracking.\n Routing 1000 and production BOM 1000, with enough inventory for any other components in the BOM.\n Unused item numbers 2000 and 1002, and unused tracking numbers LOT1, LOT2, and SN1 through SN4.\n> NOTE\n> Sample data varies by company and localization. Set up any missing records and valid posting combinations before you continue. Substitute equivalent records where needed and use them consistently throughout the walkthrough.\n## Scenario for tracing a defective frame\nRicardo, the quality controller, is acting on a sales return of item 1002, Racing Bike. The customer, Selangorian Ltd., complained that the frame has cracked welding seams. Quality control engineers have confirmed that the racing frame of the returned bike is defective. The quality controller must now determine:\n Which lot of racing frames was faulty.\n On which purchase order the faulty lot was received.\nFrom the sales department, the quality controller knows that the returned racing bike, item 1002, had the serial number SN1. By using this basic information, they must determine where the finished racing bike was last used, and then they must trace backward to the earliest origin to establish which lot number the faulty component, the racing frame, came from.\nThe results of this first item tracking task identify which racing frames were defective and which vendor supplied them. Afterward, but in the same overall tracking process, the quality controller must find all the sold racing bikes that contain racing frames from the faulty lot so that those orders can be stopped or recalled. Lastly, the quality controller must find any open documents where the faulty lot is used so that no additional transactions are made.\nThe first two defects-management tasks are performed on the Item Tracing page. The last task is performed on the Find entries page in integration with the Item Tracing page.\n## Prepare sample data\nYou must create the following new items:\n 2000, Racing Frame: lot-specific tracking, component of 1002\n 1002, Racing Bike: serial number-specific tracking\nThen you must create various purchase, production, and sales transactions with the two items.\n### To create the items\n1. Select Search (Alt+Q) in the upper-right corner, enter Items, and then choose the related link.\n1. Choose the New action.\n1. In the No. field, enter `2000`, and then fill in the following fields.\n Description|Base Unit of Measure|Gen. Prod. Posting Group|VAT Prod. Posting Group|Inventory Posting Group|Item Tracking Code\n Racing Frame|PCS|RAW MAT|VAT25|RAW MAT|LOTALL\n> NOTE\n> To enter the base unit of measure, choose New, and then select PCS on the Item Units of Measure page.\n1. All other fields have acceptable default data or don't need to be filled in.\n1. Choose OK to create the first new item card, `2000`.\n1. Select New.\n1. In the No. field, enter `1002`, and then fill in the following fields.\n Description|Base Unit of Measure|Gen. Prod. Posting Group|VAT Prod. Posting Group|Inventory Posting Group|Replenishment System|Item Tracking Code\n Racing Bike|PCS|RETAIL|VAT25|FINISHED|Prod. Order|SNALL\n> NOTE\n> To enter the base unit of measure, choose New, and then select PCS on the Item Units of Measure page.\n### Define the racing bike manufacturing setup\n1. Keep the item card for item 1002 open.\n1. On the Replenishment FastTab, in the Routing No. field, enter 1000.\n1. Choose the Production BOM No. field, and then choose Advanced.\n1. On the Production BOM List page, choose the first line, 1000, and then choose the Edit action.\n1. On the Production BOM page, change the value in the Status field to Under Development.\n1. Go to an empty line, enter 2000 in the No. field, and then enter 1 in the Quantity Per field.\n1. Change the value in the Status field back to Certified.\n1. Choose the OK button to insert the production BOM on the item card and close the Production BOM page.\n Next, purchase racing frames from Custom Metals Incorporated.\n### To purchase components\n1. Select Search (Alt+Q) in the upper-right corner, enter Purchase Orders, and then choose the related link.\n1. Choose the New action.\n1. Create a purchase order for vendor, Custom Metals Incorporated, by filling in the following line fields.\n Item|Quantity|Lot No.\n 2000|10|LOT1\n1. To enter the lot number, choose the Item Tracking Lines action.\n1. On the Item Tracking Lines page, fill in the Lot No. and Quantity (Base) fields, and then close the page.\n1. In the Vendor Invoice No. field, enter any value.\n1. Select the Post action, select the Receive and Invoice option, and then choose the OK button.\n### Purchase a second lot of components\nPurchase racing frames from Coolwood Technologies.\n1. Select Search (Alt+Q) in the upper-right corner, enter Purchase Orders, and then choose the related link.\n1. Choose the New action.\n1. Create a purchase order for vendor Coolwood Technologies by filling in the following line fields.\n Item|Quantity|Lot No.\n 2000|11|LOT2\n1. To enter the lot number, on the Lines FastTab, in the Line group, select the Item Tracking Lines action.\n1. On the Item Tracking Lines page, fill in the Lot No. and Quantity (Base) fields, and then close the page.\n1. In the Vendor Invoice No. field, enter any value.\n1. Select the Post action, select the Receive and Invoice option, and then choose the OK button.\n Next, produce two racing bikes, SN1 and SN2.\n### To produce end items\n1. Select Search (Alt+Q) in the upper-right corner, enter Released Prod. Orders, and then choose the related link.\n1. Choose the New action.\n1. Create a new released production order by filling in the following fields.\n Source No.|Quantity\n 1002|2\n1. Select Refresh Production Order, and then select OK to fill the line.\n1. To enter the serial numbers, select Item Tracking Lines.\n1. On Item Tracking Lines, enter two lines, and then close the page.\n Serial No.|Quantity (Base)\n SN1|1\n SN2|1\n Next, post consumption of racing frames from LOT1.\n1. On Released Production Order, select Production Journal.\n1. On Production Journal, select the consumption line for item 2000, and then select Item Tracking Lines.\n1. On Item Tracking Lines, enter LOT1 in Lot No. and 2 in Quantity (Base), and then close the page.\n1. Keep all other default values on Production Journal, and then select Post.\n### Produce the second pair of racing bikes\nProduce two more racing bikes, SN3 and SN4.\n1. Select Search (Alt+Q) in the upper-right corner, enter Released Prod. Orders, and then select the related link.\n1. Choose the New action.\n1. Create a new released production order by filling in the following fields on the header.\n Source No.|Quantity\n 1002|2\n1. Select Refresh Production Order to fill the line.\n1. Select Item Tracking Lines, enter the following two lines, and then close the page.\n Serial No.|Quantity (Base)\n SN3|1\n SN4|1\n Next, post more consumption of racing frames from LOT1.\n1. On Released Production Order, select Production Journal.\n1. On Production Journal, select the consumption line for item 2000, and then select Item Tracking Lines.\n1. On Item Tracking Lines, enter LOT1 in Lot No. and 2 in Quantity (Base), and then close the page.\n1. Leave all other defaults on Production Journal, and then select Post.\n You have produced four racing bikes, SN1 to SN4, and consumed four of the ten racing frames from LOT1, two frames in each production order.\n1. Close Production Journal and the production orders.\n Next, sell racing bikes. First sell the racing bike with SN1 to Selangorian Ltd..\n### To sell the end items\n1. Select Search (Alt+Q) in the upper-right corner, enter Sales Orders, and then choose the related link.\n1. Choose New, and then create a sales order by filling in the following fields.\n Customer|Item|Qty.|Serial No.\n Selangorian Ltd.|1002|1|SN1\n1. Choose Item Tracking Lines. Enter the serial number in Serial No. and 1 in Quantity (Base), and then close the page.\n1. Choose Post, select the Ship and Invoice option, and then choose OK.\n Next, sell the racing bike with SN2 to The Cannon Group PLC.\n1. Select Search (Alt+Q) in the upper-right corner, enter Sales Orders, and then choose the related link.\n1. Choose New, and then create a sales order by filling in the following fields.\n Customer|Item|Qty.|Serial No.\n Cannon Group PLC.|1002|1|SN2\n1. Choose Item Tracking Lines. Enter the serial number in Serial No. and 1 in Quantity (Base), and then close the page.\n1. Choose Post, select the Ship and Invoice option, and then choose OK.\n Finally, sell some racing frames separately. The Cannon Group PLC. also orders five separate racing frames for their own assembly line.\n1. Select Search (Alt+Q) in the upper-right corner, enter Sales Orders, and then select the related link.\n1. Choose New, and then create a sales order by filling in the following fields.\n Customer|Item|Qty.|Lot No.\n Cannon Group PLC.|2000|5|LOT1\n1. On the Lines FastTab, choose Item Tracking Lines. Enter LOT1 in Lot No. and 5 in Quantity (Base), and then close the page.\n> NOTE\n> Do not post the last sales order for five racing frames.\nThis completes the preparation of data to demonstrate the Item Tracing and Find Entries features.\n## Trace from usage to origin\nFrom the sales department, the quality controller knows that the returned racing bike, item 1002, has the serial number SN1. By using this basic information, they can determine where the finished racing bike was last used, in this case, on the sales shipment to Selangorian Ltd.. Then, the quality controller must trace backward to the earliest origin to establish which lot number the faulty racing frame came from and which vendor supplied it.\n### To determine which lot included the faulty frame and who supplied it\n1. Select Search (Alt+Q) in the upper-right corner, enter Item Tracing, and then choose the related link.\n1. On the Item Tracing page, enter SN1 in the Serial No. Filter field, and then enter 1002 in the Item Filter field.\n1. Set Show Components to Item-tracked Only and Trace Method to Usage -> Origin.\n1. Choose the Trace action.\n Note that one sales shipment header matches the search criteria. Before you continue the trace, verify that the shipment is the one that shipped the faulty racing bike to Selangorian Ltd.\n1. Select the trace line, and then choose the Show Document action.\n Now continue to trace the origin of the sales shipment of the racing bike with number SN1.\n1. Choose the + icon on the trace lines to gradually expand and trace backward in the chain of transactions that the sales shipment originates from.\n You can trace the following transaction history:\n  The first posted document backward in the chain of transactions is the output posting of SN1 from the first released production order.\n  The next posted document backward after that is the consumption posting from the first released production order. Here the quality controller sees that a racing frame from LOT1 was used.\n  The lowest posted document in this chain is the posted purchase receipt on which racing frames with LOT1 entered inventory.\n The quality controller has now established which lot of racing frames was faulty and they can search for the last trace line to see which vendor supplied them, namely Custom Metals Incorporated.\n> NOTE\n> Do not make any additional modifications to the trace result, as you will use it in the next section.\nThis completes the first defects-management task using the Item Tracing page. The quality controller must now determine whether other posted documents have processed racing frames from LOT1.\n## Trace from origin to usage\nThe quality controller has established that the faulty racing frames came from LOT1. They must now find any other racing bikes that contain racing frames from the faulty lot so that those bikes can be stopped or recalled.\nOne way to prepare this trace task on the Item Tracing page is to manually enter LOT1 in the Lot No. Filter field and 2000 in the Item Filter field. However, this walkthrough will use the Trace Opposite - from Line function.\n### To find all usage of the faulty lot\n1. On the Item Tracing page, select the purchase receipt line for item 2000 and LOT1, and then choose Trace Opposite - from Line.\n The trace result is now based on the filters of the trace line for the purchase receipt, LOT1 and item 2000, and the result is based on trace method Origin -> Usage.\n To obtain an overview of all usage of item 2000 with LOT1, continue to expand all trace lines.\n1. Choose the Expand All action.\n Locate the output and sales shipment entries for SN1 and SN2. The shipment for SN1 is to Selangorian Ltd. The shipment for SN2 is to Cannon Group PLC. Both bikes were produced in the first production order using frames from LOT1.\n The quality controller immediately informs the sales department so that they can initiate a recall of the defective racing bike from the customer, Cannon Group PLC.\n The output entries also show that SN3 and SN4 were produced using racing frames from LOT1 and aren't sold. The quality controller takes action to block these end items in inventory.\n This completes the second defects management task using the Item Tracing page for defects management. Since the Item Tracing page is based on posted entries only, the quality controller must continue to the Find entries page to make sure that LOT1 is not used in non-posted documents.\n## Find open records for a serial or lot number\nBy using the Item Tracing page, the quality controller learned that LOT1 contained the faulty racing frames, which vendor supplied them, and in which posted transaction they used them. They must now determine whether LOT1 is in any open documents by opening Find entries from the trace result.\n### To find all occurrences of LOT1 in non-posted records, such as open orders\n1. On the Item Tracing page, select the first trace line, the purchase receipt of LOT1.\n1. Choose the Find entries action.\n The Find entries page is preset with search filters based on the trace result for LOT1. The quality controller recognizes records related to documents already identified on the Item Tracing page.\n The result also includes an unposted Sales Line, so the quality controller proceeds to investigate.\n1. Select the Sales Line result, and then choose Show. Alternatively, choose the value in No. of Entries.\n Here the quality controller sees one open sales line for the faulty racing frames. They immediately suggest to the sales department that this order be canceled and a new production order, based on good racing frames, be initiated.\n This completes the walkthrough of how to use the Find entries page for defects management in integration with the Item Tracing page.\n## Related information\nWork with Serial and Lot Numbers<inventory-how-work-item-tracking>\ninventory-how-to-trace-item-tracked-items\nui-find-entries\nwalkthrough-business-process-walkthroughs\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}