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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
VictorRayanF
Frequent Visitor

Error It's not possible to create connection - Power BI Service Data Gateway connection

I got this error: 

VictorRayanF_0-1683642332712.png

 This basically asks me to install the Npgsql, but I don't know if I do have to do it on the machine that has the Power BI Data Gateway or on the machine that has the Database.

I have the following scenarios: a server with non-exposed PostgreSQL Database, that is only able to make localhost connection or with SSH. I Have an intermadiate device such as Windows where I have the Power BI Data Gateway installed, so, I am making SSH connection between the Windows and the server which has the database, by forwarding the database port (25432) from there to my Windows machine, so in the Power BI Service I try to connect into this database by using the localhost:25432. Is there something wrong? Where (Which machine) Do I have to install this Npgsql? Is it really needed?

PS: In Power BI Desktop at the same Windows which has the Data Gateway, the connection works

 

1 REPLY 1
GilbertQ
Super User
Super User

Hi @VictorRayanF 

 

Yes you will need to install the Npgsql to connect to PostGreSQL

 

Also I would use the computer name or IP addres of your PostGreSQL database when creating the connection in the Data Gateway. I would also test this with Power BI Desktop to make sure it all works as expected.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.