laptop and a wrench

Bug

The item.delete_features function fails when ran synchronously for a hosted layer with sync enabled when the number of features is greater than 300,000.

ArcGIS API for Python
Bug ID Number BUG-000158295
SubmittedMay 13, 2023
Last ModifiedDecember 12, 2024
Applies toArcGIS API for Python
Version found2.1.0
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

This is expected with large deletes. When setting future=True, under the hood, the REST API process these large deletes more efficiently. The service closes the connection and produces the error codes, not the Python API.

Workaround

Add the future=True parameter (as shown below) to delete the features with no errors.

item.delete_features(where='1=1', future=True)

Steps to Reproduce

Bug ID: BUG-000158295

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