Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Tracking Specification

Posted on by Microsoft Employee

I Have a Page which posts a warehouse entry. When Posting a partially received Item I Get this error, On the debugger it error's on this line.  I'm unsure on how the Base Quantity's differ depending on the Unit of measure. Any ideas on how I can start finding this solution.  

102.png
IF OnlyLot THEN BEGIN
GetUndefinedLots(ReservationEntry,Handle,Invoice,LotsToHandleUndefined,LotsToInvoiceUndefined);
IF NOT (LotsToHandleUndefined OR LotsToInvoiceUndefined) THEN
EXIT;
END;
IF NOT ReservationEntry.FIND('-') THEN
EXIT;
REPEAT
IF Handle THEN
HandleQtyBase += ReservationEntry."Qty. to Handle (Base)";
IF Invoice THEN
InvoiceQtyBase += ReservationEntry."Qty. to Invoice (Base)";
UNTIL ReservationEntry.NEXT = 0; //??
TrackingSpecification.TRANSFERFIELDS(ReservationEntry);
IF Handle THEN
IF ABS(HandleQtyBase) > ABS(QtyToHandleBase) THEN // ERROR HERE 
TrackingSpecification.TestFieldError(FIELDCAPTION("Qty. to Handle (Base)"),HandleQtyBase,QtyToHandleBase);
IF Invoice THEN
IF ABS(InvoiceQtyBase) > ABS(QtyToInvoiceBase) THEN
TrackingSpecification.TestFieldError(FIELDCAPTION("Qty. to Invoice (Base)"),InvoiceQtyBase,QtyToInvoiceBase);

*This post is locked for comments

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Tracking Specification

    Can you check the measurement units? It might be the case that your current quantity is nominated in different units then the base measurement units - try re-selecting the measurement units or check in the item card settings.

  • Suggested answer
    RE: Tracking Specification

    Hi,

    I cant really say from the screenshot attached, because I cannot check whether it is handle or invoice.

    To fact check, you have to use debugger.

    But if the figures are correct then it must be. Again, check those corresponding three lines in the Tracking Specification. I guess there is the error.

    Hope it helps.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tracking Specification

    Taking This Code

    IF NOT ReservationEntry.FIND('-') THEN

     EXIT;

    REPEAT

     IF Handle THEN

       HandleQtyBase += ReservationEntry."Qty. to Handle (Base)";

     IF Invoice THEN

       InvoiceQtyBase += ReservationEntry."Qty. to Invoice (Base)";

    UNTIL ReservationEntry.NEXT = 0;                                                   //??

    103.PNG

    Would it be finding these 3 Entry's and Applying the 745 to the 

    HandleQtyBase += ReservationEntry."Qty. to Handle (Base)"; 3 times in the repeat statement?

    I Can't currently access a debugger tool :(

  • Suggested answer
    RE: Tracking Specification

    Hi,

    Good way to check is the Base UoM and used UoM conversion rate. If the ratio is 3, then you might be right :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tracking Specification

    The Value in the table is set at 745 currently, Im unsure where this 2,235 is from. Has the value been multiplied by 3 somewhere?

  • Suggested answer
    RE: Tracking Specification

    Hi,

    It triggers because of Reservation Entries. Try to check running the table and espcially the sum of "Qty. to Handle (Base)".

    Hope it helps,.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tracking Specification

    The code is from codeunit 336  GetUndefinedLots(VAR ReservationEntry : Record "Reservation Entry";Handle : Boolean;Invoice : Boolean;VAR LotsToHandleUndefined : Boolean;VAR LotsToInvoiceUndefined : Boolean)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans