laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000171384
EingereichtOctober 10, 2024
Zuletzt geändertApril 9, 2025
Gilt fürArcGIS API for Python
Gefunden in Version2.4
BetriebssystemWindows OS
Betriebssystemversion11.0 64 bit
Behoben in Version2.4.1
StatusFixed

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000171384

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