Showing results for 
Search instead for 
Did you mean: 
Not applicable

PowerBI connection issue. The received certificate has expired



I am receiving the below error while trying to access SQL server (get data--> SQL server database).


Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The received certificate has expired.)


image (2).png

Also, when I check the logs I get the below error info:

"Microsoft.PowerBI.DataMovement.Pipeline.Diagnostics.MashupDataAccessValueException: Mashup expression evaluation error" .  The gateway was working fine before and now I get this error. I checked the certificate issued to the server  and looks fine.  I would appreciate if someone could  advise what could be missing or the correct spot where I can check to resolve this issue.


Super User
Super User

There can often be multiple certificates installed on a server. To check the one used by SQL Server you need to open SQL Server Configuration Manager, expand SQL Server Network Configuration, right-click Protocols for <server instance>, and then select Properties. On the Certificates tab you should see the details of the certificate that SQL Server is trying to use.


If the expiry date for that certificate is out of date you can find information here on how this should be setup.

Not applicable

Thank you for the reponse. I had checked the certificate navigating to SQL Server Network Configuration>Protocols for <server instance> Properties and looks all fine with the certificate. I also made sure that there is only one certificate that SQL server is using and it does have a valid expiry date untill 2020. 

Also, the fore encryption settings are set to "Yes". 
Just to be more clear what exactly Im doing is.. I am trying to 

1. Open PowerBI desktop on my local machine

2. Click on "Get Data".

3. Select SQL server database

4. And then getting the certificate error when I try to connect the SQL server after the window I pasted below:


The On-premises gateway is also connected and is up and running. 
I would appreciate any help on this.

Thank you.

So if the expiry date has not expired there are a couple of other things you could check.


Was the certificate updated recently? If so was the server restarted after the certificate was updated? If not try restarting SQL Server to make sure it is picking up the latest certificate.


There have been other reports of this issue. You could check the last response on this thread


Or as a last resort, if you have force encryption set at the server level you could change the data source option in your Power BI Reports to not require encryption. This means that the client will not double check the validity of the certificate, but the server setting will still ensure that the connection is encrypted.


You can check if the connections are actually encrypted by running the following SQL query

SELECT encrypt_option 
FROM sys.dm_exec_connections 

Otherwise you might need to ask this question on some SQL Server forums as this seems to be more of an issue with SQL Server than Power BI.

Not applicable

Yes, the certificate was new and I dint restart the services. So, I had restarted the services. However, the error still persist.


Changing the encryption settings for the  data source option in  Power BI Reports to not require encryption worked.

Power BI Desktop > Data Source Settings > uncheck the 'encrypt connections' check box (for the data source). 


Thanks you so much for your response.


For anyone looking for this, here is the link :






Helpful resources

PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!