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
MattiaFratello
Super User
Super User

Help with Power BI Standard Gateway Connection to Postgres

Hi everyone,

 

I'm connecting to Postgres using Power BI Desktop with no problems (both from my local machine and from a Virtual Machine).

I also have a gateway installed in the VM, and thanks to it I'm able to schedule refreshes from Oracle with no problems.

I'm facing a problem when trying to refresh PBI Semantic Models (in the Service) which are using Postgres.

The error I'm getting is the following:

Data source error[ValidateMarkupTags]{"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"[ccon]Please install Npgsql version 4.0.17.0</ip> or earlier.[/ccon]"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.ErrorCode","detail":{"type":1,"value":"10305"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourceKind","detail":{"type":1,"value":"PostgreSQL"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourcePath","detail":{"type":1,"value":"[ccon][ccon]<ip>XXX.XXX.XXX.XXX</ip>[/ccon]<ip><ip>XXX.XXX.XXX.XXX</ip></ip>;XXX[/ccon]"}},{"code":"Microsoft.Data.Mashup.ValueError.Reason","detail":{"type":1,"value":"DataSource.MissingClientLibrary"}}],"exceptionCulprit":1}}}

Any suggestions on how to install correctly Npgsql version 4.0.17.0?
I've tried from here https://github.com/npgsql/npgsql/releases/tag/v4.0.17 using the .msi but unsuccessfully. 

 

Thanks in advance

1 ACCEPTED SOLUTION
3 REPLIES 3
djurecicK2
Super User
Super User

You're welcome @MattiaFratello !

djurecicK2
Super User
Super User

You are my saviour!!! Kudos to you

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 Kudoed Authors