<?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 all files into a Web Folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519437#M599002</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if the question has been asked already, but I didn't found.&lt;/P&gt;&lt;P&gt;I need to gel all XML file placed into a folder on a web server.&lt;/P&gt;&lt;P&gt;I can get one file when I create a File Web connexion as data source, but I can't select all files like path/*.xml&lt;/P&gt;&lt;P&gt;What could be a solution please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Qlik sense February 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 16:44:09 GMT</pubDate>
    <dc:creator>brice_roselier</dc:creator>
    <dc:date>2018-12-11T16:44:09Z</dc:date>
    <item>
      <title>How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519437#M599002</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if the question has been asked already, but I didn't found.&lt;/P&gt;&lt;P&gt;I need to gel all XML file placed into a folder on a web server.&lt;/P&gt;&lt;P&gt;I can get one file when I create a File Web connexion as data source, but I can't select all files like path/*.xml&lt;/P&gt;&lt;P&gt;What could be a solution please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Qlik sense February 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519437#M599002</guid>
      <dc:creator>brice_roselier</dc:creator>
      <dc:date>2018-12-11T16:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519440#M599003</link>
      <description>&lt;P&gt;You can't solve this on the Qlikview side. The server that hosts the files will either need to allow seeing the index of that folder, i.e. a list of all the files. Or it will need to host a file there that contains a list of all the files. In both cases Qlikview will then first need to get that list of files. Only then can it iterate through that list to retrieve all the files.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519440#M599003</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-11T16:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519875#M599004</link>
      <description>&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;I will generate a file containing all files to load.&lt;/P&gt;&lt;P&gt;Do you have a link (tuto or discussion) who explain how to load files content from a list ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1519875#M599004</guid>
      <dc:creator>brice_roselier</dc:creator>
      <dc:date>2018-12-12T13:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1520642#M599006</link>
      <description>&lt;P&gt;First load the file with the list of files into a table. Suppose you have file called fileslist.txt with this content:&lt;/P&gt;&lt;PRE&gt;file1.csv
file2.csv
file3.csv&lt;/PRE&gt;&lt;P&gt;You can load that data into a table called Files:&lt;/P&gt;&lt;PRE&gt;Files:
LOAD @1 as Filename FROM filelist.txt;&lt;/PRE&gt;&lt;P&gt;Then you can use a for next loop to iterate through the records of the table to retrieve each filename and then load the data from the files:&lt;/P&gt;&lt;PRE&gt;// create an empty table to which we can append all the data
Data: LOAD '' as SourceFile Autogenerate 0;

For i = 0 to NoOfRows('Files') - 1  

    LET vFileName = Peek('Filename', $(i), 'Files');

    CONCATENATE (Data)
    LOAD 
        *, 
        $(vFileName) as SourceFile
    FROM
        [http://myserver.com/$(vFileName)] (txt, delimiter is ',')
        ;

Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1520642#M599006</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-13T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1521456#M599007</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Gysbert_Wassena&lt;/SPAN&gt;&lt;SPAN&gt;ar,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have adapted the script for my context, but it doesn't work for me. May be because of my data come from xml files and not csv ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ok to create an empty table and loop :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The file containing list of the files to load is on the server too. I created a connection from file Web :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;files: 
LOAD
    @1 as name
FROM [lib://index_result_tif]
(txt, codepage is 28591, no labels, delimiter is spaces, msq);&lt;/PRE&gt;&lt;PRE&gt;tif_results: 
LOAD 
	'' as SourceFile Autogenerate 0;

For i = 0 to NoOfRows('files') - 1  

    LET vFileName = Peek('name', $(i), 'files');

  /*  CONCATENATE (tif_results)*/
    /*LOAD 
      
        $(vFileName) as SourceFile
    FROM
        [http://10.1.11.30/$(vFileName)] (txt, delimiter is ',')
        ;
*/
Next&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;When I try to load data from server (only for the moment), I get :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;L'erreur suivante s'est produite:
This statement only works with lib:// paths in this script mode
Emplacement de l'erreur:
LOAD 
      
        detail_cm_linux_postgresql_chrome.xml as SourceFile
    FROM
        [http://10.1.11.30/qualite/tpta/tests/tif/last/detail_cm_linux_postgresql_chrome.xml] (txt, delimiter is ',')&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Qlik sense could not load data because of file on server is not a librairy file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 09:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1521456#M599007</guid>
      <dc:creator>brice_roselier</dc:creator>
      <dc:date>2018-12-17T09:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all files into a Web Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1521475#M599008</link>
      <description>&lt;P&gt;Ok, two problems. First of you're not using Qlikview although you posted this question in the Qlikview section. In Qlik Sense you can't reference files directly but you need to use a library connection. So you'll have to create such a library connection to one of the xml files. You can the reuse that to get the other xml files using the URL IS option to change the url dynamically. See the example on this page: &lt;A href="https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/DataSource/load-data-from-files.htm#Web" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/DataSource/load-data-from-files.htm#Web&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And you can't load xml files as csv files. Create a load statement for a single xml file first you you know how to load the data from the xml files. Then use that load statement in the for next loop and change the bits that need to change, like the URL IS option.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 09:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-all-files-into-a-Web-Folder/m-p/1521475#M599008</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-17T09:45:59Z</dc:date>
    </item>
  </channel>
</rss>

