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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
zenisekd
Super User
Super User

Refresh error root cause identification (postgres connector)

Hi, 

Could anybody help me out with some advanced advice on how to track down the root cause of my error in refresh. I have spent a lot of time on this and still no result. 

I am connecting a postgres db, my power bi file is 80mb, so nothing bing and no unusual connector. 

Over the time I keep receiving errors of:
Data source error: DataSource.Error: An error happened while reading data from the provider: 'Connection is not open'. DataSourceKind = PostgreSQL. DataSourcePath = ecoprodukt-main-db-ro.rds.orgis.tools:5432;odoo. . The exception was raised by the IDbCommand interface. Table: public mrp_bom_line.

and
Data source error: DataSource.Error: PostgreSQL: Exception while reading from stream. DataSourceKind = PostgreSQL. DataSourcePath = ecoprodukt-main-db-ro.rds.orgis.tools:5432;odoo. Message = Exception while reading from stream. ErrorCode = -2147467259. . The exception was raised by the IDbCommand interface. Table: public account_invoice.
 

However, the tables referenced by the errors vary. I get these errors occasionally, sometimes more often, sometimes days go by without it appearing. 

I did check all the columns and relations if there is any mistype or anything else, but the error keeps appearing. When I asked my DB guy, he says that the Power BI disconnects during the refresh, according to logs, not the other way around. 

I also tried to use the "analyze my refresh" tool made by Phil Seamark https://dax.tips/2021/02/15/visualise-your-power-bi-refresh/

zenisekd_1-1724062958314.png

 

zenisekd_0-1724062809665.png

There are some more demanding queries, which take longer time. I did my best to optimize it for quer...

zenisekd_2-1724063185252.png

 

I am honestly out of ideas, about what causes the errors. Could somebody advise me on how to approac...

1 REPLY 1
lbendlin
Super User
Super User

Create a proof of concept.  New PBIX, single table connection to the PostGreSQL database. Refresh this a couple dozen times.  If no error, choose a larger table/more complex query. Rinse and repeat.

 

Also - play with the Command timeout parameter.  But ideally your queries should start returning results immediately.

 

Power Query PostgreSQL connector - Power Query | Microsoft Learn

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors