Skip to main content

Notifications

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

Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

Posted on by 195

I use Power Query in Excel to connect with Business Central data using OData V4 Web Services links.  However, ever since our environment upgraded to version 18 of Dynamics 365 Business Central, I get the following error message in Excel when trying to refresh these queries (they all worked great before the BC update):

"[DataSource.Error] OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

Whether I'm pulling data from Pages or Queries, it doesn't matter.  And what's also odd is, I can get the data to load if the queries are simple.  But when I merge data from two or more OData links, I get the error.  Again, all these Power Queries worked before our environment of Dynamics 365 Business Central upgraded to V18. Could there be a setting that limits data?  Maybe it's timing out?  Any help would be greatly appreciated.

OData-Error.JPG

  • Suggested answer
    JodeRuiter Profile Picture
    JodeRuiter 976 User Group Leader on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    In my case, it was during the joining of two other queries, and I found that I was trying to link up on disparate data types, so though they were the same data, one query had the column in Text, the other query had the same field in whole numbers.

    All I had to do was change the type of the whole number column to text and then it worked like a charm.

  • Clinton Saunders Profile Picture
    Clinton Saunders 20 on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    We have just upgraded out client from BC 14 to BC 20, and we are encountering the same issue. In our case, the data can refresh in some companies, but not in the larger ones. WE have an On-Premise implementation. Nothing logged in the Event Logs to give clues! Can't believe there is not a solution for this yet!

    This is not good for BC

  • Stirton Profile Picture
    Stirton 20 on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    Yea i have been filtering my Odata queries to only take required data but still the final query to Append my 3 queries falls over with the error above, this is a real pain!

    Let me know if you find a solution and i will do likewise.

  • Agazziz Profile Picture
    Agazziz 195 on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    Not solved yet.  Our Microsoft Partner has been working with Microsoft on this, but they haven't found a solution.  The only thing I've found that has helped is to add OData filters to my queries when possible to limit the amount of data being pulled into the query - this has worked for most, but not all, of my BC OData queries.

    There is also 3rd party solutions that can use the OData links to replicate the data onto a SQL server, making the data much quicker/easier to query.   Plus, this gives people that don't have BC licenses the ability to refresh queries using Business Central data.

  • Stirton Profile Picture
    Stirton 20 on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    I have the a similar issue, did you solve this?

    I can load individual BC queries fine but when i append them together the query falls over with the same error message "[DataSource.Error] OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

  • Suggested answer
    srttel Profile Picture
    srttel on at
    RE: Getting Web Services OData Error - "An existing connection was forcibly closed by the remote host"

    Hi,

    I recommend contacting your CSP or Microsoft support providing the repro scenario which can be used on a demo sandbox, so they verify the underlying issue within the telemetry data and potentially investigate into a fix or workaround.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans