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 Number BUG-000171384
SubmittedOctober 10, 2024
Last ModifiedApril 9, 2025
Applies toArcGIS API for Python
Version found2.4
Operating SystemWindows OS
Operating System Version11.0 64 bit
Version Fixed2.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

Steps to Reproduce

Bug ID: BUG-000171384

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options