cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerBI connection issue. The received certificate has expired

Hi,

 

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.

 

4 REPLIES 4
d_gosbell
Super User II
Super User II

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 https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/enable-encrypted-connections-... on how this should be setup.

Anonymous
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:

PBI2.PNG

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 https://community.powerbi.com/t5/Service/can-not-refresh-dataset-both-from-refresh-now-and-schedule/...

 

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.

Anonymous
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 :
https://social.technet.microsoft.com/Forums/en-US/1cff963b-d799-40b3-8f5b-30a1b5cb3e60/connecting-to...

 

Thanks

 

 

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.