<?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: arcgis.join_features returns &amp;quot;The number of features in &amp;lt;layer&amp;gt; is zero.&amp;quot; in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/1182851#M7491</link>
    <description>&lt;P&gt;I was experiencing the same error running the "Summarize Within" tool and had no idea what the issue was. I realized I had one small polyline selected. I cleared the selection and ran the tool again, which finished successfully. I'm new to ArcGIS so I'm not sure if this is intended, perhaps you can also run this tool using the current selection to achieve various results.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 19:04:01 GMT</pubDate>
    <dc:creator>MYoung33</dc:creator>
    <dc:date>2022-06-14T19:04:01Z</dc:date>
    <item>
      <title>arcgis.join_features returns "The number of features in &lt;layer&gt; is zero."</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/791608#M1609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been banging my head on this for the past several days.&amp;nbsp; Here is my scenario, I would like to join our taxlot hosted feature layer with our assessors table.&amp;nbsp; Both data sets reside in our ArcGIS Managed DataStore (PostgreSQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Jupyter Notebook I am able to access both hosted feature layer and hosted feature table.&amp;nbsp; I verify the records by performing a simple query.&amp;nbsp; In addition, I am able to display each service graphically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to perform a simple table join (assessor table to taxlots) I receive the following error message:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;{"messageCode": "AO_100032", "message": "The number of features in tax_genparcels is zero.", "params": {"analysisLayer": "tax_genparcels"}} {"messageCode": "AO_100215", "message": "JoinFeatures failed."} Failed to execute (JoinFeatures). Failed.&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;I don't get it.  I validated that parcels have features:

# Properties of a Feature Layer
feature_layer = taxlot_layer[0]&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;feature_results = feature_layer.query(where='objectid&amp;gt;0', return_count_only=True)&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;feature_results
158933

&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Below is the code I'm using to perform the join:

output = analysis.join_features(target_layer='&amp;lt;string_to_hosted_feature_layer&amp;gt;',
 &amp;nbsp;join_layer='&amp;lt;string_to_hosted_table_layer&amp;gt;',
 spatial_relationship=None,
 spatial_relationship_distance=None,
 spatial_relationship_distance_units=None,
 attribute_relationship=[{"targetField":"maptaxlot","operator":"equal","joinField":"tlno"}],
 join_operation='JoinOneToOne',
 output_name='TaxlotAssessmentTest',
 context={"extent":{"xmin":-44785405.742,"ymin":18653826.208,"xmax":-44778081.523,"ymax":18660282.372,"spatialReference":{"wkid":102100,"latestWkid":3857},"outSR":{"wkid":102100}}},
 )&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;I have tried setting the spatial relationship to 'identicalto' and it still errors out.  Any help would be greatly appreciated.&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Thanks and stay safe&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/791608#M1609</guid>
      <dc:creator>JimLugosi</dc:creator>
      <dc:date>2021-12-12T09:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.join_features returns "The number of features in &lt;layer&gt; is zero."</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/1112448#M6773</link>
      <description>&lt;P&gt;I'm having the same problem, but with the web map join feature. Did you ever figure it out?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/1112448#M6773</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-10-29T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.join_features returns "The number of features in &lt;layer&gt; is zero."</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/1182851#M7491</link>
      <description>&lt;P&gt;I was experiencing the same error running the "Summarize Within" tool and had no idea what the issue was. I realized I had one small polyline selected. I cleared the selection and ran the tool again, which finished successfully. I'm new to ArcGIS so I'm not sure if this is intended, perhaps you can also run this tool using the current selection to achieve various results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-join-features-returns-quot-the-number-of/m-p/1182851#M7491</guid>
      <dc:creator>MYoung33</dc:creator>
      <dc:date>2022-06-14T19:04:01Z</dc:date>
    </item>
  </channel>
</rss>

