<?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.features.analysis import join_features error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-analysis-import-join-features/m-p/1512438#M10384</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I tried giving this a go and repeated the workflow a few times. Agreed I do not see any coding issues with this.&lt;/P&gt;&lt;P&gt;I suspect something within the data has changed, particularly if the error is stating that the service type is unsupported. Can we therefore confirm if both the layer and table have been reuploaded or overwritten by any other processes?&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 16:23:54 GMT</pubDate>
    <dc:creator>David_McRitchie</dc:creator>
    <dc:date>2024-07-30T16:23:54Z</dc:date>
    <item>
      <title>arcgis.features.analysis import join_features error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-analysis-import-join-features/m-p/1507339#M10359</link>
      <description>&lt;P&gt;My code (below) worked before, costing 10 credits and created a new feature layer.&lt;/P&gt;&lt;P&gt;# retrieves feature layer&amp;nbsp; with a layer and table&lt;BR /&gt;itemid=xyzxyzxyzxyzxyz&lt;BR /&gt;item= gis.content.get(itemid)&lt;BR /&gt;layer = item.layers[0]&amp;nbsp;&lt;BR /&gt;table =item.tables[0]&amp;nbsp;&lt;/P&gt;&lt;P&gt;#dictionary to match by 'Location ID' attribute&lt;BR /&gt;attribute_relationship = [{"targetField": "Location_ID", "joinField": "Location_ID"}]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Create new feature layer with joined layer and table&lt;BR /&gt;join_output = join_features(target_layer=layer,&lt;BR /&gt;join_layer=table,&lt;BR /&gt;attribute_relationship=attribute_relationship,&lt;BR /&gt;join_operation='JoinOneToMany',&lt;BR /&gt;output_name=strftime('Results%m_%d_%Y')&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;print("Join operation completed. Output item ID:", join_output.id)&lt;/P&gt;&lt;P&gt;However, it now runs with an error code when no changes has been made. How to I go about the error and what does it mean? The error message is below:&lt;/P&gt;&lt;PRE&gt;Failed to serve the request against portals/self/isServiceNameAvailable due to Error code: 400
Description: Bad syntax in request.
Message: Unsupported service type: {0}.
.
{"messageCode": "AO_100215", "message": "JoinFeatures failed."}
Failed to execute (JoinFeatures).
Failed.&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 15:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-analysis-import-join-features/m-p/1507339#M10359</guid>
      <dc:creator>Nsml12</dc:creator>
      <dc:date>2024-07-19T15:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.features.analysis import join_features error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-analysis-import-join-features/m-p/1512438#M10384</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I tried giving this a go and repeated the workflow a few times. Agreed I do not see any coding issues with this.&lt;/P&gt;&lt;P&gt;I suspect something within the data has changed, particularly if the error is stating that the service type is unsupported. Can we therefore confirm if both the layer and table have been reuploaded or overwritten by any other processes?&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-analysis-import-join-features/m-p/1512438#M10384</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-07-30T16:23:54Z</dc:date>
    </item>
  </channel>
</rss>

