<?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: Check existence field in QVD while loading QVD in QVW in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365222#M493181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only one field is different name, Just pass the variable for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can find the QVD Filed name by function: &lt;A class="MCDropDownHotSpot" id="MCDropDownHotSpot_3525926473_13" name="QvdFieldName"&gt;QvdFieldName(&lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt; , &lt;SPAN style="font-style: italic;"&gt;fieldno&lt;/SPAN&gt;)&lt;/A&gt; and &lt;A class="MCDropDownHotSpot" id="MCDropDownHotSpot_3525926473_12" name="QvdNoOfFields"&gt;QvdNoOfFields(&lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt;)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&amp;nbsp; QvdFieldName ('MyFile.qvd', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use the for loop and retive all the fields from alrady stored QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Siri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 13:20:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-23T13:20:24Z</dc:date>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365220#M493179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN class="hps"&gt;Hello&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="hps"&gt;I have created &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;multiple&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QVD's with&lt;/SPAN&gt; 1 &lt;SPAN class="hps"&gt;QVD&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;creator&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;made ​​from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;2 databases&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;names&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QVD&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that were created are equal&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;However&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;some of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field names in the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QVD&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;are not equal.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;For example&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QVD name &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;location&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(1)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is a field&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;named [&lt;/SPAN&gt;&lt;SPAN&gt;Country_Region&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Code]&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;while in the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QVDnaam&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;location&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(2)&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;the field is called [&lt;/SPAN&gt;&lt;SPAN&gt;Country&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Code]&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="hps"&gt;Can I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;check&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;existence&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of a field&lt;/SPAN&gt; while loading the QVD into a QVW&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;If&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I can,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I also rename the field&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;Country_Region&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Code]&lt;/SPAN&gt; to &lt;SPAN class="hps"&gt;the name&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Location Country&lt;/SPAN&gt; and also for the field &lt;SPAN class="hps"&gt;[Country&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Code]&lt;/SPAN&gt;&lt;SPAN&gt;? thank you so much for the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365220#M493179</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-05-23T09:53:36Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365221#M493180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeroen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't know how to check for existing fieldnames during a load command. But try to use a &lt;EM&gt;mapping table &lt;/EM&gt;to rename the fieldnames:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldMap:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;OldName, NewName&lt;/P&gt;&lt;P&gt;Country_Region &lt;SPAN class="hps"&gt;Code, &lt;/SPAN&gt;Country &lt;SPAN class="hps"&gt;Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After &lt;EM&gt;every &lt;/EM&gt;LOAD from a qvd-file (or whatever):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME Fields using FieldMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365221#M493180</guid>
      <dc:creator />
      <dc:date>2012-05-23T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365222#M493181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only one field is different name, Just pass the variable for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can find the QVD Filed name by function: &lt;A class="MCDropDownHotSpot" id="MCDropDownHotSpot_3525926473_13" name="QvdFieldName"&gt;QvdFieldName(&lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt; , &lt;SPAN style="font-style: italic;"&gt;fieldno&lt;/SPAN&gt;)&lt;/A&gt; and &lt;A class="MCDropDownHotSpot" id="MCDropDownHotSpot_3525926473_12" name="QvdNoOfFields"&gt;QvdNoOfFields(&lt;SPAN style="font-style: italic;"&gt;filename&lt;/SPAN&gt;)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&amp;nbsp; QvdFieldName ('MyFile.qvd', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use the for loop and retive all the fields from alrady stored QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Siri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365222#M493181</guid>
      <dc:creator />
      <dc:date>2012-05-23T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365223#M493182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ErrorMode, something like this:&lt;/P&gt;&lt;P&gt;SET ErrorMode=0;&lt;/P&gt;&lt;P&gt;LOAD "Country_Region Code" from &amp;lt;your qvd&amp;gt;;&lt;/P&gt;&lt;P&gt;IF ScriptError =11 then&lt;BR /&gt; LOAD&lt;BR /&gt; ...&lt;BR /&gt; "Conutry Code"&lt;BR /&gt; ...&lt;BR /&gt; FROM ...&lt;BR /&gt;else&lt;BR /&gt; LOAD&lt;BR /&gt; ...&lt;BR /&gt; "Country_Region Code" as "Country Code"&lt;BR /&gt; ...&lt;BR /&gt; FROM ...&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;SET ErrorMode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365223#M493182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-23T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365224#M493183</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 read the QVD meta data (providing the QVD was saved with V10 SR1 or greater):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;LOAD FieldName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() As Source&lt;/P&gt;&lt;P&gt;FROM *.qvd (XmlSimple, Table is [QvdTableHeader/Fields/QvdFieldHeader]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can form the basis of a flexible read method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 17:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365224#M493183</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-23T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365225#M493184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;BR /&gt;Maybe this is a very stupid question but how can I use the metadata for a flexible read?&lt;/P&gt;&lt;P&gt;Can I perform IF(Exists) on the metadata table when I'm loading a QVD into a QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 19:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365225#M493184</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-05-23T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365226#M493185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;By your response to my post, I have made a mapping table with renaming fields.&lt;BR /&gt;The problem, however, I walk against it is that during running the script announces that the [Country_region code] not exists in the QVD.&lt;/P&gt;&lt;P&gt;For these reasons I can not make the translation.&lt;/P&gt;&lt;P&gt;I can use this method for something else.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 19:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365226#M493185</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-05-23T19:58:52Z</dc:date>
    </item>
    <item>
      <title>Check existence field in QVD while loading QVD in QVW</title>
      <link>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365227#M493186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeroen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer. The idea of the mapping table was: if field(s) exists, it (they) will be renamed. If not,nothing will happen, especially no error should occure. So it should be very flexible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway: &lt;/P&gt;&lt;P&gt;Jonathan and Michaels posts should bring you forward, and I learned new things about qvd meta data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 06:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-existence-field-in-QVD-while-loading-QVD-in-QVW/m-p/365227#M493186</guid>
      <dc:creator />
      <dc:date>2012-05-24T06:57:20Z</dc:date>
    </item>
  </channel>
</rss>

