<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Replicate: SqlStat:[SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...) in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SqlStat-SQL-Server-Invalid-parameter-passed-to/ta-p/2506276</link>
    <description>&lt;P&gt;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&amp;nbsp;&lt;SPAN&gt;despite being marked as errored. This is because the&amp;nbsp;error is considered a recoverable error and the task eventually resumes fine once it&amp;nbsp;finds the LSN in the next run.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;E&lt;/SPAN&gt;dit the MS-SQL source endpoint setting and add the internal parameter&amp;nbsp;&lt;STRONG&gt;afterConnectScript&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;using the Qlik&amp;nbsp;Replicate GUI.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Manage Endpoint Connections&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Open your MS-SQL source endpoint definition&lt;/LI&gt;
&lt;LI&gt;Open the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Advanced tab&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal Parameters&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Add the internal parameter:&lt;STRONG&gt;&lt;SPAN&gt; afterConnectScript &lt;/SPAN&gt;&lt;/STRONG&gt;and set it to&lt;STRONG&gt;&lt;SPAN&gt;dbcc traceon(2537)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;This &lt;STRONG&gt;traceon&lt;/STRONG&gt; code will allow the session to read LSNs still in the online log but marked as replicated and inactive.&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE class="Quote"&gt;The Qlik Replicate user configured to read the MS-SQL must be a SYSADMIN&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Possible Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SQL-Server-Tasks-Fails-with-Error-Invalid/ta-p/2145035" target="_blank" rel="noopener"&gt;Qlik Replicate: SQL Server Tasks Fails with Error: Invalid parameter passed to OpenRowset(DBLog, ...)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.qlik.com/t5/Official-Support-Articles/Error-SQL-Server-Invalid-parameter-passed-to-OpenRowset-DBLog/ta-p/1833494" target="_blank" rel="noopener"&gt;Qlik Replicate Error: [SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener" aria-describedby="hoverCardLink_0-tooltip-element" aria-controls="hoverCardLink_0-tooltip-element"&gt;#Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Microsoft SQL Server&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 19 Feb 2025 15:55:33 GMT</pubDate>
    <dc:creator>Nanda_Ravindra</dc:creator>
    <dc:date>2025-02-19T15:55:33Z</dc:date>
    <item>
      <title>Qlik Replicate: SqlStat:[SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SqlStat-SQL-Server-Invalid-parameter-passed-to/ta-p/2506276</link>
      <description>&lt;P&gt;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&amp;nbsp;&lt;SPAN&gt;despite being marked as errored. This is because the&amp;nbsp;error is considered a recoverable error and the task eventually resumes fine once it&amp;nbsp;finds the LSN in the next run.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;E&lt;/SPAN&gt;dit the MS-SQL source endpoint setting and add the internal parameter&amp;nbsp;&lt;STRONG&gt;afterConnectScript&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;using the Qlik&amp;nbsp;Replicate GUI.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Manage Endpoint Connections&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Open your MS-SQL source endpoint definition&lt;/LI&gt;
&lt;LI&gt;Open the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Advanced tab&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal Parameters&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Add the internal parameter:&lt;STRONG&gt;&lt;SPAN&gt; afterConnectScript &lt;/SPAN&gt;&lt;/STRONG&gt;and set it to&lt;STRONG&gt;&lt;SPAN&gt;dbcc traceon(2537)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;This &lt;STRONG&gt;traceon&lt;/STRONG&gt; code will allow the session to read LSNs still in the online log but marked as replicated and inactive.&lt;/LI&gt;
&lt;/OL&gt;
&lt;BLOCKQUOTE class="Quote"&gt;The Qlik Replicate user configured to read the MS-SQL must be a SYSADMIN&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Possible Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SQL-Server-Tasks-Fails-with-Error-Invalid/ta-p/2145035" target="_blank" rel="noopener"&gt;Qlik Replicate: SQL Server Tasks Fails with Error: Invalid parameter passed to OpenRowset(DBLog, ...)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.qlik.com/t5/Official-Support-Articles/Error-SQL-Server-Invalid-parameter-passed-to-OpenRowset-DBLog/ta-p/1833494" target="_blank" rel="noopener"&gt;Qlik Replicate Error: [SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener" aria-describedby="hoverCardLink_0-tooltip-element" aria-controls="hoverCardLink_0-tooltip-element"&gt;#Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Microsoft SQL Server&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 19 Feb 2025 15:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-SqlStat-SQL-Server-Invalid-parameter-passed-to/ta-p/2506276</guid>
      <dc:creator>Nanda_Ravindra</dc:creator>
      <dc:date>2025-02-19T15:55:33Z</dc:date>
    </item>
  </channel>
</rss>

