laptop and a wrench

Error

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 del error BUG-000171384
EnviadoOctober 10, 2024
Última modificaciónApril 9, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.4
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
Versión corregida2.4.1
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000171384

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