laptop and a wrench

Error

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
Número de ID del error BUG-000158295
EnviadoMay 13, 2023
Última modificaciónDecember 12, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.1.0
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

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.

Solución alternativa

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

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

Pasos para reproducir

ID del error: BUG-000158295

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga