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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
efjw
Helper I
Helper I

Error creating connection in powerBI service, can connect to postgreSQL on powerbi desktop

Does anyone know how to solve this error when creating a new connection? I have configured a data gateway and I can connect to the PostgreSQL database using powerbi desktop, but can't connect using powerbi service
 
Unable to create a connection for the following reason: Unable to connect to the data source. Either the data source is inaccessible, a connection timeout occurred, or the data source credentials are invalid. Please verify the data source configuration and contact a data source administrator to troubleshoot this issue

Details: gatewaykdhcs: Please install Npgsql version 4.0.10.0 or earlier.
1 ACCEPTED SOLUTION

Hi @NandanHegde !

 

Solved the problem! I needed to connect to an ODBC datasource instead of PostgreSQL data source, thank you so much!!

View solution in original post

5 REPLIES 5
efjw
Helper I
Helper I

@NandanHegde 

 

efjw_1-1721962201513.png

Do you think that this could be an issue too? 

 

efjw
Helper I
Helper I

Hi @NandanHegde ! Thanks so much for responding 🙂 

 

I can get real-time data from my PostgreSQL database on powerBI desktop however, when I publish my report to powerbi service, I get this error and no data is displayed

 

efjw_2-1721961632355.png

thus, I tried to download a the data gateway and create a new connection using the new data gateway that was set up

 

efjw_0-1721961474794.png

however, I am running into this error. Could this be a problem with my gateway setup? I downloaded the gateway and signed in and it shows on on-premises gateway section. 

1st step when installing the gateway is to validate whether your source is accessible from within the server.

So login to the server on which you plan to install the gateway and check whether the database is accessible from within the server ( as there might be port of firewall blockages as well).

and you can ignore the folder aspect that you have stated 2nd time.

 

The issue seems to be more of network aspect.

 

NandanHegde_0-1721964402039.png

and validate in diagnostics aspect

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Hi @NandanHegde !

 

Solved the problem! I needed to connect to an ODBC datasource instead of PostgreSQL data source, thank you so much!!

NandanHegde
Super User
Super User

Can you confirm whether the database is accessible from server on which the On Prem data gateway is installed?

You can login within that server to try to access that database from SSMS/powerBI.

 

Note: Basically when you are developing report from powerbi desktop, there is no gateway needed. The database is being accessed from the server on which the PBI desktop is installed




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors
Users online (413)