Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates

Qlik Replicate: SqlStat:[SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...)

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Nanda_Ravindra
Support
Support

Qlik Replicate: SqlStat:[SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...)

Last Update:

Feb 19, 2025 10:55:33 AM

Updated By:

Sonja_Bauernfeind

Created date:

Feb 19, 2025 10:54:28 AM

When running a Qlik Replicate CDC task from the Microsoft SQL Server source endpoint, you may get the below error, but the task continues to run despite being marked as errored. This is because the error is considered a recoverable error and the task eventually resumes fine once it finds the LSN in the next run.

Resolution

Edit the MS-SQL source endpoint setting and add the internal parameter afterConnectScript using the Qlik Replicate GUI.

  1. Go to Manage Endpoint Connections
  2. Open your MS-SQL source endpoint definition
  3. Open the Advanced tab
  4. Go to Internal Parameters 
  5. Add the internal parameter: afterConnectScript and set it todbcc traceon(2537)

    This traceon code will allow the session to read LSNs still in the online log but marked as replicated and inactive.
The Qlik Replicate user configured to read the MS-SQL must be a SYSADMIN

Possible Cause

A possible reason for this is that the task might be behind, and the online log is truncated, but the Replicate in the recovery attempt can find the LSN in the online/Active logs.

Related Content

 

Environment

Labels (1)
Version history
Last update:
‎2025-02-19 10:55 AM
Updated by: