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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
willianmsantos
Frequent Visitor

Postgresql: Exception while reading from stream

 

 

Hello Dear Community!

 

Has anyone ever got this message while trying to connect to a Postgre DB? What was the workaround? 

 

Thanks in advance!

Will

 

Capturar.PNG

 

1 ACCEPTED SOLUTION

 

Hello Community!

 

That was definelty some firewalls dropping packages between the server I have the client installed and the database. I asked firewall team to open the route between source and destination and It worked properly.

Thanks for your insights!

View solution in original post

10 REPLIES 10
aldoresendiz
New Member

In my case the problem was that I misspelled the name of my database...The name is defined as XXXXDb and I was passing XXXXDB.

Anonymous
Not applicable

Go to Edit Queries->Advanced Editor-> add timeout in the connection

 

Source = PostgreSQL.Database("server_name", "database_name", [CommandTimeout=#duration(5, 0, 0, 0)]),

Does this step have to be done for all the tables? Or is this there a way where I can apply this timeout to all the tables? Once I open the advanced editor, it has the query for that particular table which is open.

Anonymous
Not applicable

This error may happen when connection string is lacking port number. Try using server:port in connection string to Postgres database.

How to do that? 

I have the same problem. I can't connect Postgres DB to Power BI 😥

Anonymous
Not applicable

Hi @willianmsantos,

 

I'd like to suggest you setting the 'Timeout' parameters and try again, it may fix the issue.

 

Reference link:

PostgreSQL.Database

 

Regards,

Xiaoxin Sheng

 

Hello Community!

 

That was definelty some firewalls dropping packages between the server I have the client installed and the database. I asked firewall team to open the route between source and destination and It worked properly.

Thanks for your insights!

how to "open the route between source and destination"? could you please give me some details? thanks

Jake_Roesler
Frequent Visitor

Bad news. This may well be the first of many errors you'll get trying to connect to a Postgresql data source. 

 

I've been banging my head against a Certificate error for a week. 

That's sad, I've spent most of day yesterday struggling over this issue. I hope to get back with some good news. 🙂

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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