laptop and a wrench

Bug

The 'arcgis.features.analysis.join_features' script in the ArcGIS API for Python fails to overwrite an existing feature when {"overwrite": True}).

ArcGIS API for Python
Bug ID Number BUG-000161437
SubmittedSeptember 14, 2023
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found2.1.0
Operating SystemN/A
Operating System VersionN/A
StatusAs Designed

Additional Information

The sample provided code is incorrect. When overwriting a feature layer, the input for the 'output_name' needs to be a FeatureLayer object. Sample pseudocode: overwrite_item = gis.content.get("some item id") results = arcgis.features.analysis.join_features( target_layer=FeatureLayer( "https://myurl.com/0" ), join_layer=fl, spatial_relationship='intersects', output_name=overwrite_item.layers[ 0 ], # needs to be feature layer object. context={"overwrite": True}, )

Steps to Reproduce

Bug ID: BUG-000161437

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options