Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello everyone.
I am having an issue connecting to my data source from the app.powerbi with the intention of having the data constantly updated. I want to connect to my data warehouse, which is in PostgreSQL. The error that I have is the following:
Failed to update data source credentials: An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure.'
I managed to connect from the desktop APP, which I had the same problem but I solved it by turning off the encrypted connection because we do not use SSL and worked. I edited the following in the data source in PBI Desktop:
But then, in order to set the schedule refresh in the web app, I try to log in again to set it up and I have the issue again:
Is there a way to do the same that I did in PBI desktop but in the web app and disable the encryption or any other way to make this work?
Thank you so much!
Hi @Anonymous ,
Have you republish the report after you uncheck the encrypt connection in Power BI desktop?Please try to republish it.
And please refer to https://community.powerbi.com/t5/Desktop/The-remote-certificate-is-invalid-according-to-the-validation/td-p/531475 to get ssl connection worked.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hello @v-deddai1-msft.
I even created new reports for testing but nothing works! We also installed SSL into our datawarehouse and also did not work, with and without encrypted connection tick on or off. I also installed the certificate into my windows system. And nothing.
The thing, is if the connection is not encrypted, I cannot set automatic updates of the data for the other people of the company that want to see the reports.
Is any way to have this connection working, with the automatic updates, WITHOUT using a gateway?
It's just connecting a DB to PBI... I really do not understand why this is happening.
Thanks.
Ricard
This worked for me...
Install ODBC
Install the ODBC driver for the DB you are trying to connect to. In my case, I had to install the ODBC drive for PostgreSQL Unicde(x64). You can get the msi here. In Windows open the ODBC Data Source Administrator by going to C:\Windows\SysWOW64 and click twice on odbcad32.exe this will open the 64bit version even though in the title it says (32-bit). Choose Add and choose the ODBC driver you installed. Provide the information and credentials for the DB you are wanting to connect to. You should see the ODBC driver show up in the list of User Data Sources. I also added it to the System DSN sources as well for good measure.
In Power BI
In Power BI, Get Data> More > Other > ODBC and select the ODBC driver you installed. You will then be able to select the table you wish to connect to.
this isn't perfect solution. It's like making connection from on-premises gateway, what means you can autorefresh dataset only when your local machine is online (turned on), which isn't best case on day-to-day basis. And there is also another limitation: you can't use DirectQuery option for live data streaming...
I am facing the same issue, everything works on PBI desktop, but got the remote cert issue after publishing.
@Anonymous did you solve it eventually? 🙂
Updates:
Sovled the problem by adopting the on-premises data gateway.
Details:
When you connect to a database using an encrypted connection, the server sends you a certificate (typically a self-signed certificate).
This certificate is clearly trusted by your Power BI Desktop installation, as it allows you to make an encrypted connection, and retrieve data.
This certificate is not trusted by the servers running the Power BI Service, which is why this error message is shown.
Your best option is to use an On-Premises Data Gateway to connect to this PostgreSql server, and add the certificate into the Trusted Root store on the Gateway machine. The links referenced in the summary for this issue show how to do that.
Other options, which I include for completeness (but do not recommend), include:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.