<?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: Subquery in SQL Server gives &amp;quot;Field 'Id' not found&amp;quot; error in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1680829#M4985</link>
    <description>&lt;P&gt;Sub queries may not work..try it with mapping load..by creating 2 different tables&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 10:12:49 GMT</pubDate>
    <dc:creator>Qlik1_User1</dc:creator>
    <dc:date>2020-03-02T10:12:49Z</dc:date>
    <item>
      <title>Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1678799#M4964</link>
      <description>&lt;P&gt;I'm connecting successfully to a Microsoft SQL Server database and am able to see results using simple join queries. When I add a subquery as a data field to a working join query, I get the error&amp;nbsp;"Field 'Id' not found".&lt;/P&gt;&lt;P&gt;Actual samples below. Both samples work fine when using Visual Studio 2017 to run the same queries.&lt;BR /&gt;In Qlik, sample 1 works and sample 2 does not.&lt;BR /&gt;I saw posted somewhere that Qlik just passes the SQL directly through to SQL Server. However, the fact that I'm getting this error seems to indicate perhaps something more is going on.&lt;/P&gt;&lt;P&gt;Can anyone provide clues as to why this might be happening?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sample 1, working query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[VerticalTraceView]:
SELECT Id,
                RunId,
                Name,
                Requirement.Name as ReqName,
                VerticalTrace.ToRequirementId,
                FilterResult
FROM RTM.dbo.Requirement as Requirement,RTM.dbo.VerticalTrace as VerticalTrace
WHERE Requirement.Id=VerticalTrace.FromRequirementId;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample 2, non-working, generates error on Load data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[VerticalTraceView]:
SELECT Id,
                RunId,
                Name,
                (SELECT Requirement.Name from Requirement where Requirement.Id=VerticalTrace.ToRequirementId) as ReqName,
                VerticalTrace.FromRequirementId,
                FilterResult
FROM RTM.dbo.Requirement as Requirement,RTM.dbo.VerticalTrace as VerticalTrace
WHERE Requirement.Id=VerticalTrace.FromRequirementId;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 20:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1678799#M4964</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2021-12-28T20:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1680825#M4983</link>
      <description>&lt;P&gt;The SQL format may not be fully supported by QlikSense.Check your 2nd query on deriving ReqName field, try the below options.&lt;/P&gt;&lt;P&gt;1. Try to fetch data into two tables, Use resident loads to join two tables.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Store data into two qvds, load qvds, fetch data from required fields, apply right, left joins.... or Concatenate them.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1680825#M4983</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2020-03-02T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1680829#M4985</link>
      <description>&lt;P&gt;Sub queries may not work..try it with mapping load..by creating 2 different tables&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1680829#M4985</guid>
      <dc:creator>Qlik1_User1</dc:creator>
      <dc:date>2020-03-02T10:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681743#M4997</link>
      <description>&lt;P&gt;Thanks for your input. I guess the sql is not just passed through to SQL Server.&lt;/P&gt;&lt;P&gt;I wound up just creating views in SQL Server to solve the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681743#M4997</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2020-03-04T15:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681754#M4998</link>
      <description>&lt;P&gt;Please run your SQL using a SQL client (not Qlik).&lt;/P&gt;&lt;P&gt;I'm guessing you have some error in your SQL&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681754#M4998</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2020-03-04T16:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681862#M4999</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;Both samples work fine when using Visual Studio 2017".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No SQL errors.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681862#M4999</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2020-03-04T22:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681869#M5000</link>
      <description>&lt;P&gt;what is the exact error in qlik?&lt;/P&gt;&lt;P&gt;I just tried and it's working for me.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681869#M5000</guid>
      <dc:creator>_ylc</dc:creator>
      <dc:date>2020-03-04T22:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681870#M5001</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"Field 'Id' not found" is the exact error I get. When I remove the subquery the error goes away.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you have an example subquery that works that you could post?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681870#M5001</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2020-03-04T22:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681871#M5002</link>
      <description>&lt;P&gt;here's what I loaded:&lt;/P&gt;&lt;P&gt;select distinct&lt;/P&gt;&lt;P&gt;Orders.[Order ID],&lt;/P&gt;&lt;P&gt;Orders.[Order Date],&lt;/P&gt;&lt;P&gt;Orders.Region,&lt;/P&gt;&lt;P&gt;(SELECT Person from People$ where People$.Region=Orders.Region) as RegionName&lt;/P&gt;&lt;P&gt;from Orders$ as Orders, Returns$ as Returned&lt;/P&gt;&lt;P&gt;where Orders.[Order ID]=Returned.[Order ID];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works fine on my side.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 23:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1681871#M5002</guid>
      <dc:creator>_ylc</dc:creator>
      <dc:date>2020-03-04T23:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1682188#M5005</link>
      <description>&lt;P&gt;Below is the exact error dialog I get after clicking on Load Data in the Data Load Editor.&lt;BR /&gt;I can't spot any significant difference between your query and mine, yet mine fails and yours works.&lt;/P&gt;&lt;P&gt;Are you running the latest Qlik Sense Desktop?&lt;/P&gt;&lt;P&gt;All I do to get rid of the error, is comment out the subquery line.&lt;BR /&gt;Again, this query works fine in VS 2017.&lt;/P&gt;&lt;P&gt;*********************************************&lt;BR /&gt;&lt;SPAN&gt;Started loading data&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;Connected&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Field 'RequirementId' not found&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;The error occurred here:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;SELECT distinct RequirementId, (select Requirement.Name from Requirement where Requirement.Id=Id-RequirementId) as ReqName, TestCaseId FROM RTM.dbo.HorizontalTrace&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline undefined"&gt;Data has not been loaded. Please correct the error and try loading again.&lt;BR /&gt;**********************************************************************************************&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Mar 2020 16:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1682188#M5005</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2020-03-05T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1682711#M5009</link>
      <description>&lt;P&gt;I'm using QlikSense server (version Nov 2019).&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 20:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1682711#M5009</guid>
      <dc:creator>_ylc</dc:creator>
      <dc:date>2020-03-08T20:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1918717#M10572</link>
      <description>&lt;P&gt;Was there ever an answer to this.&amp;nbsp; &amp;nbsp;I am now gettting the same Field 'id' not found when accessing the nprinting postgres database.&amp;nbsp; The id field is in the table plain as day.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1918717#M10572</guid>
      <dc:creator>rodneybarrett</dc:creator>
      <dc:date>2022-04-14T17:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in SQL Server gives "Field 'Id' not found" error</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1918722#M10573</link>
      <description>&lt;P&gt;nevermind.&amp;nbsp; &amp;nbsp;mine was something else.&amp;nbsp; &amp;nbsp;user error.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Subquery-in-SQL-Server-gives-quot-Field-Id-not-found-quot-error/m-p/1918722#M10573</guid>
      <dc:creator>rodneybarrett</dc:creator>
      <dc:date>2022-04-14T17:33:03Z</dc:date>
    </item>
  </channel>
</rss>

