<?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>topic QLIK Task still Running but stop to Apply Changes for all tables in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/QLIK-Task-still-Running-but-stop-to-Apply-Changes-for-all-tables/m-p/2526439#M14799</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;After 4 days with the task running very well it pause the sync with Azure, caching a lot of transactions on disk ( zero Applied Throughput and high Apply Latency ).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_0-1754488662848.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182580iBD5AB781339EF34E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leandro_Medeiros_0-1754488662848.png" alt="Leandro_Medeiros_0-1754488662848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has paused the sync at 7:52 but the Task still up ( in running state ). Below printscreen was took near 9:45&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_1-1754488662850.png" style="width: 579px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182581i5C7CD928A55CA22F/image-dimensions/579x139?v=v2" width="579" height="139" role="button" title="Leandro_Medeiros_1-1754488662850.png" alt="Leandro_Medeiros_1-1754488662850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error identified on QLIK Task at 07:51:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_4-1754489498592.png" style="width: 495px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182584i4466E8D17B76FE39/image-dimensions/495x252?v=v2" width="495" height="252" role="button" title="Leandro_Medeiros_4-1754489498592.png" alt="Leandro_Medeiros_4-1754489498592.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking the Azure SQL side we´ve detected high CPU usage and found one blocked session.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_3-1754488662856.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182583i08681BB4486339D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leandro_Medeiros_3-1754488662856.jpeg" alt="Leandro_Medeiros_3-1754488662856.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After identified the blocked DDL, we stopped that Task, killed the blocked SQL session_id and started the Task in Resume mode to try to recover all uncommited transactions, but QLIK paused again with the same or similar DDL.&lt;/P&gt;&lt;P&gt;Probably by corrupted date in this&amp;nbsp; control table [TARGET_APPLY&amp;nbsp;&amp;nbsp;&amp;nbsp; ]E:&amp;nbsp; Failed to get table xxxxxx.attrep_changes01BDB868E4E385DA [1022502].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the last option/action we stopped SPACE Task again and did a new Full Load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL script to found the blocked session is:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.session_id,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.status,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.start_time,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.cpu_time AS 'cpu_time_ms',&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.logical_reads,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.dop,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.login_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.host_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.program_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; object_name(st.objectid, st.dbid) AS 'ObjectName',&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; REPLACE(REPLACE(SUBSTRING(st.text, (req.statement_start_offset/2) + 1,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((CASE req.statement_end_offset WHEN -1 THEN DATALENGTH(st.text)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE req.statement_end_offset END - req.statement_start_offset)/2) + 1),&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHAR(10), ' '), CHAR(13), ' ') AS statement_text,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; qp.query_plan,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; qsx.query_plan AS query_plan_with_in_flight_statistics&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;FROM sys.dm_exec_requests AS req&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;JOIN sys.dm_exec_sessions AS s ON req.session_id = s.session_id&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;CROSS APPLY sys.dm_exec_sql_text(req.sql_handle) AS st&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;OUTER APPLY sys.dm_exec_query_plan(req.plan_handle) AS qp&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;OUTER APPLY sys.dm_exec_query_statistics_xml(req.session_id) AS qsx&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ORDER BY req.cpu_time DESC;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, do you have any suggestion or idea about what is happing?&lt;/P&gt;&lt;P&gt;Any help will be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Leandro Medeiros&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 14:18:20 GMT</pubDate>
    <dc:creator>Leandro_Medeiros</dc:creator>
    <dc:date>2025-08-06T14:18:20Z</dc:date>
    <item>
      <title>QLIK Task still Running but stop to Apply Changes for all tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/QLIK-Task-still-Running-but-stop-to-Apply-Changes-for-all-tables/m-p/2526439#M14799</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;After 4 days with the task running very well it pause the sync with Azure, caching a lot of transactions on disk ( zero Applied Throughput and high Apply Latency ).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_0-1754488662848.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182580iBD5AB781339EF34E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leandro_Medeiros_0-1754488662848.png" alt="Leandro_Medeiros_0-1754488662848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has paused the sync at 7:52 but the Task still up ( in running state ). Below printscreen was took near 9:45&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_1-1754488662850.png" style="width: 579px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182581i5C7CD928A55CA22F/image-dimensions/579x139?v=v2" width="579" height="139" role="button" title="Leandro_Medeiros_1-1754488662850.png" alt="Leandro_Medeiros_1-1754488662850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error identified on QLIK Task at 07:51:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_4-1754489498592.png" style="width: 495px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182584i4466E8D17B76FE39/image-dimensions/495x252?v=v2" width="495" height="252" role="button" title="Leandro_Medeiros_4-1754489498592.png" alt="Leandro_Medeiros_4-1754489498592.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking the Azure SQL side we´ve detected high CPU usage and found one blocked session.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leandro_Medeiros_3-1754488662856.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182583i08681BB4486339D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leandro_Medeiros_3-1754488662856.jpeg" alt="Leandro_Medeiros_3-1754488662856.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After identified the blocked DDL, we stopped that Task, killed the blocked SQL session_id and started the Task in Resume mode to try to recover all uncommited transactions, but QLIK paused again with the same or similar DDL.&lt;/P&gt;&lt;P&gt;Probably by corrupted date in this&amp;nbsp; control table [TARGET_APPLY&amp;nbsp;&amp;nbsp;&amp;nbsp; ]E:&amp;nbsp; Failed to get table xxxxxx.attrep_changes01BDB868E4E385DA [1022502].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the last option/action we stopped SPACE Task again and did a new Full Load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL script to found the blocked session is:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;SELECT&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.session_id,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.status,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.start_time,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.cpu_time AS 'cpu_time_ms',&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.logical_reads,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; req.dop,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.login_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.host_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; s.program_name,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; object_name(st.objectid, st.dbid) AS 'ObjectName',&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; REPLACE(REPLACE(SUBSTRING(st.text, (req.statement_start_offset/2) + 1,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((CASE req.statement_end_offset WHEN -1 THEN DATALENGTH(st.text)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE req.statement_end_offset END - req.statement_start_offset)/2) + 1),&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CHAR(10), ' '), CHAR(13), ' ') AS statement_text,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; qp.query_plan,&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; qsx.query_plan AS query_plan_with_in_flight_statistics&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;FROM sys.dm_exec_requests AS req&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;JOIN sys.dm_exec_sessions AS s ON req.session_id = s.session_id&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;CROSS APPLY sys.dm_exec_sql_text(req.sql_handle) AS st&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;OUTER APPLY sys.dm_exec_query_plan(req.plan_handle) AS qp&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;OUTER APPLY sys.dm_exec_query_statistics_xml(req.session_id) AS qsx&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ORDER BY req.cpu_time DESC;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, do you have any suggestion or idea about what is happing?&lt;/P&gt;&lt;P&gt;Any help will be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Leandro Medeiros&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 14:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/QLIK-Task-still-Running-but-stop-to-Apply-Changes-for-all-tables/m-p/2526439#M14799</guid>
      <dc:creator>Leandro_Medeiros</dc:creator>
      <dc:date>2025-08-06T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: QLIK Task still Running but stop to Apply Changes for all tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/QLIK-Task-still-Running-but-stop-to-Apply-Changes-for-all-tables/m-p/2526469#M14802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/200866"&gt;@Leandro_Medeiros&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;In 'Batch Optimized Apply' mode, Qlik Replicate creates a temporary table named &lt;CODE&gt;attrep_changes&lt;/CODE&gt; and performs a preprocessing action to group transactions into batches efficiently. According to the error message:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;[TARGET_APPLY] E: Failed to get table xxxxxx.attrep_changes01BDB868E4E385DA&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;It seems that Qlik Replicate is unable to locate the net change table. Please set the TRACE/VERBOSE level on &lt;CODE&gt;TARGET_APPLY&lt;/CODE&gt; and check the task log to determine why Replicate failed to find the table.&lt;BR /&gt;&lt;BR /&gt;If you are still unable to identify the root cause, please create a support ticket.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 02:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/QLIK-Task-still-Running-but-stop-to-Apply-Changes-for-all-tables/m-p/2526469#M14802</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2025-08-07T02:03:00Z</dc:date>
    </item>
  </channel>
</rss>

