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 :
Small and medium business | Business Central, N...
Unanswered

Sales Order Statistics Error

(0) ShareShare
ReportReport
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.

  • Jun Wang Profile Picture
    8,222 Moderator on at

    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.

  • mak1000 Profile Picture
    15 on at

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

    Thank you for your help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 545 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans