<?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 'For Each' to load xls multiple files, a few columns does not have the same name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73702#M785932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load m&lt;STRONG&gt;ultiple excel files in a For Each loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Inside the loop I have a &lt;STRONG&gt;Load&lt;/STRONG&gt; from Load then a Left join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 2 files &lt;STRONG&gt;one column name is not the one I should get.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to test the existence of a column &lt;SPAN style="text-decoration: underline;"&gt;in a Load&lt;/SPAN&gt; and when it doesn't exist to load another column (I cannot change the header of the excel files) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73702#M785932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load m&lt;STRONG&gt;ultiple excel files in a For Each loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Inside the loop I have a &lt;STRONG&gt;Load&lt;/STRONG&gt; from Load then a Left join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 2 files &lt;STRONG&gt;one column name is not the one I should get.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to test the existence of a column &lt;SPAN style="text-decoration: underline;"&gt;in a Load&lt;/SPAN&gt; and when it doesn't exist to load another column (I cannot change the header of the excel files) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73702#M785932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: 'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73703#M785933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the columns in the same order, with just the column names different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73703#M785933</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-02-22T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: 'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73704#M785934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would avoid load *, as I don't load some of the columns (that exit or not) on different xls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73704#M785934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T15:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: 'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73705#M785935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One work around could be to use exact column names, and if you want to make decisions at run time, you may allow Qlik to generate error, you can continue script execution through &lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;set ErrorMode=0; based on error code returned in script error variable you can write code to read new column etc to handle exception condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/Scripting/ErrorVariables/ScriptError.htm" title="https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/Scripting/ErrorVariables/ScriptError.htm"&gt;https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/Scripting/ErrorVariables/ScriptError.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73705#M785935</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-22T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73706#M785936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way within a load to check if a field exists. This meant you need for such a checking an additional step in beforehand - maybe by loading one single record of the file with the wildcard * for the fields and then looping through the exist fieldnames and comparing them against your condition and branching appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know exactly which files are different you could also use a small if-loop on them to branch in different load-statements. Maybe a bit more easier could it be to load your files without labels and name the fields explicitly like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A as AField,&lt;/P&gt;&lt;P&gt;B as BField,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73706#M785936</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-02-22T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'For Each' to load xls multiple files, a few columns does not have the same name</title>
      <link>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73707#M785937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, I finally managed to get the excel column name corrected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Each-to-load-xls-multiple-files-a-few-columns-does-not-have/m-p/73707#M785937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T16:36:48Z</dc:date>
    </item>
  </channel>
</rss>

