<?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: where exists in load script and field not found in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528120#M438547</link>
    <description>&lt;P&gt;Hi ZZ,&lt;/P&gt;&lt;P&gt;thanks for your reply. yes, basically switching F1 and F3 in the exists function makes the script work.&lt;/P&gt;&lt;P&gt;The error message is a little confusing to me though. because both F1 and F3 fields have already been loaded, it does not quite make sense to me that QV complains about 'field not found'..&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, if I have a table T1 with a field F1, another table T2 with a field F2, and I want to load from T2 all data whose F2 values exist in F1 , I should write something like this,&lt;/P&gt;&lt;P&gt;Load * resident T2&lt;/P&gt;&lt;P&gt;where exists(&lt;STRONG&gt;F1&lt;/STRONG&gt;, &lt;STRONG&gt;F2&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 05:08:50 GMT</pubDate>
    <dc:creator>msmichael</dc:creator>
    <dc:date>2019-01-09T05:08:50Z</dc:date>
    <item>
      <title>where exists in load script and field not found</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528091#M438544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have below script, but when I run it I got "field not found - &amp;lt;F3&amp;gt;" error. I don't know why, hasn't F3 in data2 table already been loaded?? why it still complains F3 not found.. Also, if have to, how should I fix it?&lt;/P&gt;&lt;P&gt;data1:&lt;BR /&gt;load * Inline [&lt;BR /&gt;F1, F2&lt;BR /&gt;1, 'test'&lt;BR /&gt;2, 'test2'&lt;BR /&gt;3, 'test3'&lt;BR /&gt;4, 'test4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;data2:&lt;BR /&gt;load * Inline [&lt;BR /&gt;F3, F4&lt;BR /&gt;1, 'data2'&lt;BR /&gt;2, 'data2test'&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;load&lt;BR /&gt;F1, F2&lt;BR /&gt;Resident 'data1'&lt;BR /&gt;where not Exists(F1, F3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 02:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528091#M438544</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-01-09T02:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: where exists in load script and field not found</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528101#M438545</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try below script?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data1:&lt;BR /&gt;load * Inline [&lt;BR /&gt;F1, F2&lt;BR /&gt;1, 'test'&lt;BR /&gt;2, 'test2'&lt;BR /&gt;3, 'test3'&lt;BR /&gt;4, 'test4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;data2:&lt;BR /&gt;load * Inline [&lt;BR /&gt;F3, F4&lt;BR /&gt;1, 'data2'&lt;BR /&gt;2, 'data2test'&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;test:&lt;BR /&gt;load&lt;BR /&gt;F1 , F2&lt;BR /&gt;Resident 'data1'&lt;BR /&gt;where not Exists(&lt;STRONG&gt;F3, F1&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Tables data1,data2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;ZZ&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 04:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528101#M438545</guid>
      <dc:creator>zzyjordan</dc:creator>
      <dc:date>2019-01-09T04:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: where exists in load script and field not found</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528120#M438547</link>
      <description>&lt;P&gt;Hi ZZ,&lt;/P&gt;&lt;P&gt;thanks for your reply. yes, basically switching F1 and F3 in the exists function makes the script work.&lt;/P&gt;&lt;P&gt;The error message is a little confusing to me though. because both F1 and F3 fields have already been loaded, it does not quite make sense to me that QV complains about 'field not found'..&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, if I have a table T1 with a field F1, another table T2 with a field F2, and I want to load from T2 all data whose F2 values exist in F1 , I should write something like this,&lt;/P&gt;&lt;P&gt;Load * resident T2&lt;/P&gt;&lt;P&gt;where exists(&lt;STRONG&gt;F1&lt;/STRONG&gt;, &lt;STRONG&gt;F2&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 05:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528120#M438547</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-01-09T05:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: where exists in load script and field not found</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528135#M438549</link>
      <description>&lt;P&gt;exactly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the example from online helper probably makes more sense&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;ZZ&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 05:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-in-load-script-and-field-not-found/m-p/1528135#M438549</guid>
      <dc:creator>zzyjordan</dc:creator>
      <dc:date>2019-01-09T05:54:50Z</dc:date>
    </item>
  </channel>
</rss>

