Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Sales Order Statistics Error

Posted on by 15

I am getting an error below after I post a prepayment on a sales order.  Any help would be great.

If requesting support, please provide the following details to help troubleshooting:

Tax Group Code must have a value in Sales Line: Document Type=Order, Document No.=S-ORD101011, Line No.=20000. It cannot be zero or empty.

Page Edit - Sales Order Statistics has to close.

Internal session ID:
8d7b555d-f9f9-4f93-b578-c11fd25d90b8

Application Insights session ID:
6dbfe2ba-1007-459c-b962-6c471522d274

Client activity id:
34642b10-1c5b-41aa-9449-f70a81beaebc

Time stamp on error:
2023-06-02T23:12:21.6628237Z

AL call stack:
"Sales Tax Calculate"(CodeUnit 398).AddSalesLine line 36 - Base Application by Microsoft
"Sales Order Stats."(Page 10038).OnAfterGetRecord(Trigger) line 32 - Base Application by Microsoft
"Sales Header"(Table 36).ShowDocumentStatisticsPage line 8 - Base Application by Microsoft
"Sales Order"(Page 42)."Statistics - OnAction"(Trigger) line 11 - Base Application by Microsoft

****Yes, there is a value in tax group code in my sales line.  There is only 1 sales line item.

Categories:
  • mak1000 Profile Picture
    mak1000 15 on at
    RE: Sales Order Statistics Error

    I have resolved this.  The sales invoice did not have a tax group code value.

    Thank you for your help!

  • Jun Wang Profile Picture
    Jun Wang 7,433 Super User 2024 Season 2 on at
    RE: Sales Order Statistics Error

    users normally don't get error viewing the statistics screen. Could you test in sandbox for the same customer, product if issue could be replicated? If yes, please provide steps and experts have more information to analyze.

    Try to get a dev to debug if possible which might find the cause quicker.

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans