laptop and a wrench

Erro

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

Última Publicação: September 23, 2021 ArcGIS API for Python
Número de ID do Erro BUG-000117150
EnviadoOctober 1, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for Python
Versão encontrada1.4.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional2016 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: BUG-000117150

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download