laptop and a wrench

Error

There are performance issues when using the 'size' property of the content class in ArcGIS API for Python.

Última publicación: September 23, 2021 ArcGIS API for Python
Número de ID del error BUG-000117150
EnviadoOctober 1, 2018
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.4.1
Sistema operativoWindows OS
Versión de sistema operativo2016 64 Bit
EstadoWill Not Be Addressed

Información adicional

This is by design since the size is normally incorrect. The item class states to erase the property value in the __init__ of the item.

Solución alternativa

The workaround is to assign the item in the loop to a new variable:

from arcgis.gis import GIS

gis = GIS("<portal/ArcGIS Online>","<user>","<password>")

content = gis.content.search(query="")

for c in content:

test = c

print(test.size)

Pasos para reproducir

ID del error: BUG-000117150

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