<?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: Lock on flat files in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447155#M10838</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90520"&gt;@suvbin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I've conducted a test and Replicate does not&amp;nbsp;lock the file during full load.&lt;BR /&gt;&lt;BR /&gt;I think you may separate the working folders, e.g. "Qlik" and "App" for Replicate and your application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replicate reads a source file under "Qlik" and customer appends records to a text file under "App". When Replicate task starts, copies the source file from "App" to "Qlik". This can be done by "&lt;STRONG&gt;Preprocessing Command&lt;/STRONG&gt;" defined in the source endpoint. Then your application won't affect Replicate's job.&lt;BR /&gt;&lt;BR /&gt;However, please be aware that you have to update the source table metadata in the endpoint accordingly when you perform full load.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 16:19:59 GMT</pubDate>
    <dc:creator>DesmondWOO</dc:creator>
    <dc:date>2024-04-30T16:19:59Z</dc:date>
    <item>
      <title>Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446612#M10820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Facing error&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;"Failed to write record id: x, Number of values: y is not equal to number of columns: z" .&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp;When Qlik is reading the file and at the same time , file is being overwritten by another job.&lt;/P&gt;
&lt;P&gt;So is there any setting in the replicate, to lock the file while reading by replicate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 01:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446612#M10820</guid>
      <dc:creator>suvbin</dc:creator>
      <dc:date>2024-04-30T01:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446625#M10821</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90520"&gt;@suvbin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;To address the issue you've encountered with CSV source files being overwritten during replication, it seems that newer versions of the CSV files were generated before Qlik Replicate completed reading them, resulting in reported errors.&lt;/P&gt;
&lt;P&gt;To improve the process flow and prevent Qlik Replicate from reading incomplete CSV files, consider the following steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Ensure that third-party applications deposit the CSV files into an interim data folder.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Allow Qlik Replicate to complete reading a batch of files, ensuring that the task stops after the Full Load is finished.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Implement a "rename" command to swiftly move the CSV files from the interim folder to Qlik Replicate source data folder for processing. The "rename" operation is notably faster than a "copy" operation especially while the 2 folders are in the same drive. This strategy helps prevent Qlik Replicate from initiating the reading of incomplete CSV files mid-copy.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;By following these steps, you can streamline the process flow and mitigate errors caused by file overwriting and incomplete data reads.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;BR /&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 03:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446625#M10821</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-30T03:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446628#M10822</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; writes, it is best to NOT expose Replicate to a file which might still be written to by NOT having it have it final name, or final location while being written. Rename or Move when ready for ingestion.&lt;/P&gt;
&lt;P&gt;Please consider using a 'reference file', and add a new line referencing a new file to process on when that file is fully available.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 03:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446628#M10822</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-04-30T03:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446669#M10823</link>
      <description>&lt;P&gt;thank you for the update. Is there any document on the same please&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 06:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446669#M10823</guid>
      <dc:creator>suvbin</dc:creator>
      <dc:date>2024-04-30T06:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446939#M10831</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90520"&gt;@suvbin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you are looking for the docs about how to setup File Source, Please check&amp;nbsp;&lt;A title="File Source overview" href="https://help.qlik.com/en-US/replicate/November2023/Content/Replicate/Main/File/file_source_Overview.htm#:~:text=as%20a%20source-,File%20source%20overview,Reference%20files,-Did%20this%20page" target="_blank" rel="noopener"&gt;File Source overview&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 11:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2446939#M10831</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-30T11:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447155#M10838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90520"&gt;@suvbin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I've conducted a test and Replicate does not&amp;nbsp;lock the file during full load.&lt;BR /&gt;&lt;BR /&gt;I think you may separate the working folders, e.g. "Qlik" and "App" for Replicate and your application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replicate reads a source file under "Qlik" and customer appends records to a text file under "App". When Replicate task starts, copies the source file from "App" to "Qlik". This can be done by "&lt;STRONG&gt;Preprocessing Command&lt;/STRONG&gt;" defined in the source endpoint. Then your application won't affect Replicate's job.&lt;BR /&gt;&lt;BR /&gt;However, please be aware that you have to update the source table metadata in the endpoint accordingly when you perform full load.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 16:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447155#M10838</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-04-30T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447171#M10839</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;When Replicate task starts, copies the source file from "App" to "Qlik". This can be done by "&lt;/SPAN&gt;&lt;STRONG&gt;Preprocessing Command&lt;/STRONG&gt;&lt;SPAN&gt;" defined in the source endpoint.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I beg to differ. COPY is NOT the proper method. That creates a timing window and potentially&amp;nbsp; consumes excessive resources.&amp;nbsp; Rename file-name or move into alternative (sub)directory (on same volume) does NOT involve data movement or access conflicts.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 17:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447171#M10839</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-04-30T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lock on flat files</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447243#M10841</link>
      <description>&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;, "rename" is the best approach among "copy" and other options.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 00:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Lock-on-flat-files/m-p/2447243#M10841</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-05-01T00:43:50Z</dc:date>
    </item>
  </channel>
</rss>

