Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
Megha_More
Partner - Creator
Partner - Creator

Getting error of ODBC drive-MSSQL as a target

Hi Team,

We are using MSSQL as a target. But getting error regarding ODBC drive which is already installed on replicate machine

Error:


SYS-E-HTTPFAIL, Cannot connect to sql server.
SYS,General_Exception,Cannot connect to sql server , sqlstate:08001 NativeError:-2146893016 Message:[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: The received certificate has expired.

Task Name replication task encountered the following error:
Creating Metadata Manager's utility components failed Cannot create the target utility component failed while preparing stream component 'Task Name'.
Cannot connect to SQL Serv
RetCode: SQL_ERRO SqlState:08001 NativeError:- 2146893022 Message:[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider:The target principal name is incorrect.

Regards,

Megha

Labels (2)
1 Solution

Accepted Solutions
OritA
Support
Support

Hi Megha, 

It seems that the problem you are facing is since your certificate had expired (as stated in the error):

NativeError:-2146893016 Message:[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: The received certificate has expired.

To solve it please try to add the following internal parameter to the MS SQL endpoint:  useTrustServerCertificate

and stop and resume the task so that it will take into effect. If after this change the problem perists please open a case and provide the task logs with the task diagnostic package.

Thanks & Regards,

Orit

 

 

View solution in original post

4 Replies
OritA
Support
Support

Hi Megha, 

It seems that the problem you are facing is since your certificate had expired (as stated in the error):

NativeError:-2146893016 Message:[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: The received certificate has expired.

To solve it please try to add the following internal parameter to the MS SQL endpoint:  useTrustServerCertificate

and stop and resume the task so that it will take into effect. If after this change the problem perists please open a case and provide the task logs with the task diagnostic package.

Thanks & Regards,

Orit

 

 

DesmondWOO
Support
Support

Hi @Megha_More ,

Please try to test your certificate through the ODBC DSN. 

Regards,
Desmond

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
Megha_More
Partner - Creator
Partner - Creator
Author

Hi @DesmondWOO ,

We are able to test the ODBC DSN.

 

Regards,

Megha

Megha_More
Partner - Creator
Partner - Creator
Author

Hi @OritA ,

Thank You !! Issue has been resolved after adding the internal parameter.

 

Regards,

Megha