<?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: Verify column headers before reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686216#M538071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;What is the advantage of using alias?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 20:33:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-24T20:33:59Z</dc:date>
    <item>
      <title>Verify column headers before reload</title>
      <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686212#M538063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;My requirement is that, I have large number of excel files which I need to reload. But before loading, I need to check if all the column headers in all these files are correct (These are data files and in same format. All should have same column headers).&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;So, my question is how can I read column headers from excel in qlikview for each file and match with a reference array of column headers?&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;My Try: As I am very new to Qlikview and new to scripting, so couldn't get far. All I can do now is get all files one by one in my code from the directory where it is stored but not sure how to read column headers from them and compare it.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;Thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686212#M538063</guid>
      <dc:creator />
      <dc:date>2014-09-24T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Verify column headers before reload</title>
      <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686213#M538064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me have some clarification first....&lt;/P&gt;&lt;P&gt;You have multiple excel files having same type of data (may be for different dates or for different months) and want to load them in one lot but before loading you want to check whether all the files are having the same headers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering that all your files are having headers in the same order...you can ignore the column header and load all other data but at the same time can give column header name using alias...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you one example...&lt;/P&gt;&lt;P&gt;You have Customer vs Sales data for every day....&lt;/P&gt;&lt;P&gt;The files are in&lt;/P&gt;&lt;P&gt;Sales22092014&lt;/P&gt;&lt;P&gt;Sales23092014&lt;/P&gt;&lt;P&gt;Sales24092014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if you want to load all the files using column header... it looks like as&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceDate&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Sales22092014.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of this you can use as below&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; A as Customer, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B as Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C as Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D as Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sales*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, explicit labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;Where RecNo() &amp;lt;&amp;gt; 1;&lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;Looks like I am still missing something... may be you don't want to load those files where the column headers are not matching... Kindly clarify the same.... will work on that...&lt;/P&gt;&lt;P&gt;=======================================================&lt;/P&gt;&lt;P&gt;If possible, please provide some sample files...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686213#M538064</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-24T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Verify column headers before reload</title>
      <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686214#M538066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this blog post: qlikviewcookbook.com/2008/09/loading-multiple-excel-sheets/&lt;/P&gt;&lt;P&gt;Note, the part you're interesting in is the paragraph that starts with: &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #2b2b2b; font-family: arial; font-size: 10pt;"&gt;How about this case? I want to load any sheet that contains the three columns “Sales”, “Year” and “Quarter”:&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In your case you're not interested in just three fields, but your reference array of fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686214#M538066</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-24T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Verify column headers before reload</title>
      <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686215#M538069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have standard file which I use as benchmark to load other files and I wish to match the column headers with repect to the benchmarked file. If there is any blank header&amp;nbsp; or column names do not match(wrong data) then data reload will fail stating the message why the reload failed and due to which file(i.e.name of the file) . If the validation is correct I should get a&amp;nbsp; message 'validation is successful.'&lt;/P&gt;&lt;P&gt;Can you suggest any wider approach ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 17:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686215#M538069</guid>
      <dc:creator />
      <dc:date>2014-09-24T17:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Verify column headers before reload</title>
      <link>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686216#M538071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;What is the advantage of using alias?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 20:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Verify-column-headers-before-reload/m-p/686216#M538071</guid>
      <dc:creator />
      <dc:date>2014-09-24T20:33:59Z</dc:date>
    </item>
  </channel>
</rss>

