<?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 Re: Error executing data handler Endpoint is disconnected in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417226#M9371</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/255514"&gt;@Naga_vivek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;In general Qlik Replicate creates target table prior to load data, includes&amp;nbsp;&lt;SPAN&gt;ALTER TABLE &amp;lt;table Name&amp;gt; ADD CONSTRAINT &amp;lt;contraint name&amp;gt; PRIMARY KEY operation.&lt;/SPAN&gt;&amp;nbsp;Not sure if you enabled Full Load setting "&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Create primary key or unique index after full load completes&lt;/SPAN&gt;&lt;/FONT&gt;" :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1707486038190.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159467i23880E7E98EE1A07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1707486038190.png" alt="john_wang_0-1707486038190.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Anyway, you may try to execute the ALTER TABLE manually to see how long it take to understand the root cause further.&lt;/P&gt;
&lt;P&gt;BTW, maybe an internal parameter helps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SQL Server target endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the&amp;nbsp;&lt;STRONG&gt;Advanced&lt;/STRONG&gt;&amp;nbsp;tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open&amp;nbsp;&lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add a&lt;EM class="Highlight"&gt;&lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;&amp;nbsp;new&amp;nbsp;&lt;/EM&gt;&lt;/EM&gt;parameter named &lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Set its value to a reasonable value eg&amp;nbsp;3600 (it's seconds, means 1 hour) if you got this error after 1 hour running.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 13:44:06 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2024-02-09T13:44:06Z</dc:date>
    <item>
      <title>Error executing data handler Endpoint is disconnected</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417219#M9369</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;In one of our replicate task. When loading the full load we are facing the below issue. The full load does not get completed for one of the table. How many times we reload the task it is taking time and throwing the same error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stream component 'st_1_&amp;lt;target endpoint&amp;gt;' terminated&lt;BR /&gt;Stream component failed at subtask 1, component st_1_&amp;lt;target endpoint&amp;gt;&lt;BR /&gt;Error executing data handler&lt;BR /&gt;Endpoint is disconnected&lt;BR /&gt;Execute create Primary Key/Unique Index failed, statement ALTER TABLE &amp;lt;table Name&amp;gt; ADD CONSTRAINT &amp;lt;contraint name&amp;gt; PRIMARY KEY ( &amp;lt;primary key column&amp;gt; )&lt;BR /&gt;RetCode: SQL_ERROR SqlState: HYT00 NativeError: 0 Message: [Microsoft][ODBC Driver 18 for SQL Server]Query timeout expired&lt;BR /&gt;Failed (retcode -1) to execute statement: ALTER TABLE &amp;lt;table Name&amp;gt; ADD CONSTRAINT &amp;lt;contraint name&amp;gt; PRIMARY KEY ( &amp;lt;primary key column&amp;gt; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Task details and the Qlik details.&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;/P&gt;
&lt;P&gt;We are using Qlik replicate May 2023 version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source end Point :&lt;/P&gt;
&lt;P&gt;type : Microsoft SQL server (database)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Change processing mode (read changes from):&amp;nbsp;Online Logs Only&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="formWrapLabel"&gt;&lt;LABEL class="control-label"&gt;Apply TLOG truncation prevention policy every (seconds): 600&lt;/LABEL&gt;&lt;/DIV&gt;
&lt;DIV class="formWrapLabel"&gt;&lt;STRONG&gt;Internal parameters:&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="formWrapContent"&gt;Ignoretnxvaliditycheck:True&lt;/DIV&gt;
&lt;P&gt;Tlogaccessmode: Tlogonly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Target end Point :&lt;/P&gt;
&lt;P&gt;type : Microsoft SQL server (database)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help how I can resolve the error . Please let me know if you need any more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks ,&lt;/P&gt;
&lt;P&gt;N L N Vivek&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417219#M9369</guid>
      <dc:creator>Naga_vivek</dc:creator>
      <dc:date>2024-02-09T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error executing data handler Endpoint is disconnected</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417226#M9371</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/255514"&gt;@Naga_vivek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;In general Qlik Replicate creates target table prior to load data, includes&amp;nbsp;&lt;SPAN&gt;ALTER TABLE &amp;lt;table Name&amp;gt; ADD CONSTRAINT &amp;lt;contraint name&amp;gt; PRIMARY KEY operation.&lt;/SPAN&gt;&amp;nbsp;Not sure if you enabled Full Load setting "&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Create primary key or unique index after full load completes&lt;/SPAN&gt;&lt;/FONT&gt;" :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1707486038190.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159467i23880E7E98EE1A07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1707486038190.png" alt="john_wang_0-1707486038190.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Anyway, you may try to execute the ALTER TABLE manually to see how long it take to understand the root cause further.&lt;/P&gt;
&lt;P&gt;BTW, maybe an internal parameter helps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SQL Server target endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the&amp;nbsp;&lt;STRONG&gt;Advanced&lt;/STRONG&gt;&amp;nbsp;tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open&amp;nbsp;&lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add a&lt;EM class="Highlight"&gt;&lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;&amp;nbsp;new&amp;nbsp;&lt;/EM&gt;&lt;/EM&gt;parameter named &lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Set its value to a reasonable value eg&amp;nbsp;3600 (it's seconds, means 1 hour) if you got this error after 1 hour running.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417226#M9371</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-09T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error executing data handler Endpoint is disconnected</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417516#M9386</link>
      <description>&lt;P&gt;hi&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried enabling the below setting:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Full Load setting "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Create primary key or unique index after full load completes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;" .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and also tried by adding a&amp;nbsp;&lt;EM class="Highlight"&gt;&lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;new&amp;nbsp;&lt;/EM&gt;&lt;/EM&gt;parameter named&amp;nbsp;&lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;setting it with 3600 and 7200 but still I am facing this issue when running fulload for the table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is getting stuck while loading the last records for the table. Could you please help what we can do.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;N L N Vivek&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 20:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417516#M9386</guid>
      <dc:creator>Naga_vivek</dc:creator>
      <dc:date>2024-02-11T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error executing data handler Endpoint is disconnected</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417532#M9388</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/255514"&gt;@Naga_vivek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It's hard to tell if 3600/7200 is good enough or not&amp;nbsp;without proper task log file. Because the value depends on data volume and the SQL Server target database performance, or even depends on data quality. Let's troubleshoot the issue by steps (drop the table first in every step):&lt;/P&gt;
&lt;P&gt;1- Manually create the target table and then try to add the PK manually; how long it takes?&lt;/P&gt;
&lt;P&gt;2- Let Replicate create the target empty table (by adding a filter, eg "where 1=0"),&amp;nbsp;then try to add the PK manually;&lt;/P&gt;
&lt;P&gt;3- Similar with 2 but with part of data by using filter,&amp;nbsp;then try to add the PK manually and record how long the "alter table" operation takes;&lt;/P&gt;
&lt;P&gt;4-&amp;nbsp;Similar with 3 but with all data,&amp;nbsp;then try to add the PK manually and record how long the alter table operation takes;&lt;/P&gt;
&lt;P&gt;5- Set &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;executeTimeout&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;a larger value than the time in step 4, run the task again.&lt;/P&gt;
&lt;P&gt;You may compare task runs with and without&amp;nbsp;&lt;SPAN&gt;setting "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Create primary key or unique index after full load completes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;" option. please take care if there are duplicate records which leads the alter table failed or timeout.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 01:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Error-executing-data-handler-Endpoint-is-disconnected/m-p/2417532#M9388</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-12T01:01:47Z</dc:date>
    </item>
  </channel>
</rss>

