<?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 Load files within path in a table - ¿Any other better way? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1996095#M82483</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load in a table all files within a certain path.&lt;/P&gt;
&lt;P&gt;For doing so, the script is easy.&lt;/P&gt;
&lt;P&gt;FOR EACH vFile IN FileList ('path\')&lt;/P&gt;
&lt;P&gt;let vFileName = filebasename ($(vFile));&lt;/P&gt;
&lt;P&gt;FILES:&lt;BR /&gt;load * inline [&lt;BR /&gt;fileName&lt;BR /&gt;$(vFileName)];&lt;BR /&gt;&lt;BR /&gt;next;&lt;/P&gt;
&lt;P&gt;The problem I am facing is that sometimes there ara over 100.000 files within the path, and it takes too long.&lt;/P&gt;
&lt;P&gt;Any other better way to implement it?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 10:50:03 GMT</pubDate>
    <dc:creator>Fernando_Sanchez</dc:creator>
    <dc:date>2022-10-24T10:50:03Z</dc:date>
    <item>
      <title>Load files within path in a table - ¿Any other better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1996095#M82483</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to load in a table all files within a certain path.&lt;/P&gt;
&lt;P&gt;For doing so, the script is easy.&lt;/P&gt;
&lt;P&gt;FOR EACH vFile IN FileList ('path\')&lt;/P&gt;
&lt;P&gt;let vFileName = filebasename ($(vFile));&lt;/P&gt;
&lt;P&gt;FILES:&lt;BR /&gt;load * inline [&lt;BR /&gt;fileName&lt;BR /&gt;$(vFileName)];&lt;BR /&gt;&lt;BR /&gt;next;&lt;/P&gt;
&lt;P&gt;The problem I am facing is that sometimes there ara over 100.000 files within the path, and it takes too long.&lt;/P&gt;
&lt;P&gt;Any other better way to implement it?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 10:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1996095#M82483</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-24T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load files within path in a table - ¿Any other better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1996508#M82525</link>
      <description>&lt;P&gt;you can load all files with the same file format in one go using wildcard ( * ) instead of name&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need FOR LOOP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the table structure for all files in the same, QLIK will auto concatenate all tables&lt;/P&gt;
&lt;P&gt;as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;All QVD files in a given folder path&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FILES:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load *&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From [lib://somepath/somefolder/*.qvd](qvd);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;All XLSX files in path&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [lib://somepath/somefolder/*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is &lt;U&gt;sheetnamehere&lt;/U&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 09:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1996508#M82525</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-25T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load files within path in a table - ¿Any other better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997856#M82640</link>
      <description>&lt;P&gt;Thanks a lot for the answer.&lt;/P&gt;
&lt;P&gt;By doing so it loads all info within every file. I just need the name of the field. But you gave me an idea.&lt;/P&gt;
&lt;P&gt;To achieve this you can, for example&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FILES:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load first 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;filename() as fileName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From [path];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunatly, it takes too long as well. More or less the same with the loop.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The problem I am facing is that within a certain path i might have over 100.000 files, and ir order to get every filename it may take 1hour.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any other quiker way?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997856#M82640</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-27T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load files within path in a table - ¿Any other better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997858#M82642</link>
      <description>&lt;P&gt;Interesting,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by simply not renaming fileName() it speeds up the load x 10...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FILES:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load first 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;filename()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From [path];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FILES_2:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;load [fileName()] as file&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Resident FILE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;drop table FILE_2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997858#M82642</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-27T21:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load files within path in a table - ¿Any other better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997859#M82643</link>
      <description>&lt;P&gt;Anyhow there is a problem when the file you are loading is not "loadable", for instance a PDF.&lt;/P&gt;
&lt;P&gt;Anyone knows how to achieve this?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-files-within-path-in-a-table-Any-other-better-way/m-p/1997859#M82643</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-27T21:41:16Z</dc:date>
    </item>
  </channel>
</rss>

