<?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 Join AGOL hosted feature layer to feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/join-agol-hosted-feature-layer-to-feature-class/m-p/123222#M9570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attempting to join a feature class to a hosted feature layer to determine if there are features that exist in the feature class and not in the hosted feature layer (see code below), I get the following error.&lt;/P&gt;&lt;P&gt;ERROR 000732: Join Table: Dataset fl does not exist or is not supported&lt;BR /&gt;Failed to execute (AddJoin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I join a hosted feature layer to a feature class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;publishedWebLayer = r"https://services1.arcgis.com/mapid/ArcGIS/rest/services/FeatureServer/1"&lt;BR /&gt;mygis = arcgis.gis.GIS(r"https://maps.arcgis.com", "usr", "pw")&lt;BR /&gt;fl = arcgis.features.FeatureLayer(publishedWebLayer, mygis)&lt;BR /&gt;FC = r"C:\GIS\Data.gdb\BRW3"&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(FC, "fcView")&lt;BR /&gt;joinField = "UID"&lt;BR /&gt;arcpy.AddJoin_management ("fcView", joinField, "fl", joinField, "KEEP_ALL")&lt;BR /&gt;arcpy.SelectLayerByAttribute_management("fcView","NEW_SELECTION",'"Incidents.OBJECTID" IS NULL')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Sep 2019 18:31:38 GMT</pubDate>
    <dc:creator>EdwardGlover1</dc:creator>
    <dc:date>2019-09-08T18:31:38Z</dc:date>
    <item>
      <title>Join AGOL hosted feature layer to feature class</title>
      <link>https://community.esri.com/t5/python-questions/join-agol-hosted-feature-layer-to-feature-class/m-p/123222#M9570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attempting to join a feature class to a hosted feature layer to determine if there are features that exist in the feature class and not in the hosted feature layer (see code below), I get the following error.&lt;/P&gt;&lt;P&gt;ERROR 000732: Join Table: Dataset fl does not exist or is not supported&lt;BR /&gt;Failed to execute (AddJoin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I join a hosted feature layer to a feature class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;publishedWebLayer = r"https://services1.arcgis.com/mapid/ArcGIS/rest/services/FeatureServer/1"&lt;BR /&gt;mygis = arcgis.gis.GIS(r"https://maps.arcgis.com", "usr", "pw")&lt;BR /&gt;fl = arcgis.features.FeatureLayer(publishedWebLayer, mygis)&lt;BR /&gt;FC = r"C:\GIS\Data.gdb\BRW3"&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(FC, "fcView")&lt;BR /&gt;joinField = "UID"&lt;BR /&gt;arcpy.AddJoin_management ("fcView", joinField, "fl", joinField, "KEEP_ALL")&lt;BR /&gt;arcpy.SelectLayerByAttribute_management("fcView","NEW_SELECTION",'"Incidents.OBJECTID" IS NULL')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2019 18:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-agol-hosted-feature-layer-to-feature-class/m-p/123222#M9570</guid>
      <dc:creator>EdwardGlover1</dc:creator>
      <dc:date>2019-09-08T18:31:38Z</dc:date>
    </item>
  </channel>
</rss>

