<?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 Postgres as a target disconnect: TARGET_APPLY server closed the connection unexpectedly in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Postgres-as-a-target-disconnect-TARGET-APPLY/ta-p/2045080</link>
    <description>&lt;P&gt;The Qlik Replicate logs may report the following error on Target Apply:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider bkp bkq c d e f g h i j k l m n o p q r s t bkr bks w x y z ab ac ae af ag ah ai aj ak"&gt;[TARGET_APPLY&amp;nbsp;&amp;nbsp;&amp;nbsp; ]E:&amp;nbsp; RetCode: SQL_ERROR&amp;nbsp; SqlState: 08S01 NativeError: 35 Message: server closed the connection unexpectedly&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Add the &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Parameter&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;additionalConnectionProperties&lt;/FONT&gt;&amp;nbsp;(&lt;STRONG&gt;a&lt;/STRONG&gt;) to the Postgres Target endpoint and provide the following two ODBC parameters (&lt;STRONG&gt;b&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;KeepaliveTime=60; KeepaliveInterval=1;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="internal parameter additionalconnectionproperties.png" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102145iDAF2B8AE8D2CC469/image-size/large?v=v2&amp;amp;px=999" role="button" title="internal parameter additionalconnectionproperties.png" alt="internal parameter additionalconnectionproperties.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&amp;nbsp;for detailed instructions on how to add an Internal Parameter.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider bkp bkq c d e f g h i j k l m n o p q r s t bkr bks w x y z ab ac ae af ag ah ai aj ak"&gt;If Qlik is replicating across networks that transit cloud infrastructure or have any type of firewall device, the database connection options must enable a TCP keepalive setting or certain scenarios will cause idle connections to age-out. In one of the scenarios, data pipeline loads create large updates that must be inserted on the target. These inserts take time, long enough for Qlik's sessions to age-out idle across the intermediate network devices. This required setting the mentioned flags for the Postgres ODBC driver.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 10:29:18 GMT</pubDate>
    <dc:creator>shashi_holla</dc:creator>
    <dc:date>2023-03-07T10:29:18Z</dc:date>
    <item>
      <title>Qlik Replicate Postgres as a target disconnect: TARGET_APPLY server closed the connection unexpectedly</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Postgres-as-a-target-disconnect-TARGET-APPLY/ta-p/2045080</link>
      <description>&lt;P&gt;The Qlik Replicate logs may report the following error on Target Apply:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider bkp bkq c d e f g h i j k l m n o p q r s t bkr bks w x y z ab ac ae af ag ah ai aj ak"&gt;[TARGET_APPLY&amp;nbsp;&amp;nbsp;&amp;nbsp; ]E:&amp;nbsp; RetCode: SQL_ERROR&amp;nbsp; SqlState: 08S01 NativeError: 35 Message: server closed the connection unexpectedly&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Add the &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Parameter&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;additionalConnectionProperties&lt;/FONT&gt;&amp;nbsp;(&lt;STRONG&gt;a&lt;/STRONG&gt;) to the Postgres Target endpoint and provide the following two ODBC parameters (&lt;STRONG&gt;b&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;KeepaliveTime=60; KeepaliveInterval=1;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="internal parameter additionalconnectionproperties.png" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102145iDAF2B8AE8D2CC469/image-size/large?v=v2&amp;amp;px=999" role="button" title="internal parameter additionalconnectionproperties.png" alt="internal parameter additionalconnectionproperties.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&amp;nbsp;for detailed instructions on how to add an Internal Parameter.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider bkp bkq c d e f g h i j k l m n o p q r s t bkr bks w x y z ab ac ae af ag ah ai aj ak"&gt;If Qlik is replicating across networks that transit cloud infrastructure or have any type of firewall device, the database connection options must enable a TCP keepalive setting or certain scenarios will cause idle connections to age-out. In one of the scenarios, data pipeline loads create large updates that must be inserted on the target. These inserts take time, long enough for Qlik's sessions to age-out idle across the intermediate network devices. This required setting the mentioned flags for the Postgres ODBC driver.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 10:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Postgres-as-a-target-disconnect-TARGET-APPLY/ta-p/2045080</guid>
      <dc:creator>shashi_holla</dc:creator>
      <dc:date>2023-03-07T10:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Postgres as a target disconnect: TARGET_APPLY server closed the connection unexpectedly</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Postgres-as-a-target-disconnect-TARGET-APPLY/tac-p/2500534#M15207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do we have similar kind of setting for DB2 IBM iSeries AS400&amp;nbsp; as source ?&lt;/P&gt;
&lt;P&gt;We are frequently&amp;nbsp; getting following error. We want to set&amp;nbsp;tcpKeepAlive=true&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[SOURCE_CAPTURE&amp;nbsp; ]E:&amp;nbsp; RetCode: SQL_ERROR&amp;nbsp; SqlState: 08S01 NativeError: 10054 Message: [IBM][System i Access ODBC Driver]Communication link failure. comm rc=10054 - CWBCO1047 - The IBM i server application&amp;nbsp; disconnected the connection [1022502]&amp;nbsp; (ar_odbc_stmt.c:4064)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 08:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Postgres-as-a-target-disconnect-TARGET-APPLY/tac-p/2500534#M15207</guid>
      <dc:creator>GELS</dc:creator>
      <dc:date>2025-01-09T08:46:27Z</dc:date>
    </item>
  </channel>
</rss>

