web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Incorrect Bin Content

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

    137.PNG

  • Verified answer
    Community Member Profile Picture
    on at

    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. 

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    check your minimum quantity in Bin content list

  • Community Member Profile Picture
    on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans