Notifications
Announcements
No record found.
Hello,
I've installed Business Central (BC) on my PC and am currently developing extensions for a cloud environment. Part of my work involves exposing codeunits as web services.
While I've successfully exposed codeunits as web services in the cloud, I'm encountering a persistent issue when attempting to consume a web service on my local BC instance. Specifically, I receive a 404 error stating: "Resource not found for the segment 'Astra_Results'."
Below is the codeunit I have exposed:
This is how it appears on the web services page:
Here is the Postman snippet for my request:
I've noticed that other OData URLs automatically configured by BC are functioning properly, but this custom service is consistently failing.
Could anyone provide insights into what might be causing this issue? Any help would be appreciated. Edit: The URL issue raised by Yun Zhu could not be the problem as I have confirmed from the official website: https://learn.microsoft.com/en-gb/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-unbound-action I've also confirmed that that is the proper way of setting the URL to access the web service. Additionally, the specific service "Loan" does not appear when I access the metadata for the ODATAV4 from my local BC, could this be a point of concern:
I had a similar issue — I was calling a method from the OData service and it wasn’t working. The problem was that, when I looked at the SOAP service, I noticed that a number was added to the method name. Once I added that suffix, it started working. I named the procedure "PingPong", and in SOAP service it was "PingPong_4921716".
Hi, good day I hope this can help you, and give you some hints.
Troubleshooting REST API/OData calls - Business Central | Microsoft Learn
Best Regards Gerardo
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,135
YUN ZHU 733 Super User 2025 Season 2
Sumit Singh 612