web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Business Central API returns 500 - Internal Server Error

(1) ShareShare
ReportReport
Posted on by 8
Hello,
 
since this morning, our Business Central API just returns 500. The error message is
 
{
"error": {
"code": "Unknown",
"message": "Sequence contains more than one matching element CorrelationId: 6831f3cc-1666-4593-9481-94d59724fb2d."
}
}
 
The correlation ID is different every time I try to call the API. The server has already been restarted several times.
The error is very non-descriptive, does someone have an idea what could cause this?
 
Edit:
 
Ah, I can finally edit my post - I was blocked from doing so by the forum's software for the last days. 
The error exists for all API endpoints and it does not matter whether it's the default or custom API endpoints. 
We're using BC version 19. 
I have an idea: I suspect something has gone wrong while publishing the newest update of our extension and it did uninstall the old version of our extension, except for the API part. You cannot see it, neither in extension management nor the SQL server, but there's no two APIs with same urls and same endpoints. I suspect this causes the error. I published an update where I renamed the API endpoints and now it works, but now I have to adapt all API consumer code...
I believe this is a bug in Business Central.
 
Edit2:
Why can't I reply to posts? I am getting error messages when I try to do so. Seems like this forum is well-written...
I wanted to add that the endpoints are broken again. Every time I publish an update to my app, the API functionality of Business Central breaks.
I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    49,231 Super User 2025 Season 2 on at
    Business Central API returns 500 - Internal Server Error
    Is this custom api page?  are you able to get response from the standard API ? if it is a custom, possible send the custom API page code you are trying to publish.
     
    Thanks
    Suresh
  • Gerardo Rentería García Profile Picture
    22,524 Most Valuable Professional on at
    Business Central API returns 500 - Internal Server Error
    Hi
    I hope this can help you
    Best
    GR

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,725 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,610

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,221

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans