laptop and a wrench

Bug

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

Zuletzt veröffentlicht: September 23, 2021 ArcGIS API for Python
Bug-ID-Nummer BUG-000117150
EingereichtOctober 1, 2018
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.4.1
BetriebssystemWindows OS
Betriebssystemversion2016 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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)

Schritte zur Reproduzierung

Bug-ID: BUG-000117150

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln