We have developed a custom API in a Business Central AL extension. The API works correctly after deployment, but one specific API page intermittently becomes unavailable without any code changes.
When the issue occurs, the API endpoint returns the following error:
{
"error": {
"code": "BadRequest_NotFound",
"message": "No HTTP resource was found that matches the request URI 'https://api.businesscentral.dynamics.com/v2.0/[tenant]/[environment]/api/[PublisherName]/[GroupName]/v2.0/companies([companyId])/[EntitySetName]'."
}
}
At the same time, the affected API is no longer listed in the API discovery endpoint (/api/...), while all other custom APIs from the same extension remain available and continue to work correctly.
We have developed a custom API in a Business Central AL extension. The API works correctly after deployment, but one specific API page intermittently becomes unavailable without any code changes.
When the issue occurs, the API endpoint returns the following error:
{
"error": {
"code": "BadRequest_NotFound",
"message": "No HTTP resource was found that matches the request URI 'https://api.businesscentral.dynamics.com/v2.0/[tenant]/[environment]/api/[PublisherName]/[GroupName]/v2.0/companies([companyId])/[EntitySetName]'."
}
}
At the same time, the affected API is no longer listed in the API discovery endpoint (/api/...), while all other custom APIs from the same extension remain available and continue to work correctly.