Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Put Away Worksheet - Changing the Name

Posted on by Microsoft Employee

On the Put Away Worksheet When I attempt to change the Name it Presents this error..

115.PNG

When I look at the debugger it triggers at this point. 

116.PNG

The current "Worksheet Template Name" = 'PUT-AWAY'.. 

Any ideas on what's caused this would be great thanks!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Put Away Worksheet - Changing the Name

    I've found this code someone has entered. It seems to be resetting the Filters on the page, which im assuming will cause this error as it only occurs when the button which this code is behind is entered. How culd I rectify this?  I need the function of it to remain but resolve the filter issue..

    // TIO000008 : BEGIN

    recPostedWhseReceiptLine.RESET;

    recPostedWhseReceiptLine.SETFILTER("Item Cat Code", '=%1','S');

    recPostedWhseReceiptLine.SETRANGE("QA Inspection In", TRUE);

    IF recPostedWhseReceiptLine.FINDSET THEN REPEAT

     Rec.SETRANGE("Whse. Document No.", recPostedWhseReceiptLine."No.");

     IF Rec.FINDLAST THEN

       Rec.DELETE;

    UNTIL recPostedWhseReceiptLine.NEXT = 0;

    RESET;

    "Worksheet Template Name" := "Worksheet Template Name";

    Name := Name;

    "Location Code" := "Location Code";

    CurrentWkshTemplateName := "Worksheet Template Name";

    CurrentWkshName := Name;

    CurrentLocationCode := "Location Code";

    // TIO000008 : END

    CheckQuarantineWorksheet(goptWorksheetType::SMT, TRUE); // TIO000007 TIO000003

    TiogaLotMngt.CreateSMTPutAway(

     CurrentWkshTemplateName,CurrentWkshName,CurrentLocationCode);

    SortWhseWkshLines(

     CurrentWkshTemplateName,CurrentWkshName,

     CurrentLocationCode,CurrentSortingMethod);

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,135 Super User 2024 Season 2 on at
    RE: Put Away Worksheet - Changing the Name

    this function is called from?

    can you show us the call stack also in debugger.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans