<?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 Loading Excel files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316633#M1201250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script should work - have you checked to load the file without the SQLCOLUMNS? Probably you are missing some drivers during last installation?&lt;BR /&gt;Have tried it under vers 10 - works. You may then add an inspection, like IF NOOFROWS('Columns') = 7 THEN ... ELSE ... END IF&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 19:20:49 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2011-03-28T19:20:49Z</dc:date>
    <item>
      <title>Loading Excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316632#M1201249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am loading multiple excel files from a specific folder using a for each loop. This works fine.&lt;BR /&gt;My problem is that the structure of some excel files isn't what I am expecting it to be (there are two different versions / structures). The number of columns change from 7 to 10 and the fieldnames (column lables) are different. I know I could manually edit the files but i wish to avoid that.&lt;BR /&gt;How do I deal with this situation? Can qlikview help me?&lt;/P&gt;&lt;P&gt;I read about SQLColumns and with that I should be able to count the number of columns in an excel file before it is loaded, but I can't get it to work. My odbc connection keeps failing, Message...SQL##f - SqlState: 42000, ErrorCode: 4294965487 ..&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;ODBC CONNECT TO [Excel Files;DBQ='C:\Lists\9786438.xls];&lt;BR /&gt;columns:&lt;BR /&gt;SQLColumns;&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;Is there other techniques or ways to get around the problem with loading multiple excelfiles into Qlikview when u have files with different number of columns and/or different column names ?&lt;/P&gt;&lt;P&gt;I would really appreciate some help on this.&lt;BR /&gt;I attached an example qvw file of how I load excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 16:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316632#M1201249</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-03-28T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Loading Excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316633#M1201250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script should work - have you checked to load the file without the SQLCOLUMNS? Probably you are missing some drivers during last installation?&lt;BR /&gt;Have tried it under vers 10 - works. You may then add an inspection, like IF NOOFROWS('Columns') = 7 THEN ... ELSE ... END IF&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 19:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316633#M1201250</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-03-28T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Loading Excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316634#M1201252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I got it to work now. I changed my connect string (also had to remove ODBC)...&lt;BR /&gt;CONNECT TO [Provider=Microsoft.Jet.OLEDB.4.0;Data Source='$(vFile)';Extended Properties="Excel 8.0;"];&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 04:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316634#M1201252</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-03-30T04:32:14Z</dc:date>
    </item>
    <item>
      <title>Loading Excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316635#M1201254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 18:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316635#M1201254</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-03-31T18:59:48Z</dc:date>
    </item>
    <item>
      <title>Loading Excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316636#M1201256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="ForumPostTitle ForumPostTitleInner"&gt;Hi Peter,&lt;/DIV&gt;&lt;DIV class="ForumPostBody"&gt;&lt;P&gt;It doesn't work&lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;. I thought it did work but it doesn't.&lt;BR /&gt;&lt;B&gt;Problem:&lt;/B&gt;If the excel documents that i am loading contains more than one sheet, and all sheets have some information, i get an error saying that it can't find the fields that i want to load. If the excel documents only has one sheet, one sheet only, it works ok. Why is this? I attach my qvw if it helps.&lt;BR /&gt;I only want to load the first sheet, always the first sheet&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 19:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Excel-files/m-p/316636#M1201256</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-03-31T19:01:11Z</dc:date>
    </item>
  </channel>
</rss>

