<?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 table with changing PKs causing latency and Error creating Net Changes in Batch Optimized Apply mode in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-table-with-changing-PKs-causing-latency-and-Error/ta-p/1951889</link>
    <description>&lt;P&gt;&lt;FONT color="#339966"&gt;Task Details:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Source - Oracle&lt;BR /&gt;Target - Microsoft Azure Synapse Analytics&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Issue:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The customer experienced large latency on a task which contains 216 tables. The task hit 26hrs+ of latency during CDC mode. &lt;BR /&gt;&lt;BR /&gt;The Customer seeing the following the in the log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;00011428: 2022-07-01T03:11:36 [ASSERTION ]W: The 'INSERT' event received for table xxx after 'UPDATE (3)' event with the same primary key at stream position '2476;637921680139646570;20211205001400949446|000020e7.688c8538.00000001.002c.01.0001:503765.287848.16' (bulk_apply.c:1664)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00011428: 2022-07-01T03:11:36 [TARGET_APPLY ]T: Failed to execute statement. Error is: Error creating Net Changes in Batch Optimized Apply mode. For details, see the task log.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INSERT INTO [stgClinIh].[attrep_apply_exceptions] ( [TASK_NAME],[TABLE_OWNER],[TABLE_NAME],[ERROR_TIME],[STATEMENT],[ERROR] ) VALUES ('IHPRD_LS_SYNPSPRD','stgClinIh','xxx','2022-07-01 07:11:36.443','INSERT INTO [stgClinIh].[attrep_apply_exceptions] ( [TASK_NAME],[TABLE_OWNER],[TABLE_NAME],[ERROR_TIME],[STATEMENT],[ERROR] ) VALUES (''IHPRD_LS_SYNPSPRD'',''stgClinIh'',''xxx'',''xxx'', _FLAG],[OWNER],[PREVIOUS_OWNER],[UPDATE_COUNT],[ENROLLMENT_START_END_IND],[CONF_IN_SCREENING],[CONF_IN_BASELINE],[CONF_IN_TREATMENT],[CONF_IN_FOLLOW_UP],[CONF_IN_FOLLOW_UP_DROP_TREAT],[CONF_COMP_TRIAL_DROP_TREAT],[CONF_COMPLETED_TRIAL],[LOAD_DTM],[DELETED_FLAG],[DELETED_DATETIME] ) VALUES (xxx,''xx'',''xx'',''xxxx'',x,x,''xxxx'',''x'',''xx'',xx,xx,''x'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,''xxxx'',''N'',NULL)','Error creating Net Changes in Batch Optimized Apply mode. For details, see the task log.') (endpointshell.c:6679)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We confirmed PKs (primary keys) were changing for two of the tables in the task. This will cause an error with the batch apply mode and can lead to latency.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Workaround:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;The customer removed the two tables with changing PKs from task and latency dropped to an acceptable level.&lt;/P&gt;
&lt;P&gt;The customer moved the tables to a separate task and planned to manage the tables with full loads.&lt;/P&gt;
&lt;P&gt;Ref #16 from this article:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Troubleshooting-Qlik-Replicate-Latency-and-Performance-Issues/ta-p/1929456" target="_blank" rel="noopener"&gt;Troubleshooting Qlik Replicate Latency and Performance Issues &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 09:50:09 GMT</pubDate>
    <dc:creator>KellyHobson</dc:creator>
    <dc:date>2022-07-08T09:50:09Z</dc:date>
    <item>
      <title>Qlik Replicate table with changing PKs causing latency and Error creating Net Changes in Batch Optimized Apply mode</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-table-with-changing-PKs-causing-latency-and-Error/ta-p/1951889</link>
      <description>&lt;P&gt;&lt;FONT color="#339966"&gt;Task Details:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Source - Oracle&lt;BR /&gt;Target - Microsoft Azure Synapse Analytics&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Issue:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The customer experienced large latency on a task which contains 216 tables. The task hit 26hrs+ of latency during CDC mode. &lt;BR /&gt;&lt;BR /&gt;The Customer seeing the following the in the log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;00011428: 2022-07-01T03:11:36 [ASSERTION ]W: The 'INSERT' event received for table xxx after 'UPDATE (3)' event with the same primary key at stream position '2476;637921680139646570;20211205001400949446|000020e7.688c8538.00000001.002c.01.0001:503765.287848.16' (bulk_apply.c:1664)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00011428: 2022-07-01T03:11:36 [TARGET_APPLY ]T: Failed to execute statement. Error is: Error creating Net Changes in Batch Optimized Apply mode. For details, see the task log.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INSERT INTO [stgClinIh].[attrep_apply_exceptions] ( [TASK_NAME],[TABLE_OWNER],[TABLE_NAME],[ERROR_TIME],[STATEMENT],[ERROR] ) VALUES ('IHPRD_LS_SYNPSPRD','stgClinIh','xxx','2022-07-01 07:11:36.443','INSERT INTO [stgClinIh].[attrep_apply_exceptions] ( [TASK_NAME],[TABLE_OWNER],[TABLE_NAME],[ERROR_TIME],[STATEMENT],[ERROR] ) VALUES (''IHPRD_LS_SYNPSPRD'',''stgClinIh'',''xxx'',''xxx'', _FLAG],[OWNER],[PREVIOUS_OWNER],[UPDATE_COUNT],[ENROLLMENT_START_END_IND],[CONF_IN_SCREENING],[CONF_IN_BASELINE],[CONF_IN_TREATMENT],[CONF_IN_FOLLOW_UP],[CONF_IN_FOLLOW_UP_DROP_TREAT],[CONF_COMP_TRIAL_DROP_TREAT],[CONF_COMPLETED_TRIAL],[LOAD_DTM],[DELETED_FLAG],[DELETED_DATETIME] ) VALUES (xxx,''xx'',''xx'',''xxxx'',x,x,''xxxx'',''x'',''xx'',xx,xx,''x'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,''xxxx'',''N'',NULL)','Error creating Net Changes in Batch Optimized Apply mode. For details, see the task log.') (endpointshell.c:6679)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We confirmed PKs (primary keys) were changing for two of the tables in the task. This will cause an error with the batch apply mode and can lead to latency.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Workaround:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;The customer removed the two tables with changing PKs from task and latency dropped to an acceptable level.&lt;/P&gt;
&lt;P&gt;The customer moved the tables to a separate task and planned to manage the tables with full loads.&lt;/P&gt;
&lt;P&gt;Ref #16 from this article:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Troubleshooting-Qlik-Replicate-Latency-and-Performance-Issues/ta-p/1929456" target="_blank" rel="noopener"&gt;Troubleshooting Qlik Replicate Latency and Performance Issues &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 09:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-table-with-changing-PKs-causing-latency-and-Error/ta-p/1951889</guid>
      <dc:creator>KellyHobson</dc:creator>
      <dc:date>2022-07-08T09:50:09Z</dc:date>
    </item>
  </channel>
</rss>

