Ava API Client

Guide

Business Central API errors explained

Updated 2 November 2026

A failed Business Central call fails in one of two places. An AADSTS code comes from Microsoft Entra while getting a token, before Business Central is involved. A code like Internal_RecordNotFound comes from Business Central after it has received your request. Knowing which one you have tells you where to look.

Sign-in errors (AADSTS)

CodeWhat it meansWhat to do
AADSTS90002The tenant wasn't found.Check the tenant ID or domain in the token URL.
AADSTS700016The application wasn't found in that tenant.Check the client ID, and that the app is registered in this tenant or consented to in it.
AADSTS7000215The client secret is invalid.Use the secret's Value, not its Secret ID. Create a new one if the value is lost.
AADSTS7000222The client secret has expired.Create a new secret in the app registration.
AADSTS70011The scope isn't valid.Use exactly https://api.businesscentral.dynamics.com/.default.
AADSTS500011The resource wasn't found in the tenant.An administrator of the tenant needs to install or consent to it.
AADSTS650057The app asked for a resource not listed in its permissions.Add the Dynamics 365 Business Central permission to the app.
AADSTS65001Nobody has consented to the app.Grant admin consent in the app registration.

Business Central error codes

The first word of the code gives the category. BadRequest is a problem with the request, Authentication and Authorization are about who is calling, Internal is the server or its data, and Application is business logic, often raised by AL code.

CodeTypical messageWhat to do
Authentication_InvalidCredentialsThe server has rejected the client credentialsSign-in worked but Business Central refused it. Check the app is on the Microsoft Entra applications page and Enabled.
BadRequest_ResourceNotFoundResource not found for the segment…The entity name in the URL is wrong. Names are case-sensitive.
Internal_RecordNotFoundThe … does not exist.The id or number in the URL or body doesn't match a record in this company.
Internal_CompanyNotFoundThe default company can't be foundPut the company in the URL.
BadRequest_InvalidTokenCould not validate the client concurrency token…An update needs an If-Match header. See fixing If-Match errors.
Request_EntityChangedAnother user has already changed the record.Read the record again to get its current ETag, then retry.
BadRequest_InvalidOperationControl '…' is read-onlyRemove that field from the body.
BadRequest_RequiredParamNotProvidedField '…' must not be blank or empty.Give that field a value.
BadRequest_MethodNotAllowed'POST' requests for '…' are not allowedThis entity doesn't support that method.
Application_DialogExceptionA customerNumber or a customerID must be provided.Raised by business logic. The message says what to change.
Application_StringExceededLengthThe length of the string is 57, but it must be less than or equal to 50…Shorten the value. $metadata gives each field's limit.
Internal_EntityWithSameKeyExistsThe … already exists.A record with that key is already there. Update it instead.

How Ava helps

Ava reads the error envelope for you. It shows Business Central's own message first, the fields it names, and what to try next, rather than a wall of JSON. Microsoft's sign-in errors appear as they are, so you can match them against the table above.

Sources