<?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: How to load multiple Excel Files into Qlikview with For Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974217#M333128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let vDataFolder = '..\ExcelFiles\'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;&lt;P&gt;// Check if file exists in the folder&lt;/P&gt;&lt;P&gt;if(FileSize('$(vDataFolder)*.xls')&amp;gt;0) then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;trace "files exist";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Loop through each file under &lt;SPAN style="font-size: 13.3333px;"&gt;ExcelFiles &lt;/SPAN&gt;folder&lt;/P&gt;&lt;P&gt;&amp;nbsp; for each vFiles in filelist('$(vDataFolder)*.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp; dat:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD FileName() as filename, FileTime() as filetime, *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFiles)](biff, no labels, table is @1) ; // you can give the sheet name here&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;trace "no files exist";&lt;/P&gt;&lt;P&gt;END if;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 19:47:08 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2015-09-17T19:47:08Z</dc:date>
    <item>
      <title>How to load multiple Excel Files into Qlikview with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974216#M333127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; I Have One Folder :&amp;nbsp; &lt;STRONG&gt;D:\ExcelFiles&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG&gt;(Here I am Having Multiple Excel Files with Multiple Sheets)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; I want to load all Excel Files into Qlikview&lt;/P&gt;&lt;P&gt;Note : By Using&amp;nbsp;&amp;nbsp; "&lt;STRONG&gt;For Loop&lt;/STRONG&gt;" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; How Can &lt;STRONG&gt;SET ErrorMode&lt;/STRONG&gt; ? &lt;/P&gt;&lt;P&gt;--&amp;gt; While Loading an error in Particular File&amp;nbsp; "&lt;STRONG&gt;Generate A Log File&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How we Can Achieve this one ?? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 18:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974216#M333127</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2015-09-17T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple Excel Files into Qlikview with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974217#M333128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let vDataFolder = '..\ExcelFiles\'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;&lt;P&gt;// Check if file exists in the folder&lt;/P&gt;&lt;P&gt;if(FileSize('$(vDataFolder)*.xls')&amp;gt;0) then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;trace "files exist";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Loop through each file under &lt;SPAN style="font-size: 13.3333px;"&gt;ExcelFiles &lt;/SPAN&gt;folder&lt;/P&gt;&lt;P&gt;&amp;nbsp; for each vFiles in filelist('$(vDataFolder)*.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp; dat:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD FileName() as filename, FileTime() as filetime, *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFiles)](biff, no labels, table is @1) ; // you can give the sheet name here&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;trace "no files exist";&lt;/P&gt;&lt;P&gt;END if;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 19:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974217#M333128</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2015-09-17T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple Excel Files into Qlikview with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974218#M333129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sudeep Mahapatra&lt;/P&gt;&lt;P&gt;Thanks For your Reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&amp;gt; In our Excel file Folder "one Excel file does not have an Header (Field Names)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; How Can we set Error Mode , If an Error Occur ?&lt;/P&gt;&lt;P&gt;--&amp;gt; How can we Generate a log File for Errors only ? (With out using "Generate Log File ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Attaching Screen shots as follows :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="298" src="https://community.qlik.com/legacyfs/online/99282_1.png" style="height: 298px; width: 490.554px;" width="491" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note :&amp;nbsp; For Missing_Data.xlsx file , Field names are missing ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Excel Files :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/99283_2.png" style="height: auto;" /&gt;&lt;IMG alt="3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/99284_3.png" style="height: auto;" /&gt;&lt;IMG alt="4.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/99285_4.png" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can we "Concatenate Previous two tables" ?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&amp;gt;How can we generate a log file for this missing fields table ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Madhu&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 20:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974218#M333129</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2015-09-17T20:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple Excel Files into Qlikview with For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974219#M333130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Please see my answer below (italic)...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;--&amp;gt; In our Excel file Folder "one Excel file does not have an Header (Field Names)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;For files that does not have header info as expected you need to design your code to handle such error scenarios and then report it.&lt;/EM&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;--&amp;gt; How Can we set Error Mode , If an Error Occur ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Normally QlikView stops executing script whenever an error occurs but if you set the error mode to 0 then it continues to run the script by providing you an opportunity to handle the error.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;--&amp;gt; How can we Generate a log File for Errors only ? (With out using "Generate Log File ")&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;You may create a table with all your error details. Please see QlikView help for "Error" and you can find more info on Error variables such as ErrorMode, ScriptError, ScriptErrorDetails etc.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;--&amp;gt;How can we generate a log file for this missing fields table ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Please take a look at this file handling utility here.&lt;A href="https://community.qlik.com/docs/DOC-5721"&gt;A file checker utility for file based data sources&lt;/A&gt;&lt;/EM&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 12:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-Excel-Files-into-Qlikview-with-For-Loop/m-p/974219#M333130</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2015-09-18T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

