<?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 First line of dataset load script errors out: &amp;quot;Field not found&amp;quot; in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492388#M102181</link>
    <description>&lt;P&gt;I'm experiencing a pesky error when trying to load a single portion of a multi-dataset load script. It's a "Field '&amp;lt;fieldname&amp;gt; not found" error which always refers to the first line of this specific dataset - no matter what the field name is.&lt;/P&gt;
&lt;P&gt;So when the script says:&lt;/P&gt;
&lt;P&gt;LOAD 'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID'&lt;/P&gt;
&lt;P&gt;'loaded_at',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;[dataset_name]:&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID'&lt;/P&gt;
&lt;P&gt;'loaded_at',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;--------&lt;/P&gt;
&lt;P&gt;I get this error:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The following error occurred:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Field 'filename' not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The error occurred here:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[dataset_name]:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;SELECT&amp;nbsp;'filename',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'psrf_UID'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'loaded_at',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;And when I switch the order of the field names...&lt;/P&gt;
&lt;P&gt;LOAD 'loaded_at',&lt;/P&gt;
&lt;P&gt;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;[dataset_name]:&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp;'loaded_at',&lt;/P&gt;
&lt;P&gt;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;I'm met with:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;The following error occurred:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Field 'filename' not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The error occurred here:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[dataset_name]:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;SELECT&amp;nbsp;'loaded_at',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'filename',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'psrf_UID',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;-------------&lt;/P&gt;
&lt;P&gt;I've checked all the field names; they exist and are spelled correctly. My connection string appears on the line before the LOAD statement (followed by a semicolon, of course).&lt;/P&gt;
&lt;P&gt;This load script has several different datasets, and when I comment out the problematic code above, the load script runs smoothly. If I change the order of the datasets in the load script, it always errors out on the same dataset.&lt;/P&gt;
&lt;P&gt;Any ideas? This is driving me mad!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 21:11:09 GMT</pubDate>
    <dc:creator>CJMdel</dc:creator>
    <dc:date>2024-11-12T21:11:09Z</dc:date>
    <item>
      <title>First line of dataset load script errors out: "Field not found"</title>
      <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492388#M102181</link>
      <description>&lt;P&gt;I'm experiencing a pesky error when trying to load a single portion of a multi-dataset load script. It's a "Field '&amp;lt;fieldname&amp;gt; not found" error which always refers to the first line of this specific dataset - no matter what the field name is.&lt;/P&gt;
&lt;P&gt;So when the script says:&lt;/P&gt;
&lt;P&gt;LOAD 'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID'&lt;/P&gt;
&lt;P&gt;'loaded_at',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;[dataset_name]:&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID'&lt;/P&gt;
&lt;P&gt;'loaded_at',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;--------&lt;/P&gt;
&lt;P&gt;I get this error:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The following error occurred:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Field 'filename' not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The error occurred here:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[dataset_name]:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;SELECT&amp;nbsp;'filename',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'psrf_UID'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'loaded_at',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;And when I switch the order of the field names...&lt;/P&gt;
&lt;P&gt;LOAD 'loaded_at',&lt;/P&gt;
&lt;P&gt;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;[dataset_name]:&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp;'loaded_at',&lt;/P&gt;
&lt;P&gt;'filename',&lt;/P&gt;
&lt;P&gt;'psrf_UID',&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;I'm met with:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;The following error occurred:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Field 'filename' not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The error occurred here:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[dataset_name]:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;SELECT&amp;nbsp;'loaded_at',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'filename',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'psrf_UID',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;-------------&lt;/P&gt;
&lt;P&gt;I've checked all the field names; they exist and are spelled correctly. My connection string appears on the line before the LOAD statement (followed by a semicolon, of course).&lt;/P&gt;
&lt;P&gt;This load script has several different datasets, and when I comment out the problematic code above, the load script runs smoothly. If I change the order of the datasets in the load script, it always errors out on the same dataset.&lt;/P&gt;
&lt;P&gt;Any ideas? This is driving me mad!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 21:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492388#M102181</guid>
      <dc:creator>CJMdel</dc:creator>
      <dc:date>2024-11-12T21:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: First line of dataset load script errors out: "Field not found"</title>
      <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492421#M102183</link>
      <description>&lt;P&gt;I notice you are mixing the use of "LOAD" AND "SELECT", do you have different types of data sources? From which data source do you have trouble?&lt;/P&gt;
&lt;P&gt;What happens if you only load one data set?&lt;/P&gt;
&lt;P&gt;I notice you are using single quotes. That is often interpreted as string values by Qlik. Consider changing to this:&lt;/P&gt;
&lt;P&gt;LOAD [loaded_at],&lt;/P&gt;
&lt;P&gt;[filename],&lt;/P&gt;
&lt;P&gt;[psrf_UID],&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 06:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492421#M102183</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-11-13T06:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: First line of dataset load script errors out: "Field not found"</title>
      <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492423#M102184</link>
      <description>&lt;P&gt;Can you share screenshot of your script.&lt;/P&gt;
&lt;P&gt;try&lt;/P&gt;
&lt;P&gt;Load *;&lt;/P&gt;
&lt;P&gt;SQL Select * from .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of fieldname write * &amp;amp; try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 06:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492423#M102184</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2024-11-13T06:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: First line of dataset load script errors out: "Field not found"</title>
      <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492536#M102203</link>
      <description>&lt;P&gt;Thank you for your response. I am loading a script using an Apache Spark data connection. Other datasets from this connection load just fine (including those with the quote marks in the SELECT statement). It still doesn't load even if it is the only dataset in the script.&lt;/P&gt;
&lt;P&gt;The issue might originate with the data source I'm trying to load from, but on its face it appears to be almost identical to another dataset in my script which loads just fine. I'm not sure what to look for in the original data source that would cause this error.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492536#M102203</guid>
      <dc:creator>CJMdel</dc:creator>
      <dc:date>2024-11-13T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: First line of dataset load script errors out: "Field not found"</title>
      <link>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492555#M102205</link>
      <description>&lt;P&gt;The single-quote wrapping of the field-names within the load-part is wrong respectively invalide. Within the sql select it may be valide because this part isn't executed from Qlik else transferred to the data-base and must fit to their syntax.&lt;/P&gt;
&lt;P&gt;Field-names without a special char like +- and without spaces don't need mandatory a quoting and you may skip it. Valide quotes for the field-names would be "Field" or [Field] or `Field`.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 14:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-line-of-dataset-load-script-errors-out-quot-Field-not/m-p/2492555#M102205</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-13T14:52:39Z</dc:date>
    </item>
  </channel>
</rss>

