<?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: Load Multiple CSV file from the specified directory into a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529018#M481026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In principle you are doing the right thing. Two things though:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is vDirPath defined?&lt;/LI&gt;&lt;LI&gt;The 'From $(csvfile)' should be quoted: From [$(csvfile)]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I agree with Paul that you should use the debugger to find the error. Press "Step" until you come to the relevant statements, and check that the For-Next and the Load have correct parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Debug.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48198_Debug.png" style="width: 620px; height: 339px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 21:30:15 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-10-25T21:30:15Z</dc:date>
    <item>
      <title>Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529013#M481021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load the csv file from the specific directory into a table.&lt;/P&gt;&lt;P&gt;Can anyone tell me how to do it.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;csvFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;filelist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ('$(vDirPath)*.csv') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;TableName&amp;gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;From $(csvfile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ',', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;msq&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;next csvfile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am getting on error that the from filename is missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 18:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529013#M481021</guid>
      <dc:creator />
      <dc:date>2013-10-25T18:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529014#M481022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can just use this simple version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from dirpath\*.csv&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt; ',', &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;msq&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em; font-style: inherit; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529014#M481022</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2013-10-25T20:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529015#M481023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was doing this initially.&amp;nbsp; But i would like to store it into a table and also i get a file on monthly basis so i decided to put into the for loop to concatenate the data into table. Is there anyway i scan through the files in the directory and load the same into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529015#M481023</guid>
      <dc:creator />
      <dc:date>2013-10-25T20:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529016#M481024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course, infact the syntax should be right.&lt;/P&gt;&lt;P&gt;maybe a copy / paste error, but the from variable is not the same as the for each. it has to be exactly the same upper an lower case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the csvfile variable in the load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the debug mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529016#M481024</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2013-10-25T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529017#M481025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with something like this:&lt;/P&gt;&lt;P&gt;vPath = File directory where you're storing xls files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each File in FileList('$(vPath)\File*.xlsx') &lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Field1,&lt;/P&gt;&lt;P&gt;Field2,&lt;/P&gt;&lt;P&gt;FieldN&lt;/P&gt;&lt;P&gt;From $(File);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529017#M481025</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2013-10-25T21:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529018#M481026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In principle you are doing the right thing. Two things though:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is vDirPath defined?&lt;/LI&gt;&lt;LI&gt;The 'From $(csvfile)' should be quoted: From [$(csvfile)]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I agree with Paul that you should use the debugger to find the error. Press "Step" until you come to the relevant statements, and check that the For-Next and the Load have correct parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Debug.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48198_Debug.png" style="width: 620px; height: 339px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529018#M481026</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-10-25T21:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529019#M481027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jamie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 22:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529019#M481027</guid>
      <dc:creator />
      <dc:date>2013-10-25T22:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529020#M481028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Dear Henric Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i want to apply same mechanism From FTP Server. i have been struggle past 10 days &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 06:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529020#M481028</guid>
      <dc:creator>pandiarajan</dc:creator>
      <dc:date>2014-04-02T06:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529021#M481029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried it, but I doubt that this is possible using the FileList() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could perhaps try to execute a ls command, pipe this into a local file, and read this file with QlikView. But, sorry to say, I am not an expert on ftp, so I could be wrong here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 07:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529021#M481029</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-04-02T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV file from the specified directory into a table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529022#M481030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have actually been trying the same thing a couple of hours and by combining the mentioned solution in this post with a solution from another i came up with a nice solution. You can probably just copy/paste if you want to try it. My solution fetches all the xml files in a folder so you can just change "*.xml" to your preferred file ending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vPath = [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://your_username:your_password@your_serveraddress/folder_where_the_files_are_stored"&gt;ftp://your_username:your_password@your_serveraddress/folder_where_the_files_are_stored&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;FOR Each File in filelist ('$(vPath)*.xml')&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Fieldname1,&lt;/P&gt;&lt;P&gt;Fieldname2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;'$(File)'&lt;/P&gt;&lt;P&gt;(XmlSimple, Table is [Database/Data]);&lt;/P&gt;&lt;P&gt;NEXT File;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 13:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Multiple-CSV-file-from-the-specified-directory-into-a-table/m-p/529022#M481030</guid>
      <dc:creator>peter_magnusson</dc:creator>
      <dc:date>2014-05-14T13:37:00Z</dc:date>
    </item>
  </channel>
</rss>

