<?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: Failed (retcode -1) to execute statement: 'DROP TABLE in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918737#M2388</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Increasing the timeout should address the issue. For testing purposes, if you get another error, you can try to run the statement that failed manually on the target db and get the timing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 18:20:38 GMT</pubDate>
    <dc:creator>lyka</dc:creator>
    <dc:date>2022-04-14T18:20:38Z</dc:date>
    <item>
      <title>Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918721#M2384</link>
      <description>&lt;P&gt;Today we "Reload Target" on our DEV environment and we started to see the following error message:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [SOURCE_CAPTURE ]T: Entering 'saphana_endpoint_free' (saphana_endpoint_imp.c:551)&lt;BR /&gt;00001728: 2022-04-14T12:16:18 [TASK_MANAGER ]I: Task error notification received from subtask 2, thread 1, status 1020414 (replicationtask.c:3433)&lt;BR /&gt;&lt;STRONG&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Failed (retcode -1) to execute statement: 'DROP TABLE [OWNER].[TABLE_NAME]' [1022502] (ar_odbc_stmt.c:4974)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: RetCode: SQL_ERROR SqlState: HYT00 NativeError: 0 Message: [Microsoft][SQL Server Native Client 11.0]Query timeout expired [1022502] (ar_odbc_stmt.c:4981)&lt;/STRONG&gt;&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Failed to drop table 'OWNER'.'TABLE_NAME' [1022506] (sqlserver_endpoint_imp.c:3696)&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Handling new table 'OWNER'.'TABLE_NAME' failed [1022506] (endpointshell.c:2924)&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Endpoint is disconnected [1020414] (endpointshell.c:3971)&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Error executing data handler [1020414] (streamcomponent.c:2001)&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TASK_MANAGER ]E: Stream component failed at subtask 2, component st_2_ENDPOINT_TGT [1020414] (subtask.c:1396)&lt;BR /&gt;00002256: 2022-04-14T12:16:18 [TARGET_LOAD ]E: Stream component 'st_2_ENDPOINT_TGT' terminated [1020414] (subtask.c:1565)&lt;BR /&gt;00001728: 2022-04-14T12:16:18 [TASK_MANAGER ]I: Subtask #2 ended (replicationtask_util.c:591)&lt;BR /&gt;00001728: 2022-04-14T12:16:18 [TASK_MANAGER ]I: Reloading table 4 because subtask #2 finished with error (replicationtask.c:2613)&lt;/P&gt;
&lt;P&gt;Source endpoint is HANA and target is MS SQL Server. This was working OK and there has not been any changes on the endpoints configuration or the Replicate task.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918721#M2384</guid>
      <dc:creator>Al_gar</dc:creator>
      <dc:date>2022-04-14T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918723#M2385</link>
      <description>&lt;P&gt;Hey&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;Please see this community post :&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Query-timeout-expired/ta-p/1779090" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Query-timeout-expired/ta-p/1779090&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Try increasing the timeout on your SQL Server target.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Kelly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918723#M2385</guid>
      <dc:creator>KellyHobson</dc:creator>
      <dc:date>2022-04-14T17:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918729#M2386</link>
      <description>&lt;P&gt;Generally, it's been my experience, timeouts on table drops are due to the target table (one to be dropped/reloaded) is in use, i.e., locked, therefore Replicate can't drop the table.&amp;nbsp; Usually table drops should be instant.&lt;/P&gt;
&lt;P&gt;Did you check for blocking on the target server?&amp;nbsp; The Replicate task command to drop the table will be the SPID being blocked.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918729#M2386</guid>
      <dc:creator>PGN</dc:creator>
      <dc:date>2022-04-14T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918736#M2387</link>
      <description>&lt;P&gt;Kelly,&lt;/P&gt;
&lt;P&gt;I set the&amp;nbsp;executeTimeout = 600 and still output the error message. &lt;STRONG&gt;However, the table loaded&lt;/STRONG&gt; 15 secs later after Replicate sent out the notification error.&amp;nbsp; Not sure if increasing again the timeout would be an ideal solution, specially if some of the tables are smaller than 25K records.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 18:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918736#M2387</guid>
      <dc:creator>Al_gar</dc:creator>
      <dc:date>2022-04-14T18:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918737#M2388</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Increasing the timeout should address the issue. For testing purposes, if you get another error, you can try to run the statement that failed manually on the target db and get the timing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 18:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918737#M2388</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-04-14T18:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918908#M2390</link>
      <description>&lt;P&gt;Hmm, why&amp;nbsp; are timeouts considered? Everything seems to be happening in the same second (to be verified in the log looking for the last mention from thread "&lt;SPAN&gt;00002256:" just before the published section and/or the last SOURCE_UNLOAD for the table in play&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My guess is that the "Endpoint is disconnected" is the cause, not a follow up action. There may be information in the target DB logs as to why there might have been a disconnect. Retry is likely to fix it&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Just guessing.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1918908#M2390</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-04-15T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement: 'DROP TABLE</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1923057#M2488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did any of the suggested solution work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-DROP-TABLE/m-p/1923057#M2488</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-04-26T21:57:28Z</dc:date>
    </item>
  </channel>
</rss>

