<?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: Cursor already open or allocated error in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Cursor-already-open-or-allocated-error/m-p/2541358#M15807</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/357790"&gt;@RBarkerEV&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Fully restarting Qlik Replicate should normally drop the ODBC connection and release all cursors.&lt;BR /&gt;&lt;BR /&gt;To narrow this down, please try running the same SELECT query &lt;SPAN&gt;(QSYS2.Display_Journal)&amp;nbsp;&lt;/SPAN&gt;directly to see if the error reproduces outside of Replicate. It may also help to review the IBM job log for the relevant host job to check for any open cursors or related messages.&lt;BR /&gt;&lt;BR /&gt;In addition, please confirm you are using the ODBC driver version we recommend in the user guide.&lt;BR /&gt;&lt;BR /&gt;If the issue continues after these checks, please open a support ticket with us so we can investigate further.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jan 2026 03:01:43 GMT</pubDate>
    <dc:creator>DesmondWOO</dc:creator>
    <dc:date>2026-01-23T03:01:43Z</dc:date>
    <item>
      <title>Cursor already open or allocated error</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Cursor-already-open-or-allocated-error/m-p/2541353#M15806</link>
      <description>&lt;P&gt;We are currently running a Qlik replicate server that takes data from an iSeries database, processes it, and propagates it into an Azure database. Its been running fine without issues for some time.&lt;/P&gt;
&lt;P&gt;This morning we ran into the error below with one of our Qlik tasks. This is happening with only 1 of the 4 tasks and continues to error out and remain in 'recovering' status as it continued to retry. Each time it retries it has a new Cursor ID that its complaining about, the one noted below is just from one of the attempted recovery attempts.&lt;/P&gt;
&lt;P&gt;The below solutions have been tried without success:&lt;/P&gt;
&lt;P&gt;1. Fully restarted the replicate server and services on the host/server machine.&lt;/P&gt;
&lt;P&gt;2. Restarted all the IBM&amp;nbsp;&lt;SPAN data-teams="true"&gt;ODBC/JDBC jobs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;3. Ensured all reliant Journals and receivers were present on the IBM side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;4. Fully stopped and resumed the effected Qlik task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;5. Attempted a Full reload of the target task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Any help with resolving this or any clues to what could be causing it would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Error Details:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;===============================================================&lt;/P&gt;
&lt;DIV id="txtView57" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects textRecordSelected" tabindex="20057"&gt;&lt;U&gt;00003400: 2026-01-22T14:04:28 [SORTER ]I&lt;/U&gt;: Transaction consistency reached (sorter_transaction.c:326)&lt;/DIV&gt;
&lt;DIV id="txtView58" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20058"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:28 [TASK_MANAGER ]I&lt;/U&gt;: Starting replication now (replicationtask.c:3386)&lt;/DIV&gt;
&lt;DIV id="txtView59" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20059"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [SOURCE_CAPTURE ]&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/U&gt;: Failed (retcode -1) to execute statement: 'SELECT journal_code,journal_entry_type,sequence_number,commit_cycle,entry_timestamp,object,cast(null_value_indicators as VARBINARY(8000)) null_value_indicators,count_or_rrn,receiver_library,receiver_name,"CURRENT_USER",job_name,program_name, minimized_entry_data,cast(entry_data as VARBINARY(32740)) entry_data FROM TABLE(QSYS2.Display_Journal('$JRNLIB','RSD', OBJECT_OBJTYPE=&amp;gt;'*FILE', STARTING_TIMESTAMP=&amp;gt;'2026-01-22 14:58:39', JOURNAL_CODES=&amp;gt;'CDFRJ', JOURNAL_ENTRY_TYPES=&amp;gt;'PT,PX,UB,UP,DL,DR,BR,UR,CG,DF,CT,SC,CM,CR,RB,FN,PR', STARTING_RECEIVER_LIBRARY=&amp;gt;'*CURLIB', STARTING_RECEIVER_NAME=&amp;gt;'*CURCHAIN')) AS J WHERE (journal_entry_type in('SC','CM','CT','RB','PR') OR (substr(object,1,20) in ('T1&amp;nbsp; RSD ','T2 RSD ')))' [1022502] (ar_odbc_stmt.c:2822) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20060"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="txtView60" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20060"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [SOURCE_CAPTURE ]&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/U&gt;: RetCode: SQL_ERROR SqlState: 07005 NativeError: -502 Message: [IBM][System i Access ODBC Driver][DB2 for i5/OS]SQL0502 - Cursor SQL_CURF1A474A0 already open or allocated. [1022502] (ar_odbc_stmt.c:2828) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20061"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="txtView61" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20061"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [SOURCE_CAPTURE ]&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/U&gt;: Error executing display_journal statement [1022511] (db2i_endpoint_capture.c:1634) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20062"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="txtView62" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20062"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:33 [TASK_MANAGER ]I&lt;/U&gt;: Task error notification received from subtask 0, thread 0, status 1022511 (replicationtask.c:3520)&lt;/DIV&gt;
&lt;DIV id="txtView63" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20063"&gt;&lt;SPAN class="oColor"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:33 [TASK_MANAGER ]W&lt;/U&gt;: Task 'PROD - RSD Tables' encountered a recoverable error (repository.c:6049) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView64" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20064"&gt;&lt;U&gt;00003400: 2026-01-22T14:04:33 [SORTER ]&lt;/U&gt;I: Final saved task state. Stream position timestamp:2026-01-22 21:04:28, Source id 8, next Target id 1, confirmed Target id 5, last source timestamp 0 (sorter.c:781)&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20064"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="txtView65" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20065"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [SOURCE_CAPTURE ]&lt;/U&gt;&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;: Error executing source loop [1022511] (streamcomponent.c:1942) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView66" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20066"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [TASK_MANAGER ]&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/U&gt;: Stream component failed at subtask 0, component st_0_prd - RSD [1022511] (subtask.c:1433) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView67" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20067"&gt;&lt;SPAN class="rColor"&gt;&lt;U&gt;00004112: 2026-01-22T14:04:33 [SOURCE_CAPTURE ]&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/U&gt;: Stream component 'st_0_prd - RSD' terminated [1022511] (subtask.c:1602)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20067"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="txtView68" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20068"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:34 [TASK_MANAGER ]I&lt;/U&gt;: Subtask #0 ended (replicationtask_util.c:591)&lt;/DIV&gt;
&lt;DIV id="txtView69" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20069"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:42 [SERVER ]I&lt;/U&gt;: Stop server request received internally (server.c:2410)&lt;/DIV&gt;
&lt;DIV id="txtView70" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20070"&gt;&lt;U&gt;00008500: 2026-01-22T14:04:42 [TASK_MANAGER ]I&lt;/U&gt;: Task management thread terminated (replicationtask.c:4446)&lt;/DIV&gt;
&lt;DIV id="txtView71" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20071"&gt;&lt;U&gt;00005720: 2026-01-22T14:04:44 [SERVER ]I&lt;/U&gt;: Client session (ID 1265182077) closed (dispatcher.c:195)&lt;/DIV&gt;
&lt;DIV id="txtView72" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20072"&gt;&lt;U&gt;00005720: 2026-01-22T14:04:44 [UTILITIES ]I&lt;/U&gt;: The last state is saved to file 'E:\Attunity\Replicate\data\tasks\PROD - RSD Tables/StateManager/ars_saved_state_000001.sts' at Thu, 22 Jan 2026 21:04:33 GMT (1769115873906615) (statemanager.c:642)&lt;/DIV&gt;
&lt;DIV id="txtView73" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20073"&gt;&lt;U&gt;00002200: 2026-01-22T14:04:44 [SERVER ]I&lt;/U&gt;: The process stopped (server.c:2537)&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20073"&gt;===============================================================&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jan 2026 23:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Cursor-already-open-or-allocated-error/m-p/2541353#M15806</guid>
      <dc:creator>RBarkerEV</dc:creator>
      <dc:date>2026-01-22T23:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor already open or allocated error</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Cursor-already-open-or-allocated-error/m-p/2541358#M15807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/357790"&gt;@RBarkerEV&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Fully restarting Qlik Replicate should normally drop the ODBC connection and release all cursors.&lt;BR /&gt;&lt;BR /&gt;To narrow this down, please try running the same SELECT query &lt;SPAN&gt;(QSYS2.Display_Journal)&amp;nbsp;&lt;/SPAN&gt;directly to see if the error reproduces outside of Replicate. It may also help to review the IBM job log for the relevant host job to check for any open cursors or related messages.&lt;BR /&gt;&lt;BR /&gt;In addition, please confirm you are using the ODBC driver version we recommend in the user guide.&lt;BR /&gt;&lt;BR /&gt;If the issue continues after these checks, please open a support ticket with us so we can investigate further.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 03:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Cursor-already-open-or-allocated-error/m-p/2541358#M15807</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2026-01-23T03:01:43Z</dc:date>
    </item>
  </channel>
</rss>

