laptop and a wrench

Erro

The ArcGIS API for Python Item.tables property returns an empty array of tables when the item type is a map service.

ArcGIS API for Python
Número de ID do Erro BUG-000171384
EnviadoOctober 10, 2024
Última ModificaçãoApril 9, 2025
Aplica-se àArcGIS API for Python
Versão encontrada2.4
Sistema OperacionalWindows OS
Versão do Sistema Operacional11.0 64 bit
Versão Fixa2.4.1
StatusFixed

Solução Provisória

Cast the item to FeatureLayerCollection:

from arcgis.features import FeatureLayerCollection

if not item is None:

  f_l_coll = FeatureLayerCollection.fromitem(item)

  print(f_l_coll.layers) # this prints the layers

  print(f_l_coll.tables) # this prints the tables

Etapas para Reproduzir

ID do Erro: BUG-000171384

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