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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Business Central httpclient send request fails after upgrade to version 26

(3) ShareShare
ReportReport
Posted on by 19
After upgrading to version 26 the httpclient.send() fails with the Error 'NavHttpClient Request Failed'. It worked fine till the upgrade. I have tried several things like changing the RequestHeaders, etc. Nothing worked.
 
Anyone ran into the same issue? If so, how to solve?
 
Here is the code:
 
    var
        HttpClient: HttpClient;
        RequestHeaders: HttpHeaders;
        RequestMessage: HttpRequestMessage;
        ResponseMessage: HttpResponseMessage;
    begin
        // ....
        // Code below always worked fine: 
        RequestMessage.SetRequestUri(sURL);
        RequestMessage.Method := 'GET';
        RequestMessage.GetHeaders(RequestHeaders);
        RequestHeaders.Add('Accept', 'application/json');
        RequestHeaders.Add('Authorization', sAPIKey);      //Base64 converted API Key - which always worked
 
        if not HttpClient.Send(RequestMessage, ResponseMessage) then
            if GuiAllowed then
                ERROR('Geen response...')
            else begin
                //Other Code
I have the same question (0)
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,173 Super User 2026 Season 1 on at
    did you test this in postman as well? because i have just made a request (BC 26 version) and i didn't get any error
  • PD-02061932-0 Profile Picture
    19 on at
    Thanks for your Reply Sohail Ahmed. I did test in Postman. Works fine. It just does not work in BC version 26.
  • Suggested answer
    YUN ZHU Profile Picture
    100,132 Super User 2026 Season 1 on at
    Hi, I was recently testing the Dataverse API, developing in a BC26.1 environment, and did not encounter your problem.
     
    The code is written similarly to what I mentioned in previous posts, I hope the information below can give you some hints.
    Dynamics 365 Business Central: Manage attachments in SharePoint (Save attachments externally and do not use BC capacity)
    Dynamics 365 Business Central: Can we get all environments within BC via AL (Not in Admin Center)
     
     
    Thanks
    ZHU
  • Verified answer
    PD-02061932-0 Profile Picture
    19 on at
    Thank you Yun Zhu for your reply. The issue is solved. The reason was a rare confluence of circumstances. On the same day the version went live the certificate for the website was due. So, it was not the code, nor BC. 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,342 Super User 2026 Season 1 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,957 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 956 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 645 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans