<?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: Load a field if it only exists in the table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888554#M309665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's possible if you do a wildcard load: LOAD * FROM &lt;EM&gt;source&lt;/EM&gt;. Then it will simply load all the fields that do exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some fields don't always exists you can first do a dummy load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD 1 as A, 1 as B, 1 as C&lt;/P&gt;&lt;P&gt;Autogenerate (0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create an empty table with fields A, B and C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now load data from a source that's missing field C:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD A, B FROM &lt;EM&gt;some_source&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying Concatenate you force the loading of the data to Table1. Field C doesn't exist in the source, so null values will be added for field C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 14:03:07 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-06T14:03:07Z</dc:date>
    <item>
      <title>Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888553#M309664</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;Is it possible when loading data into QlikView that it first checks if a set of fields exist, if it does, then it loads them in together with the other fields in the script.&amp;nbsp; If they do not exist, then it still loads the other fields that are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's because sometimes my data has 3 additional fields if data has been populated in those fields.&amp;nbsp; If those fields are null, then the report does not bring those fields in.&amp;nbsp; I cannot edit the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found when I wrote SET ErrorMode = 0; and that it just skips that particular file.&amp;nbsp; I do not want it to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone be able to help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888553#M309664</guid>
      <dc:creator />
      <dc:date>2015-05-06T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888554#M309665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's possible if you do a wildcard load: LOAD * FROM &lt;EM&gt;source&lt;/EM&gt;. Then it will simply load all the fields that do exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some fields don't always exists you can first do a dummy load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD 1 as A, 1 as B, 1 as C&lt;/P&gt;&lt;P&gt;Autogenerate (0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create an empty table with fields A, B and C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now load data from a source that's missing field C:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD A, B FROM &lt;EM&gt;some_source&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying Concatenate you force the loading of the data to Table1. Field C doesn't exist in the source, so null values will be added for field C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888554#M309665</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-06T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888555#M309666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is I need to give each field a label as I want to avoid any automatic joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be another way such as using IF Statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888555#M309666</guid>
      <dc:creator />
      <dc:date>2015-05-06T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888556#M309667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajiv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the wildcard as Gysbert suggest, then you can rename the fields using a mapping table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;FieldMap:&lt;/P&gt;&lt;P class="Code"&gt;Mapping SQL SELECT oldnames, newnames FROM datadictionary;&lt;/P&gt;&lt;P class="Code"&gt;Rename fields using FieldMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888556#M309667</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-06T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888557#M309668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look in help at the ScriptError.&amp;nbsp; It is set to 11 if a filed is not found.&amp;nbsp; Probably you can use it as a condition in the script to get what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888557#M309668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T14:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888558#M309669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we do a WildCard Upload, is it possible to bring in the FileName within the *?&amp;nbsp; I am bringing multiple files in via a loop and then storing the data into a QVD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888558#M309669</guid>
      <dc:creator />
      <dc:date>2015-05-06T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888559#M309670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() As Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888559#M309670</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-06T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888560#M309671</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;I tried this in my script and it doesn't seem to be work properly within the loop.&amp;nbsp; It looks like it has created another table for the data which does not have the 3 additional rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 15:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888560#M309671</guid>
      <dc:creator />
      <dc:date>2015-05-06T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888561#M309672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way I can use the concatenate and store function together:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a For each file loop and it stores each file into a single qvd file.&amp;nbsp; I think it is treating the files without the 3 additional columns as a separate table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 15:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888561#M309672</guid>
      <dc:creator />
      <dc:date>2015-05-06T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load a field if it only exists in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888562#M309673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to find the solution to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needed to add:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN style="text-indent: 0px; text-align: start; color: #0000ff; font-style: normal; font-size: small; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: normal;"&gt;&lt;STRONG&gt;set&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;Concatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; font-size: small;"&gt;=;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;$(Concatenate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; text-indent: 0px; text-align: start; color: #808080; font-style: normal; font-size: small; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;Load *&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; text-indent: 0px; text-align: start; color: #808080; font-style: normal; font-size: small; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;FROM source&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN style="; text-indent: 0px; text-align: start; color: #0000ff; font-style: normal; font-size: small; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;STRONG&gt;set&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;STRONG style=": ; color: #808080; font-size: small;"&gt;&lt;EM&gt;Concatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #343434; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; font-size: small;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;= concatenate;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 16:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-if-it-only-exists-in-the-table/m-p/888562#M309673</guid>
      <dc:creator />
      <dc:date>2015-05-06T16:53:07Z</dc:date>
    </item>
  </channel>
</rss>

