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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Error connecting to PostreSQL

Hi all,

 

I am trying to connect to a PostgreSQL database hosted by AWS - I enter all the correct server/port/database details and username/password, but constantly get the following error message back:

 

"An error happened while reading data from the provider: 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'"

 

I am using Power BI desktop, Version: 2.99.862.0 64-bit (November 2021).

 

I can connect to the database in question via DBeaver, HeidiSQL or PGAdmin 4 so am unsure as to why this is happening?

 

I have looked over previous posts regarding connection issues but can't spot any that fit this specific issue.

 

Separate issue: previously I have connected via a remote desktop link to a different environment, but now when I try to log into Power BI there I can enter my username/email but the enter password window is blank?

 

Thanks,

3 REPLIES 3
SanjayPraveen
Frequent Visitor

Hey, have you fixed this issue? Is yes, how did you solve this?

 

Thanks

amitchandak
Super User
Super User

@Anonymous , Please makse sure you not missing driver, certificate or any other step

 

https://community.powerbi.com/t5/Power-Query/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/td-p/135666

 

https://dataintoresults.com/post/powerbi-and-postgresql-ssl-lets-encrypt-and-gateway/
https://niftit.com/connecting-power-bi-to-postgresql/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

I have tried these steps previously and I still get the same error.

 

The database is hosted by a 3rd party, in order to access the database via PG Admin or DBeaver we have to use a different server string (port and database remain the same).

 

If I use this different string, I get the below:

"An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure.'"

 

This implies (to me) that I am missing a certificate in order to confirm that my connection is legitimate?

 

Thanks fo the earlier response.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.