Shipment Posting Fails: You Must Assign a Lot Number for Item
You must assign a lot number for item 1000.What It Means
Business Central will not post the shipment because the item is lot-tracked and the shipped quantity has no lot number assigned. The goods may already have left the 3PL warehouse, but the sales order stays unshipped in BC, so invoicing and inventory are behind.
Root Cause
The item has an Item Tracking Code that requires lot numbers on outbound transactions (and on warehouse documents if warehouse lot tracking is on). Microsoft Learn: on outbound documents you select existing lot numbers on the 'Item Tracking Lines' page, and the tracked quantity must match the line quantity ('0' in the Undefined fields). When an integration posts the shipment, it must supply the lot. TrueCommerce documents three causes for its BC integration: the incoming 945 Warehouse Shipping Advice carried no lot number (or a wrong one), the item always uses one lot but no default was set, or the trading partner's line number does not match the sales order line, so the lot lands on the wrong line. The Microsoft Shopify connector does not pass lot or serial numbers at all (no item-tracking logic in its source), so lot-tracked items sold through Shopify always need tracking assigned in BC before posting.
Step-by-Step Fix
- Note the item number in the message. Open the sales order (or warehouse shipment) that failed and find the line for that item.
- Select the line and choose 'Line' > 'Related Information' > 'Item Tracking Lines'.
- Choose 'Process' > 'Select Entries' (or pick from the 'Lot No.' field) and select the lot(s) that physically shipped. Enter the 'Selected Quantity' for each lot.
- Check that the 'Undefined' quantity at the top of the page is 0, then close the page.
- Post the shipment again.
- If an EDI 945 brought the shipment in (TrueCommerce): check the lot numbers on the 945 in Transaction Manager. If they are missing or wrong, ask the warehouse or 3PL to correct and resend the 945. Also check that the 945 line numbers match the sales order lines.
- If the item always ships from one lot, TrueCommerce suggests setting a default lot on the item (Items > item > Item Tracking > Lot Nos.) so the integration can fill it.
Verification Steps
Sources & References
Early Access · 30-Day Sandbox Pilot
Stop Order Sync Failures Before Customers Notice
The Order Flow Doctor monitors Microsoft Dynamics 365 Business Central order flows across Shopify, EDI (TrueCommerce, SPS), 3PLs, and carriers. Get automated root-cause diagnosis and one-click fixes.