<?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: Field Not Found using Load Script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981018#M11365</link>
    <description>&lt;P&gt;You are using a load From_Field which is a quite specific feature which is very rarely needed (at least by us). Therefore I'm not sure if it supports any where-clauses and/or if the entire syntax ok. If you don't have a special reason for it you may change the load to:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEMP_XX_DISTINCT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load XX_FIELD1 resident YourTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where not Exists(XX_FIELD1); // or&amp;nbsp; something like:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;not Exists(FIELD, Expression);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 15:09:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-09-14T15:09:07Z</dc:date>
    <item>
      <title>Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980618#M11356</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm having a problem referencing a field from a previously loaded table. Here's what I have in my script:&lt;/P&gt;
&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;TEMP_TABLE1:&lt;BR /&gt;Load&lt;BR /&gt;FIELD1 AS TEMP_FIELD1,&lt;BR /&gt;FIELD2 AS TEMP_FIELD2,&lt;BR /&gt;FIELD3 AS TEMP_FIELD3,&lt;BR /&gt;FIELD4 AS TEMP_FIELD4,&lt;BR /&gt;FIELD5 AS TEMP_FIELD5;&lt;/P&gt;
&lt;P&gt;SQL SELECT&amp;nbsp;DISTINCT ALIAS1."FIELD1",&lt;BR /&gt;ALIAS1."FIELD2",&lt;BR /&gt;ALIAS1."FIELD3",&lt;BR /&gt;ALIAS1."FIELD4",&lt;BR /&gt;ALIAS1."FIELD5"&lt;/P&gt;
&lt;P&gt;FROM "DATABASE"."TABLE1" as ALIAS1&lt;/P&gt;
&lt;P&gt;INNER JOIN "DATABASE"."TABLE2" as ALIAS2&lt;BR /&gt;ON&lt;/P&gt;
&lt;P&gt;ALIAS1.FIELD6 = ALIAS2.FIELD6&lt;BR /&gt;and &lt;BR /&gt;ALIAS1.FIELD7 = ALIAS2.FIELD7&lt;/P&gt;
&lt;P&gt;WHERE ALIAS1.FIELD8 = 'VALUE'&lt;BR /&gt;AND ALIAS2.FIELD9 = 'VALUE';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;INNER JOIN&lt;/P&gt;
&lt;P&gt;TEMP_TABLE2:&lt;BR /&gt;Load&lt;BR /&gt;FIELD1 as TEMP_FIELD1;&lt;/P&gt;
&lt;P&gt;SQL SELECT&amp;nbsp;DISTINCT ALIAS1."FIELD1"&lt;/P&gt;
&lt;P&gt;FROM "DATABASE"."TABLE1" as ALIAS1&lt;/P&gt;
&lt;P&gt;INNER JOIN "DATABASE"."TABLE2" as ALIAS2&lt;/P&gt;
&lt;P&gt;ON ALIAS1.FIELD6 = ALIAS2.FIELD6&lt;BR /&gt;and &lt;BR /&gt;ALIAS1.FIELD7 = ALIAS2.FIELD7&lt;/P&gt;
&lt;P&gt;WHERE ALIAS1.FIELD8 = 'ANOTHER VALUE'&lt;BR /&gt;AND ALIAS2.FIELD9 = 'VALUE';&lt;/P&gt;
&lt;P&gt;TEMP_TABLE3:&lt;BR /&gt;Load&lt;BR /&gt;FIELD1 AS XX_FIELD1;&lt;/P&gt;
&lt;P&gt;SQL SELECT &lt;BR /&gt;DISTINCT ALIAS1."FIELD1"&lt;BR /&gt;FROM "DATABASE"."TABLE" as ALIAS1&lt;BR /&gt;INNER JOIN "DATABASE"."TABLE" as ALIAS2&lt;BR /&gt;ON ALIAS1.FIELD2 = ALIAS2.FIELD2&lt;BR /&gt;and &lt;BR /&gt;ALIAS1.FIELD3 = ALIAS2.FIELD3&lt;BR /&gt;WHERE FIELD4 = 'VALUE'&lt;BR /&gt;AND ALIAS1."FIELD4" is not null;&lt;/P&gt;
&lt;P&gt;/* The above load script section executes successfully and gives me the desired result in ALL THREE TABLES */&lt;/P&gt;
&lt;P&gt;/* here's where the error occurs. I want to create a new table (TEMP_XX_DISTINCT)&amp;nbsp; that loads&amp;nbsp; XX_FIELD1 from the above table (TEMP_TABLE3) only if it does not exist in&amp;nbsp; table TEMP_TABLE1 and field TEMP_FIELD1.&lt;BR /&gt;The error says 'TEMP_TABLE1.TEMP_FIELD1' not found&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;TEMP_XX_DISTINCT:&lt;BR /&gt;load XX_FIELD1 From_Field(TEMP_TABLE3,XX_FIELD1)&lt;BR /&gt;Where not Exists(TEMP_TABLE1.TEMP_FIELD1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 21:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980618#M11356</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-09-13T21:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980728#M11357</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Within the Qlik Script you do not need to tell it which table it does not exist in&amp;nbsp;&lt;SPAN&gt;Where not Exists(TEMP_FIELD1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Qlik does not reference Table.Field like SQL&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980728#M11357</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-09-14T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980906#M11362</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;Thanks for the reply. I have tried with the table name and without. still the same error.&lt;/P&gt;
&lt;P&gt;What I noticed is that I'm unable to access any table in the load script that isn't the one right above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 12:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980906#M11362</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-09-14T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980957#M11363</link>
      <description>&lt;P&gt;Only if you named a field like: F1 as TableXYZ.F1 or using a qualify-statement you will get the table-name within the field-name. Further all tables with an identically structure will be auto-concatenated unless they are loaded with a noconcatenate-statement - so your field and/or they table which you want to access may not exists. A look on the table-structure will show you what's really there.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 13:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1980957#M11363</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-14T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981012#M11364</link>
      <description>&lt;P&gt;Hi Marcus,&lt;BR /&gt;If I comment out this last bit&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEMP_XX_DISTINCT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load XX_FIELD1 From_Field(TEMP_TABLE3,XX_FIELD1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where not Exists(TEMP_TABLE1.TEMP_FIELD1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My script works and I see the tables and the field names. I went further and I commented out the &lt;BR /&gt;"Where not Exists(TEMP_TABLE1.TEMP_FIELD1);" and that works as well.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Also: &lt;BR /&gt;(1) I have added the unqualify and nonconcatenate to the script.&lt;BR /&gt;(2) I removed the "&lt;SPAN&gt;TEMP_TABLE1." prefix from the where clause&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Am I doing something in the where clause that is not allowed in Qlik?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981012#M11364</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-09-14T15:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981018#M11365</link>
      <description>&lt;P&gt;You are using a load From_Field which is a quite specific feature which is very rarely needed (at least by us). Therefore I'm not sure if it supports any where-clauses and/or if the entire syntax ok. If you don't have a special reason for it you may change the load to:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEMP_XX_DISTINCT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load XX_FIELD1 resident YourTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where not Exists(XX_FIELD1); // or&amp;nbsp; something like:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;not Exists(FIELD, Expression);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981018#M11365</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-14T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981044#M11366</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;First,&lt;/P&gt;
&lt;P&gt;I have changed that section to now be only the load without the where clause and as you recommended&lt;/P&gt;
&lt;P&gt;load XX_FIELD1 Resident &lt;SPAN&gt;TEMP_TABLE3&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;The script loads and all the tables that I want are there.&lt;/P&gt;
&lt;P&gt;I still get an error once I add the where clause to the above code.&lt;/P&gt;
&lt;P&gt;Again I feel like it is not letting me access objects that are farther up the load script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981044#M11366</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-09-14T15:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Not Found using Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981217#M11368</link>
      <description>&lt;P&gt;In general you could access all previously loaded fields and tables.&lt;/P&gt;
&lt;P&gt;Important is that they are properly written - Qlik is here case-sensitive and that they are named like they exists within the tables (if they have a table-prefix with it and if not the belonging table-name must not be applied) and further that the names are wrapped in [] or "" if they contain any space or special chars.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further the field must be included within the specified (resident) table. A direct load from a field is also possible with the from-field feature or by looping through the distinct values of the belonging system-table of this field but like above hinted this are specific features which are only in certain use-cases helpful.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 05:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Field-Not-Found-using-Load-Script/m-p/1981217#M11368</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-15T05:46:01Z</dc:date>
    </item>
  </channel>
</rss>

