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 :
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,459 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
    95,329 Super User 2025 Season 2 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans