<?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: canceling statement due to statement timeout - Full Load in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2121464#M7411</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153407"&gt;@FrancoHR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for opening the article here!&lt;/P&gt;
&lt;P&gt;Per the task log file lines&lt;/P&gt;
&lt;P&gt;#634:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-09-22T&lt;STRONG&gt;09:31:26&lt;/STRONG&gt; [TARGET_LOAD ]T: Drop table statement: DROP TABLE "uuu"."ttt"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;#23488:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-09-22T&lt;STRONG&gt;09:41:27&lt;/STRONG&gt; [TARGET_LOAD ]E: Failed (retcode -1) to execute statement: 'DROP TABLE "uuu"."ttt"' &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(where uuu is the schema name, ttt is the table name). We see the &lt;FONT face="courier new,courier"&gt;DROP TABLE&amp;nbsp;&lt;/FONT&gt;timed out after running 10 minutes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to add an internal parameter&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt; &lt;/STRONG&gt;in target endpoint and set its value eg 1200 (the unit is seconds, means 20 minutes) to see if the problem is solved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general a &lt;FONT face="courier new,courier"&gt;DROP TABLE&amp;nbsp;&lt;/FONT&gt;SQL should be completed immediately. Maybe PostgreSQL server is busy during that time, or other exceptions occurred. Checking the slow queries in PostgreSQL side is helpful to understand the issue further.&lt;/P&gt;
&lt;P&gt;BTW, I'm purging the attached task log file as it may contain sensitive information. if you need to attach log file or other data files, please open the support ticket and attach them to the support case. Community article is open for all visitors.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 15:32:03 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2023-09-22T15:32:03Z</dc:date>
    <item>
      <title>canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2121442#M7410</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An error is occurring with 2 tables in a Full Load of a task in a QA environment:&lt;/P&gt;
&lt;P&gt;00007300: 2023-09-22T09:38:54 [SOURCE_UNLOAD ]I: Unload finished for table 'INSIS_GEN_V10'.'PREM_INST_MODAL' (Id = 10). 1950992 rows sent. (streamcomponent.c:3638)&lt;BR /&gt;00008524: 2023-09-22T09:38:54 [TARGET_LOAD ]I: Load finished for table 'INSIS_GEN_V10'.'PREM_INST_MODAL' (Id = 10). 1950992 rows received. 0 rows skipped. Volume transferred 1495008520. (streamcomponent.c:3927)&lt;BR /&gt;00008504: 2023-09-22T09:40:57 [SORTER ]I: Task is running (sorter.c:702)&lt;BR /&gt;00003880: 2023-09-22T09:41:27 [TARGET_LOAD ]E: Failed (retcode -1) to execute statement: 'DROP TABLE "usinsiv01"."BLC_POLICY_PAYMENT_PLAN"' [1022502] (ar_odbc_stmt.c:4906)&lt;BR /&gt;00003880: 2023-09-22T09:41:27 [TARGET_LOAD ]E: RetCode: SQL_ERROR SqlState: 57014 NativeError: 1 Message: ERROR: canceling statement due to statement timeout;&lt;BR /&gt;Error while executing the query [1022502] (ar_odbc_stmt.c:4913)&lt;BR /&gt;00003880: 2023-09-22T09:41:27 [TARGET_LOAD ]E: Failed to drop table usinsiv01.BLC_POLICY_PAYMENT_PLAN [1022506] (odbc_endpoint_imp.c:5978)&lt;BR /&gt;00003880: 2023-09-22T09:41:27 [TARGET_LOAD ]E: Handling new table 'usinsiv01'.'BLC_POLICY_PAYMENT_PLAN' failed [1022506] (endpointshell.c:2752)&lt;BR /&gt;00008432: 2023-09-22T09:41:27 [TASK_MANAGER ]W: Table 'INSIS_GEN_V10'.'BLC_POLICY_PAYMENT_PLAN' (subtask 5 thread 1) is suspended. Failed (retcode -1) to execute statement: 'DROP TABLE "usinsiv01"."BLC_POLICY_PAYMENT_PLAN"'; RetCode: SQL_ERROR SqlState: 57014 NativeError: 1 Message: ERROR: canceling statement due to statement timeout;&lt;BR /&gt;Error while executing the query; Failed to drop table usinsiv01.BLC_POLICY_PAYMENT_PLAN; Handling new table 'usinsiv01'.'BLC_POLICY_PAYMENT_PLAN' failed (replicationtask.c:3060)&lt;BR /&gt;00000620: 2023-09-22T09:41:27 [SOURCE_UNLOAD ]I: Unload finished for table 'INSIS_GEN_V10'.'BLC_POLICY_PAYMENT_PLAN' (Id = 2). 4640 rows sent. (streamcomponent.c:3638)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are heavier tables than these but the timeout error returns only in those 2 tables, how can I solve this? Why is this generated?&lt;/P&gt;
&lt;P&gt;Source: Oracle&lt;BR /&gt;Target: Aurora Postgres&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2121442#M7410</guid>
      <dc:creator>FrancoHR</dc:creator>
      <dc:date>2023-09-22T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2121464#M7411</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153407"&gt;@FrancoHR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for opening the article here!&lt;/P&gt;
&lt;P&gt;Per the task log file lines&lt;/P&gt;
&lt;P&gt;#634:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-09-22T&lt;STRONG&gt;09:31:26&lt;/STRONG&gt; [TARGET_LOAD ]T: Drop table statement: DROP TABLE "uuu"."ttt"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;#23488:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-09-22T&lt;STRONG&gt;09:41:27&lt;/STRONG&gt; [TARGET_LOAD ]E: Failed (retcode -1) to execute statement: 'DROP TABLE "uuu"."ttt"' &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(where uuu is the schema name, ttt is the table name). We see the &lt;FONT face="courier new,courier"&gt;DROP TABLE&amp;nbsp;&lt;/FONT&gt;timed out after running 10 minutes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to add an internal parameter&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;executeTimeout&lt;/FONT&gt; &lt;/STRONG&gt;in target endpoint and set its value eg 1200 (the unit is seconds, means 20 minutes) to see if the problem is solved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general a &lt;FONT face="courier new,courier"&gt;DROP TABLE&amp;nbsp;&lt;/FONT&gt;SQL should be completed immediately. Maybe PostgreSQL server is busy during that time, or other exceptions occurred. Checking the slow queries in PostgreSQL side is helpful to understand the issue further.&lt;/P&gt;
&lt;P&gt;BTW, I'm purging the attached task log file as it may contain sensitive information. if you need to attach log file or other data files, please open the support ticket and attach them to the support case. Community article is open for all visitors.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2121464#M7411</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-09-22T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2122029#M7415</link>
      <description>&lt;P&gt;[Forum server was down for a bit it seems]&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;but I do not think allowing Replicate to wait longer will help.&lt;/P&gt;
&lt;P&gt;If a DROP TABLE is not happening in a a few seconds, then it isn't going to happen in 10 minutes, nor 20 minutes. Something is wrong like a dead-lock perhaps due to a foreign key constraint, or some (security audit) trigger or such.&lt;/P&gt;
&lt;P&gt;Try the same statement outside Replicate using the Replicate username... does it work within reasonable time? Does it give additional error indicators?&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2122029#M7415</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-09-25T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2448341#M10905</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153407"&gt;@FrancoHR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer below link as its more related to Postgre then the Qlik replicate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://repost.aws/knowledge-center/dms-error-canceling-statement-timeout" target="_blank"&gt;https://repost.aws/knowledge-center/dms-error-canceling-statement-timeout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Reagrds,&lt;/P&gt;
&lt;P&gt;Sushil Kumar&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 10:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2448341#M10905</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2024-05-03T10:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2505614#M13685</link>
      <description>&lt;P&gt;We are facing similar kind of issue in our CDC task. I am not sure why it happened but during that time&amp;nbsp; source running on some high volume data.&lt;/P&gt;
&lt;P&gt;My source is as/400 DB2 and target is postgres RDS&lt;/P&gt;
&lt;P&gt;My log looks like&lt;/P&gt;
&lt;P&gt;00004852: 2025-02-11T10:36:50 [SOURCE_CAPTURE ]I: Starting journal receiver 'XYZ.XXYZ4345' (db2i_endpoint_capture.c:1776)&lt;BR /&gt;00003320: 2025-02-11T10:37:09 [TARGET_APPLY ]E: Failed (retcode -1) to execute statement: 'INSERT INTO "XYZ"."xyz_table"("col1","col2","asd","asda","ad") values (?,?,?,?,?)' [1022502] (ar_odbc_stmt.c:2810)&lt;BR /&gt;00003320: 2025-02-11T10:37:09 [TARGET_APPLY ]E: RetCode: SQL_ERROR SqlState: 57014 NativeError: 1 Message: ERROR: canceling statement due to statement timeout;&lt;BR /&gt;Error while executing the query [1022502] (ar_odbc_stmt.c:2816)&lt;BR /&gt;00003320: 2025-02-11T10:37:09 [TARGET_APPLY ]E: Failed to execute insert statement, stream position isXYZ.XXYZ4345:88271486 [1022506] (odbc_util.c:3867)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't want to add any timeout to endpoint as it might produce some latency.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But want to check why it failed? When I restarted the task, it ran fine.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 15:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2505614#M13685</guid>
      <dc:creator>Ashs</dc:creator>
      <dc:date>2025-02-12T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: canceling statement due to statement timeout - Full Load</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2505621#M13686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/248387"&gt;@Ashs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This indicates a performance or throughput issue on the network between Replicate and the target or on the target database/environment itself. Please check those items.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 15:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/canceling-statement-due-to-statement-timeout-Full-Load/m-p/2505621#M13686</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2025-02-12T15:51:18Z</dc:date>
    </item>
  </channel>
</rss>

