<?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 How to RESUME Hana trigger-based CDC task in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/ta-p/1835839</link>
    <description>&lt;P&gt;In some scenarios we need stop and resume a task. However for Hana trigger-based CDC task, if the option "&lt;SPAN&gt;Use log table&lt;/SPAN&gt;" is enabled, resuming the task, or while you trying to startup the task from a given timestamp, you may get the below information (with SOURCE_CAPTURE set to Trace):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2021-09-09T22:12:34:881897 [SOURCE_CAPTURE  ]T:  Resume from 'timestamp:2021-09-09T20:30:00'
2021-09-09T22:12:34:881897 [SOURCE_CAPTURE  ]T:  Start from timestamp is not supported in the Log-Table mode&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Replicate versions 6.6/7.0&lt;/LI&gt;
&lt;LI&gt;Replicate version&amp;nbsp; &amp;nbsp;2021.5&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The option "Use log table" is enabled by an Internal Parameter in versions 6.6/7.0. In version 2021.5 it's in GUI property like below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1631590321925.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61864i5DF3DC2698499580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1631590321925.png" alt="john_wang_0-1631590321925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;Start the task by source change position, rather than the timestamp. Here is a query to prepare the stream position in the correct format by a timestamp:&lt;/P&gt;
&lt;P&gt;;Get the stream position by timestamp&lt;BR /&gt;;Before using the query, please replace the &lt;EM&gt;$SCHEMA$&lt;/EM&gt; to your artifacts schema where the table "attrep_cdc_log" is located.&lt;BR /&gt;;The timestamp format is '&lt;EM&gt;YYYY-MM-DD HH:MM:SS&lt;/EM&gt;' (Note, the timestamp should be the one on HAHA Server side, not the replicate server's)&lt;BR /&gt;;The range will be from the first (not included) event that happened after the time specified to the last (included) event in the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT 'V1:'||MIN("$rowid$")||':'||MAX("$rowid$")||':0:'||MIN("$rowid$") AS "STREAM POSITION" from "$SCHEMA$"."attrep_cdc_log" WHERE "CHANGE_EVENT_TIME" &amp;gt;= 'YYYY-MM-DD HH:MM:SS'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A unique row will be returned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;V1:670636:686112:0:670333&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in the Replicate UI, start the task by source change stream position:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_1-1631591125242.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61865i332D7329AA2A0CCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_1-1631591125242.png" alt="john_wang_1-1631591125242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Salesforce support case #02260694.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 15:33:53 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2022-12-22T15:33:53Z</dc:date>
    <item>
      <title>How to RESUME Hana trigger-based CDC task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/ta-p/1835839</link>
      <description>&lt;P&gt;In some scenarios we need stop and resume a task. However for Hana trigger-based CDC task, if the option "&lt;SPAN&gt;Use log table&lt;/SPAN&gt;" is enabled, resuming the task, or while you trying to startup the task from a given timestamp, you may get the below information (with SOURCE_CAPTURE set to Trace):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2021-09-09T22:12:34:881897 [SOURCE_CAPTURE  ]T:  Resume from 'timestamp:2021-09-09T20:30:00'
2021-09-09T22:12:34:881897 [SOURCE_CAPTURE  ]T:  Start from timestamp is not supported in the Log-Table mode&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Replicate versions 6.6/7.0&lt;/LI&gt;
&lt;LI&gt;Replicate version&amp;nbsp; &amp;nbsp;2021.5&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The option "Use log table" is enabled by an Internal Parameter in versions 6.6/7.0. In version 2021.5 it's in GUI property like below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1631590321925.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61864i5DF3DC2698499580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1631590321925.png" alt="john_wang_0-1631590321925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;Start the task by source change position, rather than the timestamp. Here is a query to prepare the stream position in the correct format by a timestamp:&lt;/P&gt;
&lt;P&gt;;Get the stream position by timestamp&lt;BR /&gt;;Before using the query, please replace the &lt;EM&gt;$SCHEMA$&lt;/EM&gt; to your artifacts schema where the table "attrep_cdc_log" is located.&lt;BR /&gt;;The timestamp format is '&lt;EM&gt;YYYY-MM-DD HH:MM:SS&lt;/EM&gt;' (Note, the timestamp should be the one on HAHA Server side, not the replicate server's)&lt;BR /&gt;;The range will be from the first (not included) event that happened after the time specified to the last (included) event in the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT 'V1:'||MIN("$rowid$")||':'||MAX("$rowid$")||':0:'||MIN("$rowid$") AS "STREAM POSITION" from "$SCHEMA$"."attrep_cdc_log" WHERE "CHANGE_EVENT_TIME" &amp;gt;= 'YYYY-MM-DD HH:MM:SS'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A unique row will be returned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;V1:670636:686112:0:670333&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in the Replicate UI, start the task by source change stream position:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_1-1631591125242.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61865i332D7329AA2A0CCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_1-1631591125242.png" alt="john_wang_1-1631591125242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Salesforce support case #02260694.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/ta-p/1835839</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-12-22T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to RESUME Hana trigger-based CDC task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/tac-p/2121644#M10250</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this process still the way to go with Replicate 2022.11.0.628? Asking because we have a HANA trigger-based CDC task and we were hoping that we could just use EM API in a script that would automate the stop and resume actions.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 19:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/tac-p/2121644#M10250</guid>
      <dc:creator>Al_gar</dc:creator>
      <dc:date>2023-09-23T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to RESUME Hana trigger-based CDC task</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/tac-p/2121682#M10253</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162751"&gt;@Al_gar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the following up.&lt;/P&gt;
&lt;P&gt;Yes, it should work. Feel free to let us know if you need any additional assistance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 07:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-RESUME-Hana-trigger-based-CDC-task/tac-p/2121682#M10253</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-09-24T07:45:58Z</dc:date>
    </item>
  </channel>
</rss>

