<?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 Name 'Not found'? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039516#M85655</link>
    <description>&lt;P&gt;Some drivers will fold the unquoted SQL column names to upper case. Try referring to the field as CC.LEGACY_SUBLINE_CODE in the Load statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way to diagnose this is to just run the SQL SELECT in the script (remove the Load) and look at the table created in the data model viewer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 06:01:44 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2023-02-18T06:01:44Z</dc:date>
    <item>
      <title>Field Name 'Not found'?</title>
      <link>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039427#M85651</link>
      <description>&lt;P&gt;I have been working with this query and cannot get it to recognize the column names. I keep getting the error Field 'cc.Legacy_Subline_Code' not found. I cannot think of anything else to try. Here's what I've done so far:&lt;/P&gt;
&lt;P&gt;1. Moved the case statements to the Load&amp;nbsp; statement and updated the syntax&lt;/P&gt;
&lt;P&gt;2. Copy pasted the name exactly from the load statement into the query to ensure all capitalization and spacing is correct )I tried with the cc. and without)&lt;/P&gt;
&lt;P&gt;3. Pasted the entire query into a new app and tried loading&lt;/P&gt;
&lt;P&gt;I'm out of ideas. Can anyone help? I've removed the From, Where, Group By and Order by details, but it's all there and Group By and Order By are just a copy paste of one another. I should also mention that I've run my query in SSMS and had no issues until now when trying to automate it for a user.&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;If(cc.Legacy_Subline_Code = '240','Other Health Care Professional Liability',&lt;BR /&gt;if( cc.Legacy_Subline_Code = '210', 'Hospital Professional Liability',&lt;BR /&gt;if( cc.Legacy_Subline_Code = '230', 'Physicians, Surgeons, and Dentists Professional Liability',&lt;BR /&gt;if( cc.Legacy_Subline_Code = '220', 'Other Health Care Facilities Liability', &lt;BR /&gt;if( cc.Legacy_Subline_Code = '317', 'Professional Liability - Other than Hospital, Health Care, Physicians, Surgeons and Dentists and Management Protection Program'&lt;BR /&gt;,cc.Legacy_Subline_Code))))) as Subline,&lt;/P&gt;
&lt;P&gt;External_Reference_Text,&lt;BR /&gt;GWP,&lt;BR /&gt;Earned;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SQL&lt;BR /&gt;SELECT&lt;BR /&gt;cc.Legacy_Subline_Code,&lt;BR /&gt;lioc.External_Reference_Text,&lt;BR /&gt;SUM(fpp.Written_Premium_Amount) as GWP,&lt;BR /&gt;SUM(Earned_Premium_Amount) as Earned&lt;/P&gt;
&lt;P&gt;FROM ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 18:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039427#M85651</guid>
      <dc:creator>teetoes</dc:creator>
      <dc:date>2023-02-17T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Field Name 'Not found'?</title>
      <link>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039516#M85655</link>
      <description>&lt;P&gt;Some drivers will fold the unquoted SQL column names to upper case. Try referring to the field as CC.LEGACY_SUBLINE_CODE in the Load statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way to diagnose this is to just run the SQL SELECT in the script (remove the Load) and look at the table created in the data model viewer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 06:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039516#M85655</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-02-18T06:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Name 'Not found'?</title>
      <link>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039622#M85662</link>
      <description>&lt;P&gt;Only execute the SQL load and check the field names, you&lt;U&gt; don't need a preceding LOAD&lt;/U&gt; for&amp;nbsp; a SQL load&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TempTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;BR /&gt;SELECT&lt;BR /&gt;cc.Legacy_Subline_Code,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(CASE WHEN cc.Legacy_Subline_Code = '240' THEN 'Other Health Care Professional Liability'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHEN cc.Legacy_Subline_Code = '210' THEN 'Hospital Professional Liability'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHEN cc.Legacy_Subline_Code = '230' THEN 'Physicians, Surgeons, and Dentists Professional Liability'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHEN cc.Legacy_Subline_Code = '220' THEN 'Other Health Care Facilities Liability'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHEN cc.Legacy_Subline_Code = '317' THEN 'Professional Liability - Other than Hospital, Health Care, Physicians, Surgeons and Dentists and Management Protection Program'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ELSE cc.Legacy_Subline_Code END) as Subline&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;lioc.External_Reference_Text,&lt;BR /&gt;SUM(fpp.Written_Premium_Amount) as GWP,&lt;BR /&gt;SUM(Earned_Premium_Amount) as Earned&lt;/P&gt;
&lt;P&gt;FROM ... ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;Can you Also post a screenshot of the error message? ensure the field&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;cc.Legacy_Subline_Code&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;is available in the table aliased 'cc'&amp;nbsp; &amp;nbsp;the field not found could also be a message returned from the Database and not Qlik&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 03:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039622#M85662</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-02-20T03:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field Name 'Not found'?</title>
      <link>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039920#M85693</link>
      <description>&lt;P&gt;Thank you for the suggestions. I tried the all uppercase field in the Load and it still didn't recognize it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did get just the select statement to run but I had to revert my IF statements from the load to Case statements. However, my totals are not correct and I have no idea why there would be a difference.&lt;/P&gt;
&lt;P&gt;Edit: It's actually just the "Open_Claims" column that is incorrect. The others match exactly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 15:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Field-Name-Not-found/m-p/2039920#M85693</guid>
      <dc:creator>teetoes</dc:creator>
      <dc:date>2023-02-20T15:20:00Z</dc:date>
    </item>
  </channel>
</rss>

