laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000171384
EnvoiOctober 10, 2024
Dernière modificationApril 9, 2025
S’applique àArcGIS API for Python
Version trouvée2.4
Système d’exploitationWindows OS
Version du système d’exploitation11.0 64 bit
Version de correction2.4.1
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000171384

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement