Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Incorrect Bin Content

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

When registering a movement I am getting the following Error.

134.PNG

If i check the bin contents for the item / variant there is in fact this in the bin content 

135.PNG

(Enough). Why is it struggling to find the correct amount. It error's in the Bin Contents table. 

CheckDecreaseBinContent(Qty : Decimal;VAR QtyBase : Decimal;DecreaseQtyBase : Decimal)
IF "Block Movement" IN ["Block Movement"::Outbound,"Block Movement"::All] THEN
FIELDERROR("Block Movement");

GetLocation("Location Code");
IF "Bin Code" = Location."Adjustment Bin Code" THEN
EXIT;

WhseActivLine.SETCURRENTKEY(
"Item No.","Bin Code","Location Code","Action Type",
"Variant Code","Unit of Measure Code","Breakbulk No.",
"Activity Type","Lot No.","Serial No.","Original Breakbulk");
WhseActivLine.SETRANGE("Item No.","Item No.");
WhseActivLine.SETRANGE("Bin Code","Bin Code");
WhseActivLine.SETRANGE("Location Code","Location Code");
WhseActivLine.SETRANGE("Unit of Measure Code","Unit of Measure Code");
WhseActivLine.SETRANGE("Variant Code","Variant Code");

IF Location."Allow Breakbulk" THEN BEGIN
WhseActivLine.SETRANGE("Action Type",WhseActivLine."Action Type"::Take);
WhseActivLine.SETRANGE("Original Breakbulk",TRUE);
WhseActivLine.SETRANGE("Breakbulk No.",0);
WhseActivLine.CALCSUMS("Qty. (Base)");
DecreaseQtyBase := DecreaseQtyBase + WhseActivLine."Qty. (Base)";
END;

"Lot No. Filter" := WhseActivLine."Lot No.";

QtyAvailToPickBase := CalcQtyAvailToTake(DecreaseQtyBase);  <--- This is returning 0
IF QtyAvailToPickBase < QtyBase THEN BEGIN
GetItem("Item No.");
QtyAvailToPick := ROUND(QtyAvailToPickBase / UOMMgt.GetQtyPerUnitOfMeasure(Item,"Unit of Measure Code"),0.00001);
IF QtyAvailToPick = Qty THEN
QtyBase := QtyAvailToPickBase // rounding issue- qty is same, but not qty (base)
ELSE BEGIN
FIELDERROR("Quantity (Base)",STRSUBSTNO(Text006,ABS(QtyBase)));   <-- This Error
END;
END;

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Incorrect Bin Content

    Hi,

    I am getting the same error when i try to Register Put Away.

    you have noticed that where error is occurring in the above code. But How can i solve the same Issue.

    can i get any suggestions.

    Thanks & Regards

    Rajashekar.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Incorrect Bin Content

    check your minimum quantity in Bin content list

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Incorrect Bin Content

    I think it's lot number related. How can I make the Lot No. Pass through from the Worksheet Line to the Warehouse Activity Line. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Incorrect Bin Content

    137.PNG

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans