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...
Suggested Answer

Odata 404 error

(0) ShareShare
ReportReport
Posted on by 140

I have exposed the Sales Invoice Statistics page (Object ID 10041) as an Odata web service.

When I attempt to query the URL for the service in Power BI and other applications, I receive a 404 error.

Below is the response I receive.

{
"error": {
"code": "Internal_RecordNotFound",
"message": "The Tax Area does not exist. Identification fields and values: Code=''"
}
}

I have exposed many other pages as Odata web services and have not had issues.

Looking for advice on how to go about fixing this issue.

I need to query the Sales Invoice Statistics page for some Power BI reporting.

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,461 on at

    Hi,

    I am not too sure where you can create a webservice page for Sales Invoice Statistics as I think it's temporary data page. And each time of open it will calculate date. 

    Also as per error message i think on Invoice header it's not have Tax Area code value. You can fill it on Customer card and it will flow to Sales Invoice Header. 

    Put filter on Invoice list page. for Tax Area code which document have value of Tax Area try to check your web service with that document. 


    Hope this will help.

    Many Thanks,
    Manan

  • Suggested answer
    YUN ZHU Profile Picture
    98,231 Super User 2026 Season 1 on at

    Hi, you can try to open the Sales Invoice Statistics page (Object ID 10041) directly in the development environment. As far as I know, this page must be opened from the Sales Invoice page, and there is no data when it is opened directly.

    So unfortunately, this page cannot be used in Power BI, you need to develop another page.

    Hopefully other experts can give you better advice.

    Thanks.

    ZHU

  • drew777777 Profile Picture
    140 on at

    Thanks. I have learned that Page 10041 is not compatible with Odata Web Services. When attempting to open the same page in NAV 18 CRONUS, I run into the same issue.

    I'm still confused by the error message and why it is referencing the "Tax Area". I cannot locate a Tax Area field on Page 10041. I will query a different page for my Power BI report.

    {

    "error": {

    "code": "Internal_RecordNotFound",

    "message": "The Tax Area does not exist. Identification fields and values: Code=''"

    }

    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,960 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,047 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans