Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago

Help please -- SSL Provider error / certificate has expired

Hi,

I'm receiving the below error message (I've hidden the DataSourcePath which was just the server,port;dbname).

The datasource is an on-premises SQL Server database. To test the user access I use SSMS to connect to the database and run a couple of queries. All works fine.

I have successfully added the SQL Server database to the On-Premises Data Gateway. So all looks like the refresh should work.

Why do I get the below error message?  What is it actaully telling me?  Do I need to add some sort of software to the Server where the On-Premises Data Gateway is installed.

Thanks in advance.

 

7 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi Anonymous,

     

    The error message suggests that there's a problem with the encryption configuration on the SQL Server. It might be just what the message says – that the server is configured with a certificate that has now expired. Or, it might be a different problem.

     

    1. Please edit the data source setting in Power BI Desktop and disable encryption to republish the report in order to avoid this problem.

     

     

    2. Update the on-premise data gateway to the latest version.

    3. If issue still persists, please share on-premise data gateway service log files (C:\Users\PBIEgwService\AppData\Local\Microsoft\on-premises data gateway\Gateway*.log) around the time error throws out with us. You can upload log files to your OneDrive and share the link here.

     

    Best Regards,
    QiuyunYu

    • Anonymous's avatar
      Anonymous
      Not applicable

      we had same issue,  we had a sql server certificate which expired and was not needed, 

      powerbi was working using the default encryption option and stopped working after the cert expired, we republished

      the powerbi dataset using unencrypted connection but gateway still tries to look for the certificate on this server

      below is the snippet of log, 

      we applied latest patch to gateway, 

      restart gateway service 

      recreated the powerbi data source , thinking it might be cached, 

       

      still its looking for the certifcate that is expired and no longer on the server

       

       

      -ba2c-fd7c1e21ae61 8AA61592 [DM.Pipeline.Diagnostics] Exception data: DM_ErrorDetailNameCode_UnderlyingErrorCode = <pi>-2147467259</pi>
      DM.EnterpriseGateway Error: 0 : 2019-02-23T02:40:31.0335409Z DM.EnterpriseGateway c6ed21b5-4db9-4cfb-adef-61f003a642d1 591a386d-db71-3b57-2621-f9eb069c807c MGCC 80c5f97e-414d-4a9a-ba2c-fd7c1e21ae61 4331972A [DM.Pipeline.Diagnostics] Exception data: DM_ErrorDetailNameCode_UnderlyingErrorMessage = <pi><pi>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.)</pi></pi>

      • JakeInUK's avatar
        JakeInUK
        Frequent Visitor

        I also had this problem. My workaround was to create an ODBC SQL connection instead; not ideal. It meant reconfiguring the Power BI model, but at least everything is refreshing again.

    • Mithun009's avatar
      Mithun009
      Frequent Visitor

      We were having the same issues and we made changes to the desktop and its not throwing up it there. When we published it on cloud, while trying to refresh it there under personal and enterprise gateway, its throwing the same error. Whats workaround for it on cloud?

  • We are having the same error on multiple different M365 Tenants. The connections are Sharepoint Online and Azure SQL connections. This is not only affecting one application. I see the health status on the microsoft Admin portal for Powerapps is healthy. 

    Is anyone else having the same issue? This issue began on the 16/11/2023.