Forum Discussion
An exception occurred: Please install Npgsql version 4.0.10.0 or earlier.
- 2 years ago
You need a gateway, and you need to install the indicated PostGreSQL driver on the gateway. There is a well documented bug that the gateway installer is missing that driver. You need to borrow the driver files from your desktop setup and paste them into the ADO folder on the gateway.
- Anonymous2 years ago
Hi luqui_maps ,
Please refer to the following steps:
the PostgresSQL connector doesn't work out of the box, you need to do quite a few things first
1. Install Npgsql which allows .NET access to PostgresSQL. I installed it using the Pakagae Manager Console in Visual Studio; detailed instructions are here: https://www.nuget.org/packages/Npgsql/
You need to connect over SSL to AWS which isn't setup by default (on my Windows 10 machine anway)
2. Download the AWS public key from here https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
3. Convert that to a certificate using https://www.sslshopper.com/ssl-converter.html (convert to PKCS#7/P7B)
4. Import that certificate to the Trusted Room Certificate described here http://www.cs.virginia.edu/~gsw2c/GridToolsDir/Documentation/ImportTrustedCertificates.htm
5. Test access from Power BI desktop using the PostgresSQL connector and it should work
More details: Solved: The remote certificate is invalid according to the... - Microsoft Fabric Community
Solved: AWS RDS Postgres refresh from PowerBI service - th... - Microsoft Fabric Community
How to Get Your Question Answered Quickly
If it does not help, please provide more details.
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i followed the same steps, but still i am facing the same issue, unable to create a connection for postgres sql in power bi service.
Please install Npgsql version 4.0.10.0 or earlier.
i followed the same steps
which steps? Did you remember to restart the gateway service after copying the files?
- johnbasha332 years ago
Super User
lbendlin
quick Update: its a simple fix i made it work.
i had to install this in my Gateway cluster VM Npgsql version 4.0.10.0
and then restarted the gateway server.
this is a supported file for postgres sql, after that i am able to create connection successfully in power bi Service. 🙂