laptop and a wrench

Error

Adding attribute indexes to all the sublayers in a hosted feature layer using a ‘for loop’ and the ‘manager.add_to_definition’ methods of ArcGIS API for Python results in a failure.

ArcGIS API for Python
Número de ID del error BUG-000174145
EnviadoFebruary 6, 2025
Última modificaciónJune 24, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.4
Sistema operativoWindows Server
Versión de sistema operativo2022
EstadoAs Designed

Información adicional

Do not provide NAME:' “” ' in the addToDefinition payload while adding an index. Index names should be unique across all layers in the database. Since the index name was repeated in the for loop, it was causing a failure.

Solución alternativa

Do not provide NAME:' “” ' in the addToDefinition payload while adding an index.

Pasos para reproducir

ID del error: BUG-000174145

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