<?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: How to Join a Feature Layer to a Query Layer? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-join-a-feature-layer-to-a-query-layer/m-p/467997#M36515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This line is hard to find&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/43104" title="http://support.esri.com/en/knowledgebase/techarticles/detail/43104"&gt;43104 - 000229: Cannot open&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and it is not restricted to background geoprocessing and see this&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00vp00000005000229" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00vp00000005000229"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here are some of the causes&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;This error message displays when the following occurs: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• The data is inaccessible, unavailable, or invalid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• There are unsupported data types in 64-bit background processing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• Unsupported tools are unable to run in background processing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• The 64-bit background geoprocessing does not have the necessary 64-bit libraries. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;When background processing is turned on, scripts execute using 64-bit background processing. ArcMap is unable to read data types not supported by 64-bit background processing, while tools incapable of running in the background cannot leverage 64-bit processing. By default, ArcMap and ArcCatalog communicate through a 32-bit client library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it comes up a lot with python and modelbuilder and SDE and other network based file locations.&amp;nbsp; That could be one reason why 'stuff' works within arcmap with the tools in arctoolbox, but fails as a python script. So, I would run some checks and printouts to ensure that the file can actually be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 00:28:58 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-04-21T00:28:58Z</dc:date>
    <item>
      <title>How to Join a Feature Layer to a Query Layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-join-a-feature-layer-to-a-query-layer/m-p/467996#M36514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to join a SDE feature class to a Query Layer via Python. I don't seem to have any issues doing this manually in ArcMap, but everytime I get to the join portion of my script, it fails with ERROR: 000229. I've turned off Background Geoprocessing. That doesn't seem to help. I've tried a few ways of accessing the query table in the join function, but it always returns the same error message (tried using "Describe" to grab the name of the query table, tried to use the "ake Table View" function on the query layer, none of which seems to work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

env.workspace = r"Database Connections\PRD.sde"

# Local variables:
PRD_sde = "Database Connections\\PRD.sde"
query = "My query" # This is a bonified and varified query. It's just a little large for this post


# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management("SPATIAL.TENURE_SVW", "selected_tenures", "TENURE_NUMBER_ID in (216720,216721,216722,216723,216724,216725)", "")

# Process: Make Query Layer
arcpy.MakeQueryLayer_management(PRD_sde, "Table_Test", query, "TENURE_NUMBER_ID", "", "", "")

# Process: Add Join
arcpy.AddJoin_management("selected_tenures", "TENURE_NUMBER_ID", "Table_Test", "TENURE_NUMBER_ID", "KEEP_ALL")

dddd&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-join-a-feature-layer-to-a-query-layer/m-p/467996#M36514</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2021-12-11T20:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Join a Feature Layer to a Query Layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-join-a-feature-layer-to-a-query-layer/m-p/467997#M36515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This line is hard to find&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/43104" title="http://support.esri.com/en/knowledgebase/techarticles/detail/43104"&gt;43104 - 000229: Cannot open&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and it is not restricted to background geoprocessing and see this&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00vp00000005000229" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00vp00000005000229"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here are some of the causes&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;This error message displays when the following occurs: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• The data is inaccessible, unavailable, or invalid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• There are unsupported data types in 64-bit background processing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• Unsupported tools are unable to run in background processing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;• The 64-bit background geoprocessing does not have the necessary 64-bit libraries. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"&gt;When background processing is turned on, scripts execute using 64-bit background processing. ArcMap is unable to read data types not supported by 64-bit background processing, while tools incapable of running in the background cannot leverage 64-bit processing. By default, ArcMap and ArcCatalog communicate through a 32-bit client library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it comes up a lot with python and modelbuilder and SDE and other network based file locations.&amp;nbsp; That could be one reason why 'stuff' works within arcmap with the tools in arctoolbox, but fails as a python script. So, I would run some checks and printouts to ensure that the file can actually be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 00:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-join-a-feature-layer-to-a-query-layer/m-p/467997#M36515</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-21T00:28:58Z</dc:date>
    </item>
  </channel>
</rss>

