The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have connected Postgre SQL with Power BI Services DataFlow but whenever I am refreshing the data I am getting the following error.
Error: Data Source Error : DataSource.Error: An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure.' DataSourceKind = PostgreSQL DataSourcePath = *****.*****.us-east-2.rds.amazonaws.com;*****. RootActivityId = 8c4464fd-b10d-44c3-a09f-e851954b3b5d.Param1 = DataSource.Error: An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure.' DataSourceKind = PostgreSQL DataSourcePath = *****.*****.us-east-2.rds.amazonaws.com;***** Request ID: 8f34e130-2e62-bc64-d136-6d7a205f8a8d.
If I use a gateway this error doesn't happen but I don't want to use a gateway for this connetion.
Hi Liu Yang,
Thank you for your comment.
My problem is not with power bi desktop it is with power bi online verison.
I am able to connected directly to postgre in power bi desktop verision. Also in the online version I am able to connect to postgre using a enterprise gateway.
If I am not using the gateway I am able to connect(after unchecking the enecrypted connection option) but, refresh is not working. If I click on the refresh I am getting the above erorr. I wanted to schedule refresh the database at every morning 2 am without keeping my laptop on.
Hi @rahulanandt ,
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
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
OR:
You can connect PostgreSQL using ODBC Connection.
This is the related document, you can view this content:
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
57 | |
25 | |
14 | |
12 | |
12 |
User | Count |
---|---|
108 | |
38 | |
28 | |
22 | |
22 |