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

Error 404 Not Found for Custom Page API

(4) ShareShare
ReportReport
Posted on by 149

Hello Everyone,

I have created several custom APIs in Microsoft Dynamics 365 Business Central, and they have been working correctly until today.

However, I am now facing an issue with one specific custom API, which intermittently returns a 404 Not Found error.

Issue:

I have multiple custom APIs in the same extension.

  • Other custom APIs are working correctly.
  • Only one specific API is affected.
  • The API works immediately after publishing the extension in some cases.
  • Sometimes, after publishing, the same API still returns 404.
  • Republishing the extension sometimes makes the API work again.
  • No changes are made to the Postman request or authentication.

"code": "BadRequest_NotFound",
"message": "No HTTP resource was found that matches the request URI [URL]

 

Thanks,
Suketu Piprotar

  • Suggested answer
    Teagen Boll Profile Picture
    3,868 Super User 2026 Season 2 on at

    Hi Suketu, I would check the business central web services page and see if that web service still exists. Was there any app dependances in business central for the API? 

     

    Best,

     

    Teagen Boll, CPA
  • Suggested answer
    YUN ZHU Profile Picture
    103,085 Super User 2026 Season 2 on at

    Hi, hope the following helps.

    Dynamics 365 Business Central Online: Endpoints for the APIs (V1.0, V2.0, Beta, custom, automation……)

    https://yzhums.com/52262/

    Dynamics 365 Business Central: API query type (Develop a custom API using Query)
    https://yzhums.com/57475/

     

    Thanks.

    ZHU

  • Suggested answer
    OussamaSabbouh Profile Picture
    19,350 Super User 2026 Season 2 on at

    Hello Suketu Piprotar,

    Since the other APIs in the same extension continue working, this is unlikely to be authentication or the general API URL. Microsoft states that 404 BadRequest_NotFound for an incoming BC API means the endpoint isn't available in the API metadata. Given that republishing sometimes makes this single endpoint appear again, I would specifically check for an API metadata conflict: another API page—either in your extension or another installed extension—may be exposing the same combination of APIPublisher + APIGroup + APIVersion + EntitySetName. Microsoft now provides telemetry specifically for this: RT0048 = conflicting API path and RT0037 = invalid API page, either of which can prevent an API from being exposed. When the problem occurs, check the API service document/$metadata; if your EntitySetName isn't there, the problem is server-side API registration rather than Postman. Verify that EntityName/EntitySetName and the complete API route are unique, then check Application Insights for RT0048/RT0037. If the metadata is valid, there are no conflicts, and the endpoint still intermittently disappears after publishing—especially if reproducible in a clean sandbox—I would raise a Microsoft support case with the extension version, API page ID, timestamp, environment/build, and telemetry because repeatedly republishing shouldn't be required for a valid API endpoint.

    Regards,
    Oussama Sabbouh

  • Suggested answer
    CU03020606-0 Profile Picture
    88 on at

    Hi Suketu,

    As the other APIs in the same extension are working fine, I would first check the affected API's metadata/registration rather than Postman or authentication.

    When you get the 404, try checking the API $metadata and see if the EntitySetName for this API is actually there. If its missing, then BC is not exposing the endpoint at that time.

    I would also check if there is any API path conflict with another extension. Make sure the combination of APIPublisher, APIGroup, APIVersion and EntitySetName is not being used somewhere else.

    If you have Application Insights, also have a look for RT0048 (conflicting API path) and RT0037 (invalid API page).

    One test I would do is after publishing the extension, check the metadata when the API is working and then again when you get the 404. If the EntitySet disappears from the metadata, that gives you a pretty good clue that the issue is with the API registration and not the request itself.

    If there are no conflicts and the API still randomly starts/stops working after publishing, I would raise this with Microsoft, specially if you can reproduce it in a clean sandbox.

    I wouldn't change the API names as a workaround yet, unless you actually find a conflict.

    Thanks, 
    Sanket

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
AndrewThomas81 Profile Picture

AndrewThomas81 390 Super User 2026 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 386 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans