Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

Error when voiding customer refund check

Posted on by 85

Good Morning -

User is getting the error "Amount must be positive in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='0" when attempting to financially voiding a customer refund check.  I believe it has been fixed somewhere.  However, since MS changed their portal, we can no longer search for anything related to Nav / Business Central.  There is nowhere that we can find that allows that.  If anyone knows how to do that I would be forever grateful!

In the meantime, if anyone knows the fix for the error above, can you please send me info on it?  They are on 2013 R2

Thanks,

Diane

Categories:
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when voiding customer refund check

    Hello,

    I too am having a hard time finding KB's. Hopefully Microsoft Support who sees these can provide a link to the KB.

    Thanks,

    Steve

  • dmvdmv Profile Picture
    dmvdmv 85 on at
    RE: Error when voiding customer refund check

    Steve-

    I don't see the code you posted above when I click on the link to that KB.  Here is the replacement code from the KB:

    Replacement code

           GenJnlLine2."System-Created Entry" := TRUE;

           GenJnlLine2."Financial Void" := TRUE;

           GenJnlLine2."Document No." := CheckLedgEntry."Document No.";

           GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.

           GenJnlLine2."Account Type" := GenJnlLine2."Account Type"::"Bank Account";

           GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;

           GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bank Account No.");

    Replacement code

           GenJnlLine2."System-Created Entry" := TRUE;

           GenJnlLine2."Financial Void" := TRUE;

           GenJnlLine2."Document No." := CheckLedgEntry."Document No.";

           GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.

           GenJnlLine2."Account Type" := CheckLedgEntry."Bal. Account Type";

           GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;

           GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bal. Account No.");

  • dmvdmv Profile Picture
    dmvdmv 85 on at
    RE: Error when voiding customer refund check

    Thanks Steve!  

    I will have our developer take care of that.  BTW, can you tell me how you found that on the MS portal?  Ever since the most recent change to the MS site, we cannot figure out where to go to search for Nav/BC issues.  If you could give me a step by step of where you went to find this, I would be so grateful.  We have an account with MS and I can enter tickets, but can't find where to search for issues.  The only search I can find, searches every single MS product available to mankind.  Earlier this year, I searched for 2020 1099 info and video games came up!

    Thanks,

    Diane

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when voiding customer refund check

    Microsoft did a hotfix in KB980359. The fix was:

    "Document Type"::Refund:

      IF NOT "System-Created Entry" THEN

         ErrorIfNegativeAmt(GenJnlLine)

      ELSE

         ErrorIfPositiveAmt(GenJnlLine);

    The KB is here: mbs2.microsoft.com/.../kbdisplay.aspx

    Thanks,

    Steve

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans