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

Notifications

Announcements

No record found.

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,148 Super User 2025 Season 2 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
    95,712 Super User 2025 Season 2 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
    20,441 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans