<?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 and Microsoft SQL Server (MS-CDC) source Endpoint: How to Startup task using stored stream position in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Microsoft-SQL-Server-MS-CDC-source-Endpoint/ta-p/2519934</link>
    <description>&lt;P&gt;In certain scenarios, you may need to restart a Qlik Replicate task from a previously saved stream position, specifically a known LSN or SCN, rather than reload the entire task. This guide provides step-by-step instructions on how to resume a Microsoft SQL Server (MS-CDC) task from a stored stream position.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps to Start a Task from a Stored Stream Position&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Locate the Previous Stored Stream Position&lt;BR /&gt;&lt;BR /&gt;Open the task log file and search for the final saved stream position. You should see an entry like the following: &lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[SORTER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]I: Final saved task state. Stream position&amp;nbsp;&lt;STRONG&gt;000000D8000062D00003&lt;/STRONG&gt;:0:2147483647, Source id 12, next Target id 37, confirmed Target id 33, last source timestamp 1748932926987000 &amp;nbsp;(sorter.c:777)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;In this example, the relevant stream position is:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;000000D8000062D00003&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stream position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180997i3AE5B364477A45A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="stream position.png" alt="stream position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Start the Task from This Position&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;In the Qlik Replicate Console, open the relevant task&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;Task Settings&lt;/STRONG&gt; --&amp;gt; &lt;STRONG&gt;Advanced Run Options&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Tables are already loaded. Start processing changes from&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Source change position&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;(e.g. SCN or LSN)&amp;nbsp;&lt;/STRONG&gt;and enter the previously located &lt;STRONG&gt;Stream Position&amp;nbsp;&lt;/STRONG&gt;(&lt;FONT face="courier new,courier"&gt;000000D8000062D00003&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="source change position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180998i889FBB089DCD3CD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="source change position.png" alt="source change position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Validate in the Task Log&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;After starting the task, check the log file to confirm that the task is starting from the specified stream position:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[TASK_MANAGER &amp;nbsp; &amp;nbsp;]I: Task 'SQL-to-SQL__MS-CDC' running CDC only in fresh start mode, starting from log position: 'position:&lt;STRONG&gt;000000D8000062D00003&lt;/STRONG&gt;'. &amp;nbsp;(replicationtask.c:1847)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This confirms that Qlik Replicate is correctly picking up from the desired point in the transaction log.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="starting from log position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180999i57150BF5CB039CF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="starting from log position.png" alt="starting from log position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Notes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;This method applies specifically to tasks using Microsoft SQL Server (MS-CDC) as the source.&lt;/LI&gt;
&lt;LI&gt;It is useful in scenarios such as resuming a failed task, reprocessing a limited set of changes, or disaster recovery testing.&lt;/LI&gt;
&lt;LI&gt;Always validate the stream position against the source database's current log retention to ensure the LSN is still available.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate, all versions&lt;/LI&gt;
&lt;LI&gt;SQL Server, all supported versions&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 03 Jun 2025 12:58:12 GMT</pubDate>
    <dc:creator>sureshkumar</dc:creator>
    <dc:date>2025-06-03T12:58:12Z</dc:date>
    <item>
      <title>Qlik Replicate and Microsoft SQL Server (MS-CDC) source Endpoint: How to Startup task using stored stream position</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Microsoft-SQL-Server-MS-CDC-source-Endpoint/ta-p/2519934</link>
      <description>&lt;P&gt;In certain scenarios, you may need to restart a Qlik Replicate task from a previously saved stream position, specifically a known LSN or SCN, rather than reload the entire task. This guide provides step-by-step instructions on how to resume a Microsoft SQL Server (MS-CDC) task from a stored stream position.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps to Start a Task from a Stored Stream Position&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Locate the Previous Stored Stream Position&lt;BR /&gt;&lt;BR /&gt;Open the task log file and search for the final saved stream position. You should see an entry like the following: &lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[SORTER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]I: Final saved task state. Stream position&amp;nbsp;&lt;STRONG&gt;000000D8000062D00003&lt;/STRONG&gt;:0:2147483647, Source id 12, next Target id 37, confirmed Target id 33, last source timestamp 1748932926987000 &amp;nbsp;(sorter.c:777)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;In this example, the relevant stream position is:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;000000D8000062D00003&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stream position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180997i3AE5B364477A45A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="stream position.png" alt="stream position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Start the Task from This Position&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;In the Qlik Replicate Console, open the relevant task&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;Task Settings&lt;/STRONG&gt; --&amp;gt; &lt;STRONG&gt;Advanced Run Options&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Tables are already loaded. Start processing changes from&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Source change position&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;(e.g. SCN or LSN)&amp;nbsp;&lt;/STRONG&gt;and enter the previously located &lt;STRONG&gt;Stream Position&amp;nbsp;&lt;/STRONG&gt;(&lt;FONT face="courier new,courier"&gt;000000D8000062D00003&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="source change position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180998i889FBB089DCD3CD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="source change position.png" alt="source change position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Validate in the Task Log&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;After starting the task, check the log file to confirm that the task is starting from the specified stream position:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[TASK_MANAGER &amp;nbsp; &amp;nbsp;]I: Task 'SQL-to-SQL__MS-CDC' running CDC only in fresh start mode, starting from log position: 'position:&lt;STRONG&gt;000000D8000062D00003&lt;/STRONG&gt;'. &amp;nbsp;(replicationtask.c:1847)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This confirms that Qlik Replicate is correctly picking up from the desired point in the transaction log.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="starting from log position.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180999i57150BF5CB039CF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="starting from log position.png" alt="starting from log position.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Notes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;This method applies specifically to tasks using Microsoft SQL Server (MS-CDC) as the source.&lt;/LI&gt;
&lt;LI&gt;It is useful in scenarios such as resuming a failed task, reprocessing a limited set of changes, or disaster recovery testing.&lt;/LI&gt;
&lt;LI&gt;Always validate the stream position against the source database's current log retention to ensure the LSN is still available.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate, all versions&lt;/LI&gt;
&lt;LI&gt;SQL Server, all supported versions&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 03 Jun 2025 12:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Microsoft-SQL-Server-MS-CDC-source-Endpoint/ta-p/2519934</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2025-06-03T12:58:12Z</dc:date>
    </item>
  </channel>
</rss>

