Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Prevent error Lot No. XYZ has already been reserved for another document

(3) ShareShare
ReportReport
Posted on by 207
We are using Sales Orders and Inventory Picks. We assign lots to Sales Orders, we do not reserve them. They are "surplus" reservation entries. 
If we have 10 lb total of lot XYZ and two different sales orders for lot XYZ, 5 lbs assigned to each, we will get this error below if we try to post the inventory pick for 6 lb for one of the Sales Orders. 
When we were on Nav, we did not get this error. It would allow the pick to post for 6 lbs.
Is there a setting to allow this behavior in BC?

Error message: 
Lot No. XYZ is not available on inventory or it has already been reserved for another document.

AL call stack: 
"Whse.-Activity-Post"(CodeUnit 7324).AvailabilityError line 5 - Base Application by Microsoft
"Whse.-Activity-Post"(CodeUnit 7324).CheckAvailability line 16 - Base Application by Microsoft
"Whse.-Activity-Post"(CodeUnit 7324).Code line 57 - Base Application by Microsoft
"Whse.-Activity-Post"(CodeUnit 7324).OnRun(Trigger) line 3 - Base Application by Microsoft
"Whse.-Act.-Post (Yes/No)"(CodeUnit 7323).SetParamsAndRunWhseActivityPost line 14 - Base Application by Microsoft
"Whse.-Act.-Post (Yes/No)"(CodeUnit 7323).Code line 26 - Base Application by Microsoft
"Whse.-Act.-Post (Yes/No)"(CodeUnit 7323).OnRun(Trigger) line 3 - Base Application by Microsoft
"Invt. Pick Subform"(Page 7378).PostPickYesNo line 6 - Base Application by Microsoft
"Inventory Pick"(Page 7377).PostPickYesNo line 3 - Base Application by Microsoft
"Inventory Pick"(Page 7377)."P&ost - OnAction"(Trigger) line 2 - Base Application by Microsoft
  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 25,785 Super User 2025 Season 1 on at
    Prevent error Lot No. XYZ has already been reserved for another document
    Is there a setting to allow this behavior in BC?
    There is no setting for this; it's standard system behavior. Whenever a lot or serial number is added to a document or journal line, the system prevents it from being posted on another document or journal line. As you mentioned, you must have had some sort of customization that allowed this
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 7,919 Super User 2025 Season 1 on at
  • Brett F Profile Picture
    Brett F 207 on at
    Prevent error Lot No. XYZ has already been reserved for another document
    It isn't an issue with the lot. The message is correctly telling us that it is reserved for a different document. But we want to allow this transaction even so.
    I am guessing we had a customization in Nav that allowed this, that we do not have in BC.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,147 Super User 2025 Season 1 on at
    Prevent error Lot No. XYZ has already been reserved for another document
    From the error message, it is a Lot problem. 
    Error message: 
    Lot No. XYZ is not available on inventory or it has already been reserved for another document.
     
    Does this problem occur if you recreate a completely new lot?
     
    Thanks.
    ZHU

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans