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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
johnpjustus
Helper IV
Helper IV

Dataflow connection to PostgreSQL database - Please install Npgsql version 4.0.10.0 or earlier

Hi ,

We have On-Premise PostgreSQL database and I am trying to connect to it through dataflow from PowerBI service. I see the following error.

An exception occurred: Please install Npgsql version 4.0.10.0 or earlier

 

Does anyone know what this error means?

 

Thanks,

John

1 ACCEPTED SOLUTION

Please ignore, I figured it out. I installed on Npgsql provider on the gateway machine and then it worked.

Thanks

 

View solution in original post

4 REPLIES 4
bconcha
New Member

I Already installed npgsql 4.0.10 on ec2 machine (tried with both options) and still got the same error trying to configure my gateway. 

In details it says:

name_of_gateway: Please install Npgsql version 4.0.10.0 or earlier.

Anonymous
Not applicable

Hi  @johnpjustus ,

 

Based on your description, it may be that the version you are currently using cannot match Power BI Service,please "The installed database provider 'Npgsql' targets an incompatible .NET Framework. Please install Npgsql version 4.0.10.0 or earlier" and make sure that you select NpgSQL GAC Installation.Then restart the pc.

This is the related document, you can view this content:

Solved: Gateway error connecting to PostgreSQL - Microsoft Power BI Community

Solved: Error DataSource.MissingClientLibrary PostgreSQL ... - Microsoft Power BI Community

Solved: Configure Gateway to connect to PostgreSQL - Microsoft Power BI Community

 

Best Regards,

Liu Yang

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

Thanks Liu for the information. Do I  install Npgsql version 4.0.10.0 or earlier on the PostgreSQL database server?

But when connecting from PBI desktop to the PostgreSQL database there are no issues.

 

Please ignore, I figured it out. I installed on Npgsql provider on the gateway machine and then it worked.

Thanks

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.