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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data source(postgres) connectivity with powerbi gateway

We are trying to connect with postgres sql which is hosted at cantos machine on premise server. On windows machine we have installed the power bi gateway and where database is accessable. This error is been coming from app.powerbi.com. Please help us. 

 

 
Underlying error code: -2147467259
Underlying error message: Please install Npgsql version 4.0.10.0 or earlier.
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind: PostgreSQL
14 REPLIES 14
Nitin_1703
Regular Visitor

i am also facing same issue, whereas i am using single gateway for SQL & PG, SQL Reports are working fine, but PG Connection is not working with same error.

There is a bug in the gateway installers. It is missing the npgsql ADO drivers. Copy them over from the Desktop install.

I have already installed npsql3.2.6 but it's showing same error 

That is unrelated and unnecessary.  You need to copy the npgsql files from the Desktop install to the gateway install.

 

Alternatively, use this https://github.com/npgsql/npgsql/releases/tag/v4.0.10

Yes Now I am Connected but My Data tables are not Showing

Did you uninstall 3.2.6?

No I have just updated Version 4.0.10

you may want to clean that up to make sure there are no residuals of the older (or newer!) versions.

Yes You are right, I have just updated my desktop version now its showing Data.

Anonymous
Not applicable

The problem is been resolved by using ODBC connectivity and its not related to the version changes. Thanks for your support.

v-yuaj-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, it may be that the version you are currently using cannot match Power BI Service. You can try to install the previous version and then connect to the data source.

v-yuaj-msft_0-1612152912127.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

 

Anonymous
Not applicable

Its not the version the causes the problem. Its something else that is creating the issue.

lbendlin
Super User
Super User

Which Npgsql version is installed on the gateway?

Anonymous
Not applicable

The same version we are using. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors