laptop and a wrench

Bug

When running a function from the arcgis.features module using the ArcGIS API for Python with context parameter including {"overwrite": True}, the overwritten feature layer adds an identical, duplicate sublayer to the selected item instead of overwriting.

ArcGIS API for Python
Bug ID Number BUG-000161602
SubmittedSeptember 21, 2023
Last ModifiedJune 18, 2025
Applies toArcGIS API for Python
Version found2.1.1
Operating SystemN/A
Operating System VersionN/A
StatusDuplicate

Additional Information

Duplicate of BUG-000164245.

Workaround

Use ArcGIS Online Assistant to remove sublayers from feature layer. Note: ArcGIS Online Assistant is not supported by Esri Technical Support.

  1. Navigate to assistant.esri-ps.com and log in.
  2. On the My Content tab, find the target feature layer and click it. Click View Item JSON.
  3. Click the Data tab and click Edit JSON.
  4. Delete the duplicate JSON data. Make sure to keep the original ("id": 0). Deleting it all will break the layer and any dependent apps.

Steps to Reproduce

Bug ID: BUG-000161602

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