<?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: Handling LOB in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487719#M12988</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117889"&gt;@Vaibhav_19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: SqlStat: 42000 NativeError:9005 [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...). (PcbMsg: 105) [1020417] (sqlserver_log_processor.c:4338)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This error means that the LSN the task needs to continue without losing data is no longer available in the online TLOG or the backup TLOGs. Your options are to reload the task or restore the missing backup TLOGs so the task can continue. You should consider increasing the retention period of the backup TLOGs to help prevent this in the future.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might also consider working with our Professional Services team (fee based) to ensure the task is set up for the best possible performance for the amount of volume at the source. Reach out to your Account Manager if this is of interest.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dana&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 18:53:01 GMT</pubDate>
    <dc:creator>Dana_Baldwin</dc:creator>
    <dc:date>2024-10-17T18:53:01Z</dc:date>
    <item>
      <title>Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487547#M12982</link>
      <description>&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;DIV&gt;
&lt;DIV class="pt-0"&gt;
&lt;DIV class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;DIV class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="6fc9c456-68fa-4d6f-8ccd-633f0e0bebba" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Here’s a rephrased version of your message with improved grammar:&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;We have a table with a LOB (&lt;SPAN data-teams="true"&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;21914KB&lt;/SPAN&gt;&lt;/SPAN&gt;) column and approximately 750,000 rows of data. When I try to load the table, the task runs for 8-9 hours, then encounters a fatal error, recovers on its own, and restarts the loading process from the beginning. Is there a way to handle this?&lt;/P&gt;
&lt;P&gt;A few points related to the task:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The task configuration is set to Full Load + CDC.&lt;/LI&gt;
&lt;LI&gt;We've modified the task settings to allow unlimited LOB.&lt;/LI&gt;
&lt;LI&gt;Endpoints:
&lt;UL&gt;
&lt;LI&gt;Source: Microsoft SQL&lt;/LI&gt;
&lt;LI&gt;Target: PostgreSQL&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;We've also set the &lt;CODE&gt;ExecutionTimeout&lt;/CODE&gt; internal parameter on the target endpoint to 9 hours.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Oct 2024 05:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487547#M12982</guid>
      <dc:creator>Vaibhav_19</dc:creator>
      <dc:date>2024-10-17T05:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487552#M12983</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117889"&gt;@Vaibhav_19&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for reaching out to Qlik community forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please elaborate or provide logs for fatal error. Usually for big tables (CLOB/BLOB) take time in order to execute/fetch the query from source and target endpoints, normally these tasks will fail with "Query Time Out" error, and we would request them to increase timeout parameter from default setting to 10x.&lt;/P&gt;
&lt;P&gt;Below community link for the same.&lt;/P&gt;
&lt;P&gt;&lt;A title="Query-timeout-expired" href="https://community.qlik.com/t5/Knowledge/Query-timeout-expired/ta-p/1779090" target="_blank" rel="noopener"&gt;Query-timeout-expired&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin B&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 06:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487552#M12983</guid>
      <dc:creator>SachinB</dc:creator>
      <dc:date>2024-10-17T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487603#M12984</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141158"&gt;@SachinB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for Response&lt;/P&gt;
&lt;P&gt;We already the set &lt;STRONG&gt;ExecutionTimeout&lt;/STRONG&gt; parameter to &lt;STRONG&gt;8hrs&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Attaching the Logs for error details.&lt;/P&gt;
&lt;P&gt;00006124: 2024-10-17T08:36:14 [SOURCE_CAPTURE ]I: Sampled server version: 2016 (sqlserver_endpoint_imp.c:2393)&lt;BR /&gt;00006124: 2024-10-17T08:36:14 [SOURCE_CAPTURE ]I: NLS configuration sampled: Associated code page=1252 (sqlserver_endpoint_imp.c:2483)&lt;BR /&gt;00006588: 2024-10-17T08:36:14 [SORTER ]I: Reload for table Id 1 is requested (sorter_transaction.c:2468)&lt;BR /&gt;00006588: 2024-10-17T08:36:14 [SORTER ]I: Start collecting changes for table id = 1 (sorter_transaction.c:2343)&lt;BR /&gt;00012580: 2024-10-17T08:36:14 [TASK_MANAGER ]I: Start loading table 'dbo'.'tablename' (Id = 1) by subtask 1. Start load timestamp 000624A378125340 (replicationtask_util.c:755)&lt;BR /&gt;00013444: 2024-10-17T08:36:16 [SOURCE_UNLOAD ]I: Calculated batch used for UNLOAD size is 1 rows per fetch. (sqlserver_endpoint_unload.c:222)&lt;BR /&gt;00006124: 2024-10-17T08:36:20 [TARGET_LOAD ]I: Table 'dbo'.'Main_tablename' contains LOB columns, change working mode to default mode (odbc_endpoint_imp.c:8309)&lt;BR /&gt;00006124: 2024-10-17T08:36:20 [TARGET_LOAD ]I: Table 'dbo'.'Main_tablename' has Non-Optimized Full LOB Support (odbc_endpoint_imp.c:8322)&lt;BR /&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: SqlStat: 42000 NativeError:9005 [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...). (PcbMsg: 105) [1020417] (sqlserver_log_processor.c:4338)&lt;BR /&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: Encountered an unexpeceted error. [1020417] (sqlserver_endpoint_capture.c:1043)&lt;BR /&gt;00012580: 2024-10-17T08:37:02 [TASK_MANAGER ]I: Task error notification received from subtask 0, thread 0, status 1020417 (replicationtask.c:3520)&lt;BR /&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: Error executing source loop [1020417] (streamcomponent.c:1942)&lt;BR /&gt;00009924: 2024-10-17T08:37:02 [TASK_MANAGER ]E: Stream component failed at subtask 0, component st_0_UAT [1020417] (subtask.c:1433)&lt;BR /&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: Stream component 'st_0_UAT' terminated [1020417] (subtask.c:1602)&lt;BR /&gt;00012580: 2024-10-17T08:37:02 [TASK_MANAGER ]W: Task 'SP_CDC' encountered a recoverable error (repository.c:6049)&lt;BR /&gt;00006588: 2024-10-17T08:37:02 [SORTER ]I: Final saved task state. Stream position 00ccda62:00000040:0001, Source id 177163, next Target id 155049, confirmed Target id 155045, last source timestamp 1729134421600000 (sorter.c:781)&lt;BR /&gt;00012580: 2024-10-17T08:37:02 [TASK_MANAGER ]I: Subtask #0 ended (replicationtask_util.c:591)&lt;BR /&gt;00012580: 2024-10-17T08:37:02 [TASK_MANAGER ]I: Subtask #1 ended (replicationtask_util.c:591)&lt;BR /&gt;00012580: 2024-10-17T08:37:11 [SERVER ]I: Stop server request received internally (server.c:2410)&lt;BR /&gt;00012580: 2024-10-17T08:37:11 [TASK_MANAGER ]I: Task management thread terminated (replicationtask.c:4446)&lt;BR /&gt;00005380: 2024-10-17T08:37:11 [SERVER ]I: Client session (ID 407799875) closed (dispatcher.c:195)&lt;BR /&gt;00005380: 2024-10-17T08:37:11 [UTILITIES ]I: The last state is saved to file 'E:\Qlik Replicate\data\tasks\SP_CDC/StateManager/ars_saved_state_000002.sts' at Thu, 17 Oct 2024 03:07:02 GMT (1729134422255912) (statemanager.c:642)&lt;BR /&gt;00010504: 2024-10-17T08:37:11 [SERVER ]I: The process stopped (server.c:2537)&lt;BR /&gt;00010504: 2024-10-17T08:37:11 [AT_GLOBAL ]I: Closing log file at Thu Oct 17 08:37:11 2024 (at_logger.c:2553)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vaibhav B.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487603#M12984</guid>
      <dc:creator>Vaibhav_19</dc:creator>
      <dc:date>2024-10-17T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487719#M12988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117889"&gt;@Vaibhav_19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;00009924: 2024-10-17T08:37:02 [SOURCE_CAPTURE ]E: SqlStat: 42000 NativeError:9005 [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid parameter passed to OpenRowset(DBLog, ...). (PcbMsg: 105) [1020417] (sqlserver_log_processor.c:4338)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This error means that the LSN the task needs to continue without losing data is no longer available in the online TLOG or the backup TLOGs. Your options are to reload the task or restore the missing backup TLOGs so the task can continue. You should consider increasing the retention period of the backup TLOGs to help prevent this in the future.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might also consider working with our Professional Services team (fee based) to ensure the task is set up for the best possible performance for the amount of volume at the source. Reach out to your Account Manager if this is of interest.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 18:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487719#M12988</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2024-10-17T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487780#M12994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117889"&gt;@Vaibhav_19&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;In addition to Dana's comment, please check if the task was stopped for a long period. To prevent truncation from the TLOG, Replicate starts transactions in the source database by default. If the task was stopped, truncation may occur, causing Replicate to be unable to find the corresponding LSN. Please find the details from the following link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2024/Content/Replicate/Main/SQL%20Server/SQLServerDBSource_AdvProps.htm#ar_sqlserverds_1727505754_1669928" target="_blank" rel="noopener"&gt;Microsoft SQL Server - Setting advanced connection properties&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 02:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2487780#M12994</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-10-18T02:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488010#M13007</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64550"&gt;@Vaibhav&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When working with an MS-SQL source endpoint, the COMMIT event usually shows up with LCX_NULL context.&amp;nbsp;Here it comes with a context which is not recognized yet and therefore Replicate produces an error.&amp;nbsp; An easy and immediate option to solve the error is to ignore the validity of the CONTEXT value in the case of COMMIT, assuming that the MS-SQL storage engine knows its job better than Replicate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When Replicate reads from the online log it will use the fn_dblog function, the first&amp;nbsp;parameter&amp;nbsp;passed&amp;nbsp;to&amp;nbsp;the query is the last LSN that Replicate processed.&amp;nbsp;If there is no access&amp;nbsp;to&amp;nbsp;the backups and the log has been truncated you can get this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If the cause of the problem is reason 1&amp;nbsp; mentioned below, to eliminate the error, you should edit the MS-SQL source endpoint setting under Replicate GUI:
&lt;OL&gt;
&lt;LI&gt;manage endpoints connections --&amp;gt;&amp;nbsp; [your MS-SQL source endpoint definition] --&amp;gt; advanced tab --&amp;gt; internal parameters&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Add the internal parameter:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ignoreTxnCtxValidityCheck&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;and set it to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;If the cause of the problem is reason 2&amp;nbsp; mentioned below, you should make sure that the TLOG backups are available to Replicate&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin B&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 01:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488010#M13007</guid>
      <dc:creator>SachinB</dc:creator>
      <dc:date>2024-10-19T01:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488365#M13026</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;We have resolved the issue by.&lt;/P&gt;
&lt;P&gt;1. We increase the &lt;STRONG&gt;ExecutionTimeout&lt;/STRONG&gt; parameter value.&lt;BR /&gt;2. From logs we find the LOB size and change the task setting set it to &lt;STRONG&gt;Limted LOB Size&lt;/STRONG&gt; to 30000KB.&lt;/P&gt;
&lt;P&gt;By setting the parameters Task Full-Load completes successfully and CDC are Capturing.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488365#M13026</guid>
      <dc:creator>Vaibhav_19</dc:creator>
      <dc:date>2024-10-22T09:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Handling LOB</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488380#M13027</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117889"&gt;@Vaibhav_19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;30000KB of lob size is quite large which is not required to be that much long. you can keep it to 32,16kb or 8kb as per business requirement.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;ExecutionTimeout&lt;/STRONG&gt;&amp;nbsp; Should be referred when you found timeout either on Source and Target endpoint.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sushil Kumar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 10:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Handling-LOB/m-p/2488380#M13027</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2024-10-22T10:25:12Z</dc:date>
    </item>
  </channel>
</rss>

