Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Automatic refresh of dataset fails: Connection is not open

Hi all,

 

we have set up a number of PBI datasets (about a dozen) on PBI Online that are scheduled to update on a daily basis. All these datasets refer to a Postgres database we host ourselves at a rented VM.

 

However, we receive error messages about these automatic updates sporadically, but with a too high frequency (multiple per week). These error messages say:

An error occurred while processing the data in the dataset.

Refresh failed:

<Report name> has failed to refresh.
Failure details: The last refresh attempt failed because of an internal service error. This is usually a transient issue. If you try again later and still see this message, contact support.

{"error":{"code":"ModelRefresh_ShortMessage_ProcessingError","pbi.error":{"code":"ModelRefresh_ShortMessage_ProcessingError","parameters":{},"details":[{"code":"Message","detail":{"type":1,"value":"An error happened while reading data from the provider: 'Connection is not open'"}}],"exceptionCulprit":1}}} Table: public <table_name>.

 

This happens for multiple different datasets and different tables in the Postgres database. How can we trace down these sporadic issues? Manual access to the database works fine. What does this error message tell us in detail, I could not find it on Google? Is there any way to turn on logs either on the PBI or the Postgres site?

 

Thanks in advance,

Christoph Thiede

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

How many data sources that you enable scheduler refresh based on power bi?
Have you tried to trace database logs to confirm if they are too many requests that exceed to max connection limits of database settings?

How to increase the max connections in postgres? 

Error Reporting and Logging 

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

You can turn on advanced logging on the gateway but I am not sure it will give you much

 

https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-performance 

 

Is it possible that your Postgres database is easily overwhelmed by concurrent connection requests?

Anonymous
Not applicable

Hi,

 


@lbendlin wrote:

You can turn on advanced logging on the gateway but I am not sure it will give you much

 

https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-performance 


 

How can I turn on logging for the automatic Power BI Online updates? It seems to me that the description to referenced to applies to PBI Desktop only.

 


@lbendlin wrote:

Is it possible that your Postgres database is easily overwhelmed by concurrent connection requests?


The internet says the default capacity is 100 connections so this should not be a problem with ~10 reports á ~5 referenced tables. However, I could try to schedule different update times for different reports (at the moment, they are scheduled all at 4:00 AM), but this feels like an ugly workaround ...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.