<?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 Import multiple .csv files with same headers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037971#M933034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple (monthly) .csv files which need to be imported.&amp;nbsp; Each is named EmpFinFile 201507, EmpFinFile201508, EmpFinFile201509, etc. How do I create a script that imports each file using 1 load which loops or iterates for each month?&amp;nbsp; Instead of having multiple load statements for each file resulting in a very long script!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 13:18:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-26T13:18:45Z</dc:date>
    <item>
      <title>Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037971#M933034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple (monthly) .csv files which need to be imported.&amp;nbsp; Each is named EmpFinFile 201507, EmpFinFile201508, EmpFinFile201509, etc. How do I create a script that imports each file using 1 load which loops or iterates for each month?&amp;nbsp; Instead of having multiple load statements for each file resulting in a very long script!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037971#M933034</guid>
      <dc:creator />
      <dc:date>2016-02-26T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037972#M933035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a wildcard load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;STRONG&gt;EmpFinFile*.csv&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If you do use a wildcard load then all the csv files must have the exact same fields. Otherwise you need a loop like the example in this discussion: &lt;A href="https://community.qlik.com/thread/62449"&gt;loop through to load all files from a folder and its subfolders?&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 17:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037972#M933035</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-26T17:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037973#M933036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the following load statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from path/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EmpFinFile*.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure all the csv files in the same folder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037973#M933036</guid>
      <dc:creator>hareeshkumar_gv</dc:creator>
      <dc:date>2016-02-26T18:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037974#M933037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;check this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="8912" data-objecttype="102" href="https://community.qlik.com/docs/DOC-8912" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Load latest Excel file to Qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037974#M933037</guid>
      <dc:creator>sacosta5</dc:creator>
      <dc:date>2016-02-26T18:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037975#M933038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;-Wildcard load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load * from EmpFinFile*.csv (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;-Loop through files and load data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For Each File in filelist ($(PathToDirectory)EmpFinFile*.csv')') &lt;BR /&gt;YourTable:&lt;BR /&gt;LOAD * FROM '$(File)' (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;NEXT File;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer looping through files because, when using wildcard load, if directory is empty and there are no files to load Qlikview will throw an error and your script will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037975#M933038</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-02-26T19:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037976#M933039</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;you can include a field in your load statement to distinguish between the different file months like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14565396360064587" jivemacro_uid="_14565396360064587"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date#(Right(FileBaseName(),6),'YYYYMM')) as FileMonth&lt;/P&gt;
&lt;P&gt;From *.CSV ...&lt;/P&gt;

&lt;/PRE&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;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2016 02:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037976#M933039</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-27T02:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037977#M933040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got identical files (fields) from different systems that I need to merge. One is FCode12.csv, another ist FCode3.csv and so on.&lt;/P&gt;&lt;P&gt;The only difference is the data contained therein, file FCode12.csv contains all 1xx and 2xx errors, FCode3.csv all 3xx errors etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the proposed technique to have them loaded by use of wildcard (see below for my code), however I get the import as different tables and fields (Error.Fcode, Error1.Fcode ....)&lt;/P&gt;&lt;P&gt;the only difference to your proposed solution with wildcard is, that I have to qualify the importsw, because we got to load other tables that have same field names as other tables. I learned to prevent mixup, you have to use the 'Qualify' statement ...?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Any sugestion how to load those duplicated files?&lt;/P&gt;&lt;P&gt;Note: those files below are the most simple tables. For my application I have to load 12 different CSV files, all with several duplicates to it and partially up to 60 fileds in it ...&amp;nbsp; so loading them 1:1 is not an option, I need to have a bulk import for each cluster ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greatful for any tips or hints on how to achive that data load. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//***************** Table(Tbl) Error from FCode*.csv in /Test subfolder **********************&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY '%*';&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Meldung as %MeldungFCode, //Unique Key for this Tbl, link to Tbl Fact_Service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Schadenscode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Kurztext zum Code"&lt;/P&gt;&lt;P&gt;FROM [lib://Belimed/Test/FCode*.csv]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037977#M933040</guid>
      <dc:creator />
      <dc:date>2017-07-21T13:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import multiple .csv files with same headers</title>
      <link>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037978#M933041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please open a new thread for your question&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;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2017 20:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-multiple-csv-files-with-same-headers/m-p/1037978#M933041</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-22T20:02:25Z</dc:date>
    </item>
  </channel>
</rss>

