<?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 How to get each files in a directory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865534#M302803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I try to make a script to allow me to convert each XLSX in QVD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FOR EACH File in FileList([&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/&lt;/A&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;XLSX:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/*.xlsx" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/*.xlsx&lt;/A&gt;&lt;SPAN&gt;] (txt, codepage is 1252, embedded labels, delimiter is ';', no quotes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE XLSX into $(File).qvd(qvd);&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I made it run there's any error but nothing appears too. I don't know if I use the "FOR EACH" well or not and the "FROM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if someone can explain my error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 09:32:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-07T09:32:27Z</dc:date>
    <item>
      <title>How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865534#M302803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I try to make a script to allow me to convert each XLSX in QVD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FOR EACH File in FileList([&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/&lt;/A&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;XLSX:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/*.xlsx" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/*.xlsx&lt;/A&gt;&lt;SPAN&gt;] (txt, codepage is 1252, embedded labels, delimiter is ';', no quotes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE XLSX into $(File).qvd(qvd);&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I made it run there's any error but nothing appears too. I don't know if I use the "FOR EACH" well or not and the "FROM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if someone can explain my error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 09:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865534#M302803</guid>
      <dc:creator />
      <dc:date>2015-04-07T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865535#M302804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would the script look like for just one file? Using the wizard may then allow you to take the steps for an automation.&lt;/P&gt;&lt;P&gt;Am not sure, whether the datatype is appropriate - you mention as filextension "xlsx", but specify that it should be txt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the error-message say - sometimes it gives already an hint, what might be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865535#M302804</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-04-07T15:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865536#M302805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script for one file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/Data%20Entry.xlsx" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/Data%20Entry.xlsx&lt;/A&gt;&lt;SPAN&gt;] (txt, codepage is 1252, embedded labels, delimiter is ';', no quotes);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE XLSX into XLSX.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the datatype, I have xlsx for Microsoft Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's not error message, that's why I don't really know what I can do to fix that. (First script I sent to this post)&lt;/P&gt;&lt;P&gt;I think that my script doesn't read my FTP's address because with this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://AAA:VVV@11.111.11.111/DV/*.xlsx" rel="nofollow"&gt;ftp://AAA:VVV@11.111.11.111/DV/&lt;SPAN style="color: #ff0000;"&gt;*.xlsx&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', no quotes);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE XLSX into XLSX.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this message: "Cannot open file"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865536#M302805</guid>
      <dc:creator />
      <dc:date>2015-04-07T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865537#M302806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;store th directory on ur desktop and run script , this will tell u whether it is a ftp issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865537#M302806</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-04-07T16:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865538#M302807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pretty sure FileList( ) does not support FTP as filesystem. FileList() only enumerate files on a Windows regular filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and likewise &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not support FTP as a filesystem which can accept wildcards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865538#M302807</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-07T18:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865539#M302808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you stop the script before the STORE ....command,&lt;/P&gt;&lt;P&gt;do you really have valid data loaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;typically you should load an Excel-file with params like&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865539#M302808</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-04-07T18:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865540#M302809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some models using similar logic and your script looks fine with one exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Peter mentioned, you need to specify a sheet in the workbook via the table parameter or else the script has nothing to process hence no results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means you need you to update the following section to be something like:&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', no quotes&lt;STRONG&gt;&lt;EM&gt;, table is [My Sheet]&lt;/EM&gt;&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 00:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865540#M302809</guid>
      <dc:creator />
      <dc:date>2015-04-08T00:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865541#M302810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I stop my script before the STORE nothing loaded and I changed my params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Petter Skjolden said, my script cannot read my Filelist() because of FTP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know another way to load excel files without Filelist or For each ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865541#M302810</guid>
      <dc:creator />
      <dc:date>2015-04-09T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865542#M302811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Filelist() doesn't support FTP, do not exist another way to load? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865542#M302811</guid>
      <dc:creator />
      <dc:date>2015-04-09T07:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865543#M302812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my script don't really read in my FTP, because when I run nothing load. Do you use Filelist on your models ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865543#M302812</guid>
      <dc:creator />
      <dc:date>2015-04-09T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865544#M302813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the FTP-support is so flimsy that I have used other FTP solutions to implement FTP operations. You have a built-in FTP client in Windows that can be used and can be triggered from a load script with the EXECUTE statement. There are other high-quality open-source clients too that you can use from a load script: wget and especially cURL. Unfortunately this comes at a "price" ... which is time, effort and IT-skills - not license money... But in the end you get a trustworthy FTP-solution. You can download a directory-listing ... parse this to do some FTP-transfers and it works both ways and with full logging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The LOAD ... FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="FTP://" rel="nofollow"&gt;FTP://&lt;/A&gt;&lt;SPAN&gt;....] does not work against all types of FTP-servers out there ... I tried it the day before yesterday without any luck against a hosting-provider that runs Microsofts FTP-server - No luck... and then against a UNIX-based FTP-server where it works OK.... but as I said it is not something I use or trust.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865544#M302813</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-09T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get each files in a directory</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865545#M302814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am using filelist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example on the Community where another contributor has used a two step process to load in data via FTP without using Filelist so this may be an option for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/594187"&gt;Re: For Each File in Filelist - FTP load is not working?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Petter posted, FTP support is a bit hit and miss and is also dependant on the FTP version/platform you are trying to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 22:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-each-files-in-a-directory/m-p/865545#M302814</guid>
      <dc:creator />
      <dc:date>2015-04-09T22:15:59Z</dc:date>
    </item>
  </channel>
</rss>

