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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
fabiomanniti
Helper III
Helper III

Import data from PostgreSQL

Hello, I have my Data on a remote PostreSQL and I'm trying to get them but with no success.

I've tried two ways:
1.

GET DATA -> PostgreSQL Database 

Server: 34.xx.xxx.xxx

Database: myDb

Then I put my username and password and I get this error message

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

 

2.

GET Data ->ODBC

Data source name: None

Connection String: Driver={PostgreSQL ANSI};Server=34.xx.xxx.xxx;Port=5432;Database=myDB

Then I put my credential and I get this error message

Details: "ODBC: ERROR [08001] FATAL: no pg_hba.conf entry for host "10.100.0.1", user "myUser", database "myDB", SSL off"

 

Since it is a remote db I cannot see pg_hba.conf file.

Can anyone suggest a solution?

Thank you

1 ACCEPTED SOLUTION

 I solved this using ODBC

I had to create a ODBC Connector but I also had to enable SSL.

The best way is throug ODBC Administrator (search on windows) so you can make a test to the connection. Otherwise the script is

 

database=xxxx;driver={PostgreSQL Unicode(x64)};port=5432;server=34.xxxxxx;sslmode=require;

 

This worked for me

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @fabiomanniti 

I'm not sure about connecting to this database from Tableau or Datagrip ,because I don't have the test environment to restore your scenario. Most customers will choose the ODBC connector if they fail to connect to the PostgreSQL database using the PostgreSQL DB connector . Maybe you can talk to the person who manages the database to see if it's a configuration file problem.

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 I solved this using ODBC

I had to create a ODBC Connector but I also had to enable SSL.

The best way is throug ODBC Administrator (search on windows) so you can make a test to the connection. Otherwise the script is

 

database=xxxx;driver={PostgreSQL Unicode(x64)};port=5432;server=34.xxxxxx;sslmode=require;

 

This worked for me

Anonymous
Not applicable

Hi @fabiomanniti 

Is your database in the cloud ? If your database is on the cloud, you must also configure remote connections. You must do this by editing the pga_hba.conf file and the postgresql.conf file.

Ailsamsft_0-1643004651104.png

Ailsamsft_1-1643004651109.png

I searched a document about how to connect to Power BI from PostgreSQL , you can refer to it .

https://hevodata.com/learn/connect-postgresql-to-power-bi/

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous 

Thank you but since I don't have access to those files (I'm not the one who manage the Database) I wanted to ask for a doubt:

I tried to connect this database both on Tableau and Datagrip and I didn't have any problem of connection; so, can it be possible that configuration files have nothing to do with this?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.