Showing results for 
Search instead for 
Did you mean: 
nthaiseen123 Frequent Visitor
Frequent Visitor

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

Re: PowerBI connection issue. The received certificate has expired

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.

nthaiseen123 Frequent Visitor
Frequent Visitor

Re: PowerBI connection issue. The received certificate has expired

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.

Super User
Super User

Re: PowerBI connection issue. The received certificate has expired

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.

nthaiseen123 Frequent Visitor
Frequent Visitor

Re: PowerBI connection issue. The received certificate has expired

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

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 227 members 2,836 guests
Please welcome our newest community members: