<?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 With PostgreSQL target, big transaction replication resulting with a timeout (SqlState: 57014) in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/With-PostgreSQL-target-big-transaction-replication-resulting/m-p/2557184#M16749</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have a replication task with Postgresql v17 as target endpoint working without issues for few days.&lt;BR /&gt;However, since this weekend, the task is looping on the same "timout" issue (Target table contains billions of rows):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;00011719: 2026-10-03T05:42:34 [SORTER          ]I:  Task is running  (sorter.c:714)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Error in bulk, bulk state: bulk confirmed record id - '476716', bulk last record id - '404495777', confirmed record id - '396263857', sorter confirmed record id - '396263857'  (bulk_apply.c:2511)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Failed (retcode -1) to execute statement: 'UPDATE &amp;lt;...&amp;gt;' [1022502]  (ar_odbc_stmt.c:2852)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  RetCode: SQL_ERROR  SqlState: 57014 NativeError: 1 Message: ERROR: canceling statement due to statement timeout;
Error while executing the query [1022502]  (ar_odbc_stmt.c:2858)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Failed to execute update statement.&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The timeout seems to happen on the Database side every 25 minutes:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;026-10-03 06:46:30 CEST **** user=****, db=****, client=****, appli=QlikReplicate/2025.11 (postgresql), sessionid=**** ERROR:  canceling statement due to statement timeout
[...]
2026-10-03 05:50:23 CEST **** user=****, db=****, client=****, appli=QlikReplicate/2025.11 (postgresql), sessionid=**** ERROR: canceling statement due to statement timeout&lt;/LI-CODE&gt;&lt;P&gt;We have tried to change this timeout on client side (Qlik connection) with below &lt;SPAN&gt;"Internal Parameters" set on the target endpoint&lt;/SPAN&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;afterConnectScript =&amp;gt; set statement_timeout=&amp;lt;0 et 86400000&amp;gt;&lt;/LI&gt;&lt;LI&gt;executeTimeout =&amp;gt; &amp;lt;0 et 86400&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But also on the role (user) used to connect with the database:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER ROLE d9dext SET statement_timeout = &amp;lt;0 et 86400000&amp;gt;;
SELECT * FROM pg_db_role_setting;&lt;/LI-CODE&gt;&lt;P&gt;Both didn't have any effect, the timeout still occuring every 25 minutes...&lt;/P&gt;&lt;P&gt;Any clues on what is happening? Seems to be the driver used by Qlik which is overriding the "statement_timeout" property...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2026 07:54:11 GMT</pubDate>
    <dc:creator>JSCHRANZ</dc:creator>
    <dc:date>2026-10-05T07:54:11Z</dc:date>
    <item>
      <title>With PostgreSQL target, big transaction replication resulting with a timeout (SqlState: 57014)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/With-PostgreSQL-target-big-transaction-replication-resulting/m-p/2557184#M16749</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have a replication task with Postgresql v17 as target endpoint working without issues for few days.&lt;BR /&gt;However, since this weekend, the task is looping on the same "timout" issue (Target table contains billions of rows):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;00011719: 2026-10-03T05:42:34 [SORTER          ]I:  Task is running  (sorter.c:714)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Error in bulk, bulk state: bulk confirmed record id - '476716', bulk last record id - '404495777', confirmed record id - '396263857', sorter confirmed record id - '396263857'  (bulk_apply.c:2511)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Failed (retcode -1) to execute statement: 'UPDATE &amp;lt;...&amp;gt;' [1022502]  (ar_odbc_stmt.c:2852)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  RetCode: SQL_ERROR  SqlState: 57014 NativeError: 1 Message: ERROR: canceling statement due to statement timeout;
Error while executing the query [1022502]  (ar_odbc_stmt.c:2858)
00011718: 2026-10-03T05:50:23 [TARGET_APPLY    ]I:  Failed to execute update statement.&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The timeout seems to happen on the Database side every 25 minutes:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;026-10-03 06:46:30 CEST **** user=****, db=****, client=****, appli=QlikReplicate/2025.11 (postgresql), sessionid=**** ERROR:  canceling statement due to statement timeout
[...]
2026-10-03 05:50:23 CEST **** user=****, db=****, client=****, appli=QlikReplicate/2025.11 (postgresql), sessionid=**** ERROR: canceling statement due to statement timeout&lt;/LI-CODE&gt;&lt;P&gt;We have tried to change this timeout on client side (Qlik connection) with below &lt;SPAN&gt;"Internal Parameters" set on the target endpoint&lt;/SPAN&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;afterConnectScript =&amp;gt; set statement_timeout=&amp;lt;0 et 86400000&amp;gt;&lt;/LI&gt;&lt;LI&gt;executeTimeout =&amp;gt; &amp;lt;0 et 86400&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But also on the role (user) used to connect with the database:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER ROLE d9dext SET statement_timeout = &amp;lt;0 et 86400000&amp;gt;;
SELECT * FROM pg_db_role_setting;&lt;/LI-CODE&gt;&lt;P&gt;Both didn't have any effect, the timeout still occuring every 25 minutes...&lt;/P&gt;&lt;P&gt;Any clues on what is happening? Seems to be the driver used by Qlik which is overriding the "statement_timeout" property...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 07:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/With-PostgreSQL-target-big-transaction-replication-resulting/m-p/2557184#M16749</guid>
      <dc:creator>JSCHRANZ</dc:creator>
      <dc:date>2026-10-05T07:54:11Z</dc:date>
    </item>
  </channel>
</rss>

