web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Error opening page 8082 "Sales Service Commitments"

(0) ShareShare
ReportReport
Posted on by

I get the error when I open the page from the search engine. 

 

The details of the error are as follows:

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

Error message:
Document No. must have a value in Sales Subscription Line: Line No.=0. It cannot be zero or empty.

Internal session ID:
56ab2ced-36d0-46f5-8f1e-0d1382de8c1d

Application Insights session ID:
6559f790-442d-412b-a0c4-6a8ed11eed6b

Client activity id:
9d6aef0b-9682-a065-4ade-11013fe7155d

Time stamp on error:
2025-12-02T11:33:16.8313738Z

User telemetry id:
93a3471e-5823-4347-945e-8858f332b2d6

AL call stack:
"Sales Subscription Line"(Table 8068).GetSalesHeader line 4 - Subscription Billing by Microsoft version 27.1.41698.41776
"Sales Subscription Line"(Table 8068).GetCurrency line 4 - Subscription Billing by Microsoft version 27.1.41698.41776
 

I believe the error occurs because the page is not located in the registry, and when AutoFormatExpression is executed, it ends up calling TestField("Document No.")

 

field(15; "Calculation Base Amount"; Decimal)
        {
            Caption = 'Calculation Base Amount';
            MinValue = 0;
            BlankZero = true;
            AutoFormatType = 1;
            AutoFormatExpression = GetCurrency();
 
            trigger OnValidate()
            begin
                TestIfSalesOrderIsReleased();
                CalculatePrice();
            end;
        }
    local procedure GetCurrency(): Code[10]
    var
        SalesHeader: Record "Sales Header";
    begin
        GetSalesHeader(SalesHeader);
        exit(SalesHeader."Currency Code");
    end;
    local procedure GetSalesHeader(var OutSalesHeader: Record "Sales Header")
    var
        SalesHeader: Record "Sales Header";
    begin
        TestField("Document No.");
        if ("Document Type" <> SalesHeader."Document Type") or ("Document No." <> SalesHeader."No.") then
            if SalesHeader.Get("Document Type", "Document No.") then
                if SalesHeader."Currency Code" = '' then
                    Currency.InitRoundingPrecision()
                else begin
                    SalesHeader.TestField("Currency Factor");
                    Currency.Get(SalesHeader."Currency Code");
                    Currency.TestField("Unit-Amount Rounding Precision");
                    Currency.TestField("Amount Rounding Precision");
                end
            else
                Clear(SalesHeader);
 
        OutSalesHeader := SalesHeader;
    end;
 
Categories:
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans