Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

REST API call 500 Internal Server error

(0) ShareShare
ReportReport
Posted on by 5

I am getting a HTTP 500 when I call /api/data/v8.2/accounts?$select=accountnumber,name&$top=5 from C#. Works in a browser.

{StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: private
Server:
REQ_ID: 97cbcb60-1ee3-4d9e-8b1a-2241abfa5390
Persistent-Auth: true
Date: Thu, 29 Oct 2020 16:40:05 GMT
Content-Type: text/html
Content-Length: 1208
}}

Can I see more detail on the server side about the problem?

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: REST API call 500 Internal Server error

    HI,

    Did you check Event Log on web server?

    The code I shared would work in both on-premise and Online. You can convert the response and see error reason.

    You can also try enabling Trace on server then check.

    support.microsoft.com/.../how-to-enable-tracing-in-microsoft-dynamics-crm

    Please mark my answer verified if i were helpful

  • moldy_xml Profile Picture
    5 on at
    RE: REST API call 500 Internal Server error

    Thanks but I'm on premises so I don't think that's an option

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: REST API call 500 Internal Server error

    Hi,

    See below article to parse Error reason and code from WEB API C# code.

    xrmdynamicscrm.wordpress.com/.../

    Please mark my answer verified if i were helpful

  • Hiroki Kanemaru Profile Picture
    on at
    RE: REST API call 500 Internal Server error

    Hi, You might be able to find raw logs for REST API call in LCS>Environment detail>Environment Monitoring>[Activity] tab

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 21

Overall leaderboard

Product updates

Dynamics 365 release plans