<?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 Replicate causing 2 Different Tasks on same Database to block in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517674#M14311</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a SQL Server Target Database which contains over 50 tables. We are seeing that Qlik is blocking itself, usually one of the tasks fail&lt;/P&gt;&lt;P&gt;Scenario&lt;BR /&gt;Qlik Task 1 : is a Full + CDC task which replicates data to table A&lt;BR /&gt;Qlik Task 2 : is a Full Load only task scheduled a few times a day using Qlik Replicate's scheduler which Truncates the table and performs a full load each time&lt;BR /&gt;&lt;BR /&gt;What we have seen in that the TRUNCATE task (Task 2 : Full Load only task) when it kicks off by the scheduler gets blocked by the BULK INSERT of Task 1. Why is this happening as Task 1 and Task 2 is replicating data to 2 different tables even though they are in the same database&lt;/P&gt;&lt;P&gt;Screenshot Attached shows SPID 544 - Task 2 (TRUNCATE Full Load Only being blocked by SPID 546 of Task 1 (Full Load + CDC). As mentioned they are replicating to two different tables in the same database&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Neetz22&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 15:39:48 GMT</pubDate>
    <dc:creator>Nitesh_22</dc:creator>
    <dc:date>2025-05-13T15:39:48Z</dc:date>
    <item>
      <title>Qlik Replicate causing 2 Different Tasks on same Database to block</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517674#M14311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a SQL Server Target Database which contains over 50 tables. We are seeing that Qlik is blocking itself, usually one of the tasks fail&lt;/P&gt;&lt;P&gt;Scenario&lt;BR /&gt;Qlik Task 1 : is a Full + CDC task which replicates data to table A&lt;BR /&gt;Qlik Task 2 : is a Full Load only task scheduled a few times a day using Qlik Replicate's scheduler which Truncates the table and performs a full load each time&lt;BR /&gt;&lt;BR /&gt;What we have seen in that the TRUNCATE task (Task 2 : Full Load only task) when it kicks off by the scheduler gets blocked by the BULK INSERT of Task 1. Why is this happening as Task 1 and Task 2 is replicating data to 2 different tables even though they are in the same database&lt;/P&gt;&lt;P&gt;Screenshot Attached shows SPID 544 - Task 2 (TRUNCATE Full Load Only being blocked by SPID 546 of Task 1 (Full Load + CDC). As mentioned they are replicating to two different tables in the same database&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Neetz22&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 15:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517674#M14311</guid>
      <dc:creator>Nitesh_22</dc:creator>
      <dc:date>2025-05-13T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate causing 2 Different Tasks on same Database to block</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517849#M14331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/311962"&gt;@Nitesh_22&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Even though Task 1 and Task 2 are targeting different tables, the issue could be due to SQL Server locking behavior. Try to use&amp;nbsp;lock monitor query to observe real time blocking&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Naren&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 02:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517849#M14331</guid>
      <dc:creator>narendersarva</dc:creator>
      <dc:date>2025-05-15T02:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate causing 2 Different Tasks on same Database to block</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517862#M14336</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Neetz22,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/311962"&gt;@Nitesh_22&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="77" data-end="313"&gt;I'm not certain about the exact cause of the locking conflict. To investigate further, please open a support ticket and include the verbose task log files. Our support team will be happy to analyze the behavior and provide confirmation.&lt;/P&gt;
&lt;P data-start="315" data-end="413"&gt;As an alternative workaround, you can add the following &lt;STRONG&gt;internal parameter&lt;/STRONG&gt; to the target endpoint:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;$info.query_syntax.truncate_table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;set its value to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;DELETE FROM ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if this approach works for you.&lt;/P&gt;
&lt;P&gt;Note: Be aware that replacing &lt;STRONG&gt;TRUNCATE TABLE&lt;/STRONG&gt; with &lt;STRONG&gt;DELETE&lt;/STRONG&gt; can have significant impacts:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;DELETE&lt;/STRONG&gt; operations typically take much longer than &lt;STRONG&gt;TRUNCATE TABLE&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;DELETE&lt;/STRONG&gt; is always fully logged in the SQL Server transaction log (TLOG).&lt;/LI&gt;
&lt;LI&gt;Unlike Oracle, SQL Server does not support a &lt;STRONG&gt;NOLOGGING&lt;/STRONG&gt; option for DELETE.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know if you have any questions or need assistance with the configuration.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 05:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-causing-2-Different-Tasks-on-same-Database-to/m-p/2517862#M14336</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-15T05:25:12Z</dc:date>
    </item>
  </channel>
</rss>

