<?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: PostgreSQL Error: state found as 'already active' while expected as 'inactive' in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2520065#M14469</link>
    <description>&lt;P&gt;Thank you for your support&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/217916"&gt;@JoshAtBeijer&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:10:47 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-06-04T09:10:47Z</dc:date>
    <item>
      <title>PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2127206#M7658</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I am performing a PostgreSQL ---&amp;gt; Oracle synchronization and it is returning the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vitalf03_0-1696962483840.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/118004iEEB1602BEFCE8C15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vitalf03_0-1696962483840.png" alt="vitalf03_0-1696962483840.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This task has only CDC configuration, when performing a "Reload Target" the table loaded successfully. subsequently, the task returned this error above, what should I do?&lt;/P&gt;
&lt;P&gt;The task was performed correctly before, for many days.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 18:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2127206#M7658</guid>
      <dc:creator>vitalf03</dc:creator>
      <dc:date>2023-10-10T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2127293#M7665</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/247020"&gt;@vitalf03&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;It's hard to tell this time from the error messages only.&amp;nbsp;we'd like to suggest:&lt;/P&gt;
&lt;P&gt;1. In source endpoint Properties --&amp;gt; Advanced --&amp;gt; enable "WAL heartbeat". The default Heartbeat frequency is 5 minutes&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Please check the server side configuration, especially&lt;A title=" wal_sender_timeout " href="http://The%20wal_sender_timeout parameter terminates connections that are inactive longer than the specified number of milliseconds. " target="_blank" rel="noopener"&gt; wal_sender_timeout&lt;/A&gt; , set it to 0 if possible to see if problem solved&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;If problem persists, please set SOURCE_CAPTURE to Verbose and reproduce the error, we'd like to check further again via support ticket (please do not upload the attachments here as it's public to all visitors).&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 04:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2127293#M7665</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-10-11T04:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2517767#M14317</link>
      <description>&lt;P&gt;We also encounter this error,&lt;BR /&gt;&lt;BR /&gt;we have set&amp;nbsp;&lt;A title=" wal_sender_timeout " href="http://the%20wal_sender_timeout%20parameter%20terminates%20connections%20that%20are%20inactive%20longer%20than%20the%20specified%20number%20of%20milliseconds./" target="_blank" rel="noopener nofollow noreferrer"&gt;wal_sender_timeout&lt;/A&gt;&amp;nbsp;to 1h instead of 0 and enabled heartbeat but still encounter this error?&lt;BR /&gt;Did it get resolved for the owner of this post?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 11:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2517767#M14317</guid>
      <dc:creator>JoshAtBeijer</dc:creator>
      <dc:date>2025-05-14T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2517847#M14330</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/217916"&gt;@JoshAtBeijer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for following up.&lt;/P&gt;
&lt;P&gt;This typically occurs when a logical replication slot is already in use — meaning there is an active replication connection using that slot — and another process or client attempts to use it simultaneously.&lt;/P&gt;
&lt;P&gt;This may occurs if Replication client crashed or disconnected ungracefully, or multiple tasks are trying to use the same slot concurrently.&lt;/P&gt;
&lt;P&gt;You may check the slot status while your current Replicate task is stopped:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SELECT * FROM pg_replication_slots WHERE slot_name = '&amp;lt;&lt;EM&gt;your_slot_name&lt;/EM&gt;&amp;gt;';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 01:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2517847#M14330</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-15T01:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2518291#M14378</link>
      <description>&lt;P&gt;What cause the logical replication slot to be already in use? How to solve the ground issue?&lt;BR /&gt;Right now we have one task replicating directly from PSQL as the source to MSSQL. If the MSSQL server, the destination have downtime, let say 30 minutes once every weekend or something I guess it could cause this issue? is that correct?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We have set max slots to 10 and we have two task from two different qlik replicate instances reading from same source, I belive both use different slot. We also have some other sources writing to this PSQL server. Is there any guide on how to replicate from PSQL with recommended configurations? Should a logstream also be used but I belive we get same or other issue when doing full loads.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2518291#M14378</guid>
      <dc:creator>JoshAtBeijer</dc:creator>
      <dc:date>2025-05-20T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2518927#M14418</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/217916"&gt;@JoshAtBeijer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you could run the SQL and let us know which programs are using the slot concurrently, it would help us better understand the issue.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2025 05:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2518927#M14418</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-24T05:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2519592#M14451</link>
      <description>&lt;P&gt;uploaded it as CSV,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;00006852: 2025-05-27T02:16:02:41767 [SOURCE_CAPTURE ]E: Slot 'p_db_dwh_to_db_c_00016384_848dc45c_fb9c_dc4e_b315_13f4188d0ab0' state found as 'already active' while expected as 'inactive'. [1020461] (postgres_endpoint_capture.c:352) &lt;/SPAN&gt;00006852: 2025-05-27T02:16:02:57373 [SOURCE_CAPTURE ]T: Error executing source loop [1020461] (streamcomponent.c:1945) 00006852: 2025-05-27T02:16:02:57373 [SOURCE_CAPTURE ]T: Stream component 'st_0_p_db_dwh' terminated [1020461] (subtask.c:1643) 00006852: 2025-05-27T02:16:02:57373 [SOURCE_CAPTURE ]T: Entering 'postgres_endpoint_free_imp' (postgres_endpoint_imp.c:1152) 00006972: 2025-05-27T02:16:02:57373 [TASK_MANAGER ]I: Task error notification received from subtask 0, thread 0, status 1020461 (replicationtask.c:3631) &lt;SPAN class=""&gt;00006852: 2025-05-27T02:16:02:57373 [SOURCE_CAPTURE ]E: Error executing source loop [1020461] (streamcomponent.c:1945) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00006852: 2025-05-27T02:16:02:57373 [TASK_MANAGER ]E: Stream component failed at subtask 0, component st_0_p_db_dwh [1020461] (subtask.c:1474) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00006852: 2025-05-27T02:16:02:57373 [SOURCE_CAPTURE ]E: Stream component 'st_0_p_db_dwh' terminated [1020461] (subtask.c:1643) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00006972: 2025-05-27T02:16:02:57373 [TASK_MANAGER ]W: Task 'p_db_dwh_to_db_ccm' encountered a fatal error (repository.c:6359)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 11:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2519592#M14451</guid>
      <dc:creator>JoshAtBeijer</dc:creator>
      <dc:date>2025-05-30T11:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2519614#M14458</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/217916"&gt;@JoshAtBeijer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the following up.&lt;/P&gt;
&lt;P&gt;From the Excel file the slot status '&lt;STRONG&gt;active&lt;/STRONG&gt;' is '&lt;STRONG&gt;FALSE&lt;/STRONG&gt;', it indicates the task is stopped while the query is executing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1748616445419.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180922iF83DB2CD0B3DA1BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1748616445419.png" alt="john_wang_0-1748616445419.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How about if you startup the task in this scenario?&lt;/P&gt;
&lt;P&gt;If the error persists, I'd like to suggest you opening a support ticket,&amp;nbsp;Our support team will be more than happy to assist you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 14:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2519614#M14458</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-30T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2520060#M14468</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;We usally get this message if we try to start it, this is from another day and to temporary solve it then we have to do a full load.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]E: Failure in sending START_REPLICATION command "START_REPLICATION SLOT "p_db_dwh_to_db_c_00016384_848dc45c_fb9c_dc4e_b315_13f4188d0ab0" LOGICAL 00000040/02CD84A0 ("include-timestamp" 'on')": ERROR: can no longer get changes from replication slot "p_db_dwh_to_db_c_00016384_848dc45c_fb9c_dc4e_b315_13f4188d0ab0" &lt;/SPAN&gt;DETAIL: This slot has been invalidated because it exceeded the maximum reserved size. [1] (postgres_endpoint_wal_engine.c:567) 00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]I: End of CDC / CAPTURE events for POSTGRES endpoint. (postgres_endpoint_capture.c:557) 00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]I: CAPTURE ended with exceptions. (postgres_endpoint_capture.c:564) &lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]E: WAL stream loop ended abnormally. (STATUS_PROTOCOL_ERROR) [1020452] (postgres_endpoint_wal_engine.c:1485) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]E: WAL reader terminated with irrecoverable error. [1020452] (postgres_endpoint_capture.c:532) &lt;/SPAN&gt;00004328: 2025-04-25T12:59:42 [TASK_MANAGER ]I: Task error notification received from subtask 0, thread 0, status 1020452 (replicationtask.c:3631) &lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]E: Error executing source loop [1020452] (streamcomponent.c:1945) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [TASK_MANAGER ]E: Stream component failed at subtask 0, component st_0_p_db_dwh [1020452] (subtask.c:1474) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00002236: 2025-04-25T12:59:42 [SOURCE_CAPTURE ]E: Stream component 'st_0_p_db_dwh' terminated [1020452] (subtask.c:1643) &lt;/SPAN&gt;&lt;SPAN class=""&gt;00004328: 2025-04-25T12:59:42 [TASK_MANAGER ]W: Task 'p_db_dwh_to_db_ccm' encountered a fatal error (repository.c:6359)&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN class=""&gt;I can create a support task and then referer to this post.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 08:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2520060#M14468</guid>
      <dc:creator>JoshAtBeijer</dc:creator>
      <dc:date>2025-06-04T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Error: state found as 'already active' while expected as 'inactive'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2520065#M14469</link>
      <description>&lt;P&gt;Thank you for your support&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/217916"&gt;@JoshAtBeijer&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/PostgreSQL-Error-state-found-as-already-active-while-expected-as/m-p/2520065#M14469</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-06-04T09:10:47Z</dc:date>
    </item>
  </channel>
</rss>

