invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Automatic refresh PowerBI gives: "An existing connection was forcibly closed by the remote host"

Replies happen on the forum.

Go to source

Question

When setting up automatic refresh of a dashboard in PowerBI Online, I used * in the Bridge Online IP address list as indicated on forums. This is to prevent the problem of IP addresses. Unfortunately I still get the error message below, I would like to hear how to proceed with this:

The error message:

Failure details: The last refresh attempt failed due to an internal service error. This is usually a temporary problem. If you try again later and this message is still displayed, please contact support.

DataSource.Error: OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. DataSourceKind = OData DataSourcePath = https://bridge-online.cloud/acme-twinfield/odata4/Twinfield.Twinfield.GeneralLedgerDetailsV3@tfd OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. The exception was raised by the IDataReader interface. Please review the error message and Provider documentation for further information and corrective action. Table: GeneralLedger (Test).

Accepted answer

This topic will be explored further in PowerBI.com Service OData-download issue: "An existing connection was forcibly closed by the remote host.".

What are the times within PowerBI.com for this download for the various steps, how much time passes between completing with an HTTP status 200 OK and the error message in PowerBI.com itself?

In addition, advice to submit a ticket within the Power BI Premium subscription and to give an upvote to the relevant ideas (Power BI improvement suggestions).

If a environment where the problem occurs structurally can be used temporarily, that would be greatly appreciated.

Reply 27

This question was automatically closed after at least 2 weeks of inactivity following a potentially suitable answer. The last answer provided has been marked as the solution.

Please ask a new question in a separate thread if the problem reoccurs. Please include a link to this thread in the new question by pasting its URL into the text.

Reply 2

IP address check

Using * completely disables IP address security; all devices within the service area can then connect as long as they present the correct password.

Connections from outside the service area are blocked, as are connections from doubtful IP addresses, such as known IP addresses of anonymous VPN tunnels, insofar as these can be identified quickly and automatically.

However, this error message is not related to the IP address check; that would give a message itgenboe030 or itgenboe031 (see for more details: Correct itgenboe031 and itgenboe030 message at Power BI Refresh (Bridge Online access is not authorized from IP address ...))).

Error Message

This error message text is given by Power BI. In our view, the Power BI service is not always of equally high quality for production purposes as Azure Data Factory. Traceability is also sometimes difficult.

That is why it has been made possible to view the status via Bridge Online Monitoring. In addition, messages are also available for a longer period via the "System messages" screen.

Advice

Advice is to look up the request again in the Bridge Online Monitoring screen. Note that the times shown are in UTC. Often a message will be visible that explains the problem. Also, at the very bottom a list is available of the progress in terms of number of rows. Does that match the expectation?

If the problem does not become clear from this, please add a screenshot from Bridge Online Monitoring of the request after removing your IP address, personal data and other confidential information. Make sure the blue title bar remains fully visible.

Reply 5

I just tried again to expose the data via the automatic refresh. However, I get the same error message again. But I don't actually see this in Bridge Online Monitoring. How is that possible?

And is any advice given regarding next steps? Is automatic refresh not possible via Invantive?

Reply 6

All requests of the current Invantive Cloud user should be visible from the most recent system start and up to a maximum of 8 hours ago. When using the PowerBI Service, a different Invantive Cloud user (such as a service account) may have been used. These requests are only visible when signed in with the service account on Invantive Bridge Online Monitoring.

Automatic refreshing via Invantive is possible and is used a lot.

For next steps, the advice is, after looking up the request and assessing it yourself, to take the next steps mentioned earlier:

If the problem does not become clear from this, please add a screenshot from Bridge Online Monitoring of the request after removing your IP address, personal data and other confidential information. Make sure the blue title bar remains fully visible.

Reply 7

Just now I ran the refresh in PowerBI again and also kept an eye on Bridge Online Monitoring. The error message in PowerBI Online is the same every time.

Below is the refresh history:

Refresh PowerBI

Below are the images from Bridge Online. The query from PowerBI is run four times. In all cases green and no error message.

Refresh PowerBI 1

Refresh PowerBI 2

Refresh PowerBI 3

Reply 8

In the PowerBI query I have already added ODataVersion=4, OmitValues=ODataOmitValues.Nulls.

Reply 9

Good that it has succeeded to make the data visible in Bridge Online Monitoring now.

Is it possible to add the details of the associated data download (so with the value in the column "SQL statement") of one of the downloads failed according to PowerBI.com (anonymized as to personal and company names, but with the blue header and other fields fully visible)?

Is there an error message in the list at the bottom and/or is the correct number of rows shown?

Are there further details at PowerBI.com for the failed download (screenshot appreciated)?

Reply 10

Here is the PowerBI.com error message:

Power BI error message

Data source error OData: Unable to read data from the transport connection: An existing connection was forcible closed by the remote host. DataSourceKind = OData DataSourcePath = https://bridge-online.cloud/naam/odata4/Twinfield.Twinfield.GeneralLedgerDetailsV3@tfd OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. The exception was raised by the IDataReader interface. Please review the error message and Provider documentation for further information and corrective action. Table: GeneralLedger (Test). Cluster URI: WABI-NORTH-EUROPE-redirect.analysis.windows.net Activity ID: f2282333-c403-4b78-9362-b10e081cd568 Request ID: 7b3d9747-b8d1-9c4f-1b67-1feb49d1779f Time: 2022-09-27 04:50:57Z

Reply 11

Is this the detailed overview from Bridge Online?!

Refresh PowerBI details

Reply 12

Refreshing via PowerBI Desktop does succeed.

Additionally, a timeout has now been set to see whether that helps. The timeout is not yet set to 2 hours.

Timeout=#duration(0,1,0,0)

What I notice in Bridge Online Monitoring is that for PowerBI Desktop the query is run only 1x, but for PowerBI Online the query returns 4x. So 4x SQL statement, in contrast to 1x for PowerBI Desktop.

Reply 15

It concerns about 1 million bookings from Twinfield that come from cache ("From Cache" is ticked). The volume after compression is approximately 50 MB and the retrieval takes approximately 146 seconds.

It concerns request 80000d6e-0000-d200-b63f-84710c7967bb.

The data was fully downloaded by PowerBI.com; this can be seen from the Status 200. The more detailed server logs also show that this download proceeded without error messages. This is expected to be a different problem from the one where PowerBI.com suddenly breaks the connection, often after 5 minutes. Problems with PowerBI.com occur more often and, unfortunately, on the side of PowerBI.com the analysability of causes is very limited.

Based on experiences on these forums, the advice is to perform the following checks:

Repeatedly running the same query in PowerBI.com

The PowerBI Online Service runs the query several times. This is probably a known problem. The suspicion is that PowerBI.com fetches the data completely and crashes while processing the data. After some time the same download is started again and PowerBI.com crashes again. In an extreme case, the same download was initiated on a number of Exact Online administrations in one morning 184x from PowerBI.com, which then caused about 2 terabytes of downloads (uncompressed).

Fortunately it is not too bad here, but PowerBI.com leaves room for improvement in reliability and runaway process control. We try to provide the best possible facilities here, although the above advice may already solve the problem.

Reply 16

In response to your comments/suggestions:

  • In this case it concerns a Power BI Premium workspace, so yes.
  • This has already been done (as mentioned above)
  • That could indeed be a solution, but if there are 30 administrations, this is more efficient.

Regarding repeatedly running it. I understand your explanation, but what can be done about it? The fact that Invantive Cloud fetches the data in 142 seconds is nice and great, but Power BI still gets stuck.

Just now I ran the refresh with the timeout mentioned above, but the query still runs 4x.

Reply 19

From the Invantive software itself we see no structural solution for this; the data complies with the OData4 specifications and is fetched completely. That is something different from the other problem where PowerBI.com sends an HTTP RST_STREAM. Here we hope we can find a workaround.

Alternative solutions are:

  • Limit the amount of data that PowerBI.com must process, for example by splitting the 30 administrations into groups and downloading each separately, or along the axis of years. The advice is to first try this in a test environment.
  • Replace PowerBI.com with another flow, for example via Azure Data Factory (which is considerably better) or create or replace table tabel@eigendatabase as select * from tabel@tfd, and use that.
  • Register a fault with Microsoft itself via the Power BI Premium subscription, since they manage and develop the PowerBI.com software. However, in our experience this usually takes at least 6 months before it is considered a bug.
  • Have myself and involved colleagues give an upvote on Power BI improvement suggestions ("Avoid PowerBI internal loops / aggressively downloading again and again").

Reply 20

Thank you for the alternative solutions provided.

  • I am now testing with a dataflow in Power BI Online that fetches the data up to and including 2021. Subsequently, another query fetches the data after 2021. Then merge that data in Power BI by 'appending' queries.
  • Just to get a picture of it, what all is involved with Azure Data Factory? Does the data then still have to be fetched by Power BI Online?

Reply 21

Azure Data Factory is usually used to load a replica database. Invantive Cloud deliberately does not offer that for information security reasons; its own database technology offers stronger safeguards against data misuse, which are built deeper into the engine.

Reply 22

I still experience a problem with Power BI Online. I have tried various options, but without success so far. Strangely enough, I just had the dataflow in Power BI Online fetch all data without an error message.

image

This SQL query has only been executed 1x, whereas the previous times the SQL query was run multiple times. It is unclear to me why there should be a difference between refreshing a dataflow and a dataset.

I am curious what I can do about this. The amount of data cannot be the problem.

In addition to the above, I notice that a manual refresh 'refresh now' runs without error messages, while a "scheduled refresh" produces the error message mentioned earlier ("Connection forcibly closed").

Is there another explanation for this?

Reply 24

My addition in the last message is not correct. Just now I also get the same error message on a manual refresh 'Refresh now'. It seems almost like random processing.

Reply 3

When do you have access to Bridge Online Monitoring? Actually, I cannot open that screen.

Reply 4

The Monitoring screen of Invantive Bridge Online is accessible to all users. If that does not work, please start a new thread for this problem.

Reply on the forum