Skip to main content

Dynamics 365 Business Central -[ERROR] You must assign a lot number for item xxx.

Micah A. Parker avatar
Written by Micah A. Parker
Updated over a month ago

Product: Dynamics 365 Business Central

Error: Application_DialogException You must assign a lot number for item xxx


Issue: When attempting to export out a Warehouse Shipping Advice (945) or Advance Ship Notice (856) from Transaction Manager into Dynamics 365 Business Central you receive the following error: 'You must assign a lot number for item xxx'

Reason: The item in question expects some sort of Warehouse Lot tracking to be fulfilled but no Lot Number was passed.

Solution - Default the Lot Number


If this particular Item will always have the same Lot Number you can default it within the Item Card directly

Navigate: Sales β†’ Items

Select: Item

Navigate: Item Tracking

Select: Lot Nos.

Solution - Have the Warehouse Correct the Lot Nos


If the Warehouse Shipping Advice (945) contains Lots Numbers on the EDI Transaction within Transaction Manager - make sure that the values are correct. If they are not - be sure to reach out your Warehouse or Third Party Logistics (3PL) partner to have them corrected, and the Warehouse shipping Advice resent.

Solution - Correct Line Number


If the Line Number being sent from your Trading Partner does not match the Sales Order for the proper Item Number being passed when being exported out of Transaction Manager this error can occur due to a mismatch in line syncing.

rev 5/1/2025

Did this answer your question?