<?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: Merge data from several TXT files from subfiles in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Merge-data-from-several-TXT-files-from-subfiles/m-p/1851614#M70348</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/89478"&gt;@KarimBen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It looks like your call of vConcatenate is not quite right. Just above the "First 10" it shouldn't have "Set vConcatenate" it should just read as $(vConcatenate). I think it also has to be moved above the table name "FileList".&lt;/P&gt;
&lt;P&gt;I hope that does the trick.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 05:17:19 GMT</pubDate>
    <dc:creator>anthonyj</dc:creator>
    <dc:date>2021-10-26T05:17:19Z</dc:date>
    <item>
      <title>Merge data from several TXT files from subfiles</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-data-from-several-TXT-files-from-subfiles/m-p/1851399#M70333</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need your help for the following Problem that I have.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I Have to merge Several Txt Data sets from different Subfolders in to one QVD,&amp;nbsp;&lt;BR /&gt;and attached with the foldername.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I try it with this Script but i get an error:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Field names must be unique within table"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Set vConcatenate = ;&lt;/P&gt;
&lt;P&gt;sub ScanFolder(Root)&lt;/P&gt;
&lt;P&gt;for each FileExtension in 'txt'&lt;/P&gt;
&lt;P&gt;for each FoundFile in filelist( Root &amp;amp; '\*.' &amp;amp; FileExtension)&lt;/P&gt;
&lt;P&gt;FileList:&lt;/P&gt;
&lt;P&gt;set vConcatenate;&lt;BR /&gt;first 10 &lt;BR /&gt;LOAD *,&lt;BR /&gt;&lt;BR /&gt;mid('$(FoundFile)' ,51,7) as Maschine,&lt;BR /&gt;mid('$(FoundFile)',59,11) as Material,&lt;BR /&gt;'$(FoundFile)' as Foundfile&lt;BR /&gt;FROM [$(FoundFile)] (txt, utf8, embedded labels, delimiter is '|', msq);&lt;/P&gt;
&lt;P&gt;Set vConcatenate = Concatenate;&lt;/P&gt;
&lt;P&gt;next FoundFile&lt;/P&gt;
&lt;P&gt;next FileExtension&lt;/P&gt;
&lt;P&gt;for each SubDirectory in dirlist( Root &amp;amp; '\*' )&lt;/P&gt;
&lt;P&gt;call ScanFolder(SubDirectory)&lt;/P&gt;
&lt;P&gt;next SubDirectory&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;Call ScanFolder('lib://QNAP BDE (prst_a.benchigra)/BDE Datenablage/') ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-25 17_01_26-20211022113026.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65166i41EE0222F167FBA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-10-25 17_01_26-20211022113026.png" alt="2021-10-25 17_01_26-20211022113026.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 15:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-data-from-several-TXT-files-from-subfiles/m-p/1851399#M70333</guid>
      <dc:creator>KarimBen</dc:creator>
      <dc:date>2021-10-25T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data from several TXT files from subfiles</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-data-from-several-TXT-files-from-subfiles/m-p/1851614#M70348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/89478"&gt;@KarimBen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It looks like your call of vConcatenate is not quite right. Just above the "First 10" it shouldn't have "Set vConcatenate" it should just read as $(vConcatenate). I think it also has to be moved above the table name "FileList".&lt;/P&gt;
&lt;P&gt;I hope that does the trick.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 05:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-data-from-several-TXT-files-from-subfiles/m-p/1851614#M70348</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2021-10-26T05:17:19Z</dc:date>
    </item>
  </channel>
</rss>

