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...
Suggested Answer

Error 'Http request failed as there is an error: Received an invalid status line: 0' in D365 BC API

(2) ShareShare
ReportReport
Posted on by 6
I am calling the Business Central web services of the custom API page from logic app. I am creating the Sales Header in the Business Central using this web service.
The web service is throwing an error ''Http request failed as there is an error: Received an invalid status line: 0.'. This error is not coming each time. We have the traffic like 2000-3000 web service calls per day and it failed 3-4 times. Also, when I re-run the web service it got succussed with the same web service payload and endpoint.
 
 
Business Central throws the error but that operation was also completed in the Business Central as Purchase Header will be created in BC and error is also received on web service response.
 
I checked it on logic app side, there is no issue on that side. So, Business Central is causing this issue.
 
 
I have the same question (0)
  • Vahid Ghafarpour Profile Picture
    12,228 Super User 2026 Season 1 on at
    One common cause of intermittent HTTP errors is the handling of persistent connections. You can try setting the KeepAlive property to false to ensure that each request establishes a new connection. This can help avoid issues with stale connections.
     
  • Nyakinyua Profile Picture
    55 on at
    Given that the error occurs sporadically and resolves upon retry, you can monitor your Business Central API usage and adjust the request limits
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,130 Super User 2026 Season 1 on at
    Web service responds with an error, suggesting that the underlying connectivity or service handling may be affected during peak traffic periods. To mitigate this, consider implementing retry logic in your Logic App and closely monitoring the performance of Business Central during high traffic times. Additionally, reviewing the configuration and resource allocation may help improve overall reliability and reduce the frequency of these errors
     
  • AG-10101328-0 Profile Picture
    6 on at

    I've been consistently facing this particular issue in my integrations developed using Logic Apps. In an attempt to resolve it, I migrated the integrations to Azure Function Apps, hoping the issue wouldn't occur there. Unfortunately, the same problem is also happening with the Function Apps.

     

    Has anyone else encountered this behavior? Any insights or suggestions would be greatly appreciated.

  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    This seems to be a problem with the Microsoft standard connector. It is recommended to submit an SR to allow Microsoft to assist in investigating this issue.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,130 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 March 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,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans