Skip to main content

Notifications

Announcements

No record found.

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 182
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,426 Super User 2024 Season 2 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,007 Moderator on at
  • Brett F Profile Picture
    Brett F 182 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 76,221 Super User 2024 Season 2 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Share Your Event with the Community

Jump start your event engagement! 📢

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans