laptop and a wrench

Bogue

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

Dernière publication: September 23, 2021 ArcGIS API for Python
Numéro d’ID de bogue BUG-000117150
EnvoiOctober 1, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée1.4.1
Système d’exploitationWindows OS
Version du système d’exploitation2016 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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)

Étapes pour reproduire

ID de bogue: BUG-000117150

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement