<?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: Can't get reference to result from MakeQueryLayer_management in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372803#M29477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just checked the status of the bug # previously referenced and the status is "In Product Plan", so i guess that means it hasn't been addressed yet. :&amp;lt;(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 23:51:09 GMT</pubDate>
    <dc:creator>DamonPettitt</dc:creator>
    <dc:date>2016-11-18T23:51:09Z</dc:date>
    <item>
      <title>Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372787#M29461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I try to run arcpy.MakeQueryLayer_management from the python command window, I can't get the resulting table added to the ArcMap display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example (I've changed the details to a generic case):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.MakeQueryLayer_management('Database Connections\my_database.sde','a_table_view','select a_field from some_table','a_field')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The database I'm querying is Oracle 11g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The command runs successfully (python returns &amp;lt;Result 'a_table_view'&amp;gt;, but when I go to the arctoolbox results tab, rt-click on the output, and choose Add to display I don't get anything. Likewise I can't seem to find this table through the various listing methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;gt;&amp;gt;&amp;gt; mxd = arcpy.mapping.MapDocument("CURRENT") &amp;gt;&amp;gt;&amp;gt; df = mxd.activeDataFrame &amp;gt;&amp;gt;&amp;gt; arcpy.mapping.ListLayers(mxd,data_frame=df) [] &amp;gt;&amp;gt;&amp;gt; arcpy.mapping.ListTableViews(mxd,data_frame=df) [] &amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried getting a reference from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.mapping.TableView('a_table_view')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and get an Assertion error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 19:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372787#M29461</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2012-10-10T19:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372788#M29462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in this line 'Database Connections\my_database.sde' you're referencing an SDE connection or a workspace.. not a table.. the arguments for the MakeQueryTable command indicate that first argument should be a reference to a table so maybe something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Database Connections\my_database.sde\table_name' would work instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MakeQueryTable_management (&lt;/SPAN&gt;&lt;STRONG&gt;in_table&lt;/STRONG&gt;&lt;SPAN&gt;, out_table, in_key_field_option, {in_key_field}, {in_field}, {where_clause})&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 19:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372788#M29462</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-10-10T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372789#M29463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; in this line 'Database Connections\my_database.sde' you're referencing an SDE connection or a workspace.. not a table.. the arguments for the MakeQueryTable command indicate that first argument should be a reference to a table so maybe something like:&amp;nbsp; &lt;BR /&gt;'Database Connections\my_database.sde\table_name' would work instead?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;MakeQueryTable_management (&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;&lt;STRONG&gt;in_table&lt;/STRONG&gt;&lt;/SPAN&gt;, out_table, in_key_field_option, {in_key_field}, {in_field}, {where_clause})&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. I'm using MakeQuery&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN&gt;_management, not MakeQueryTable_management. The first parameter for that tool is "input_database."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any experience with MakeQueryLayer_management?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372789#M29463</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2012-10-11T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372790#M29464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go into your geoprocessing options and check the box for 'Add results of geoprocessing operations to the display' do the results get added to your map?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372790#M29464</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2012-10-11T15:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372791#M29465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Thanks for the reply. I'm using MakeQuery&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Layer&lt;/SPAN&gt;_managemen&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Crap.. my bad.. I shouldn't respond to these things near the end of the day when my brain is jelly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372791#M29465</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-10-11T15:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372792#M29466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tim, &lt;BR /&gt;&lt;BR /&gt;If you go into your geoprocessing options and check the box for 'Add results of geoprocessing operations to the display' do the results get added to your map?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that option is checked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried MakeQueryLayer_management using a query that returns a spatial column, and the result *does* get added to the display. So the problem seems to lie with queries that don't return a spatial column, resulting in a table (Table View?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: also tried this with a postgres database with same result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Update 2: using File&amp;gt;Add Data&amp;gt;Add Query Layer... does add the result to ArcMap, as does running the Make Query Layer tool from model builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 13:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372792#M29466</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2012-10-12T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372793#M29467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot reproduce this behavior on my machine, what version of ArcGIS (including service packs) are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372793#M29467</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2012-10-12T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372794#M29468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why are you not using the MakeQueryTable_management?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
LOCATIONS_T = "Database Connections\\SDE DATABASE.sde\\USERNAME.LOCATION_T"
arcpy.MakeQueryTable_management(LOCATION_T, "QueryTable", "USE_KEY_FIELDS", "", "", "Job_Key = " + str(Job_Key))
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This brings the queried table in to my project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372794#M29468</guid>
      <dc:creator>ScottBlankenbeckler</dc:creator>
      <dc:date>2021-12-11T17:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372795#M29469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tim, &lt;BR /&gt;&lt;BR /&gt;I cannot reproduce this behavior on my machine, what version of ArcGIS (including service packs) are you using?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running 10.1 ... no service packs are available as far as I know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have submitted a tech support request on this (incident 1081341). The analyst on that incident can't reproduce either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried this on both Oracle 11g and PostGIS 9.2 with the same results (table not added and no way to get a reference). I've also tried on a Windows 7 computer w/ connection to same Oracle database with same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372795#M29469</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2012-10-19T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372796#M29470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tim,&lt;BR /&gt;Why are you not using the MakeQueryTable_management?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
LOCATIONS_T = "Database Connections\\SDE DATABASE.sde\\USERNAME.LOCATION_T"
arcpy.MakeQueryTable_management(LOCATION_T, "QueryTable", "USE_KEY_FIELDS", "", "", "Job_Key = " + str(Job_Key))
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;This brings the queried table in to my project.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Scott,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really want to use the MakeQueryLayer because it allows any SQL statement to be issued (including complex joins, grouping, stored function calls, etc). Right now I'm just trying a straight select statement to see if I can get this working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372796#M29470</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2021-12-11T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372797#M29471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I FIGURED OUT WHY IT'S NOT WORKING!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When running MakeQueryLayer_management from the python command window and your query only returns non-spatial columns, you must turn off the "Enable Background Processing" option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) From the Geoprocessing menu, choose Geoprocessing Options...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Under the "Background Processing" section, uncheck "Enable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd consider this a bug ... if you have background processing enabled, and you run MakeQueryLayer_management from the python command window using a query that returns a spatial column, a layer is added to your map document. But, if your query does not return a spatial column, the resulting table does not get added to your map document and there's no way to add it through python or via the results window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for everyone who helped me get to this point!:cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 15:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372797#M29471</guid>
      <dc:creator>TimHaverland4</dc:creator>
      <dc:date>2012-10-24T15:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372798#M29472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This problems seems to exist in 10.1 SP1 as well. I'm unable to work with Query Layers against sql server data when the query returns non-spatial data, if I'm using python scripts running outside ArcMap. My workaround is to add a dummy sql server geometry column in my sql server data so that my query layer becomes a feature layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 11:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372798#M29472</guid>
      <dc:creator>OttarViken_Valvåg</dc:creator>
      <dc:date>2013-02-01T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372799#M29473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having the same problem with not being able to get the resulting table from MakeQueryLayer when not using a spatial column.&amp;nbsp; I'm trying to work with this in a standalone python script so I'm not trying to add a table to ArcMap.&amp;nbsp; I just want to copy out the table as a standalone table in some file geodatabase i'm working with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled upon another forum (&lt;A class="jive-link-external-small" href="http://w3facility.info/question/table-analog-of-makequerylayer/" rel="nofollow" target="_blank"&gt;Table analog of MakeQueryLayer&lt;/A&gt;) that made me realize &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still think there's a bug as the help for MakeQueryLayer in 10.2.2 says "If the SQL query does not return a spatial column, the output will be a stand-alone table."&amp;nbsp; which isn't true as it appears to return a pointer to a database (maybe similar to a sql view?).&amp;nbsp; I'll contact ESRI about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how i got it working in my python code:&lt;/P&gt;&lt;P&gt;arcpy.MakeQueryLayer_management(database_connection,"out_layer_name", query,"FIELD1;FIELD2")&lt;/P&gt;&lt;P&gt;desc = arcpy.Describe("out_layer_name")&lt;/P&gt;&lt;P&gt;t = arcpy.mapping.TableView(desc.name)&lt;/P&gt;&lt;P&gt;arcpy.CopyRows_management(t, "myoutputtable")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 17:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372799#M29473</guid>
      <dc:creator>DamonPettitt</dc:creator>
      <dc:date>2014-10-26T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372800#M29474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a know bug and the bug # is NIM086004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround i listed where you could "describe" the layer and turn ultimately into a table seems like the best workaround in the meantime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372800#M29474</guid>
      <dc:creator>DamonPettitt</dc:creator>
      <dc:date>2014-10-28T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372801#M29475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's great that a work around has been found for Python but Esri should really look at fixing this, especially as it's still an issue in 10.3.1. In Model Builder (thankfully we're not using it!) there's no way to use arcpy.Describe or mapping.TableView unless you add a python script to the model. There's another thread about this problem &lt;A href="https://community.esri.com/thread/80348"&gt;Create Query Layer Tool Output Object Not Found or Recognized&lt;/A&gt;&amp;nbsp; which came to much the same conclusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 05:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372801#M29475</guid>
      <dc:creator>MarkPeacey2</dc:creator>
      <dc:date>2015-10-14T05:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372802#M29476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks is this bug back in 10.4.1 ? I appear to be getting it again .. Maybe ESRI never fixed it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 22:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372802#M29476</guid>
      <dc:creator>DavidParsons1</dc:creator>
      <dc:date>2016-11-18T22:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372803#M29477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just checked the status of the bug # previously referenced and the status is "In Product Plan", so i guess that means it hasn't been addressed yet. :&amp;lt;(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 23:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372803#M29477</guid>
      <dc:creator>DamonPettitt</dc:creator>
      <dc:date>2016-11-18T23:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get reference to result from MakeQueryLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372804#M29478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still present in 10.6, though it's fixed in ArcPro. I've summarized your and &lt;A href="https://community.esri.com/migrated-users/11981"&gt;Tim Haverland&lt;/A&gt;‌ diagnosis and solution at&amp;nbsp;&lt;A class="link-titled" href="https://gis.stackexchange.com/a/302664/108" title="https://gis.stackexchange.com/a/302664/108"&gt;arcmap - Make Query Layer - where are the results? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;. Thank you for getting me on the right track!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 17:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-get-reference-to-result-from-makequerylayer/m-p/372804#M29478</guid>
      <dc:creator>MattWilkie3</dc:creator>
      <dc:date>2018-12-12T17:52:45Z</dc:date>
    </item>
  </channel>
</rss>

