From 2654c1cd93a3f96ae76d263bbee14b8d9c11cb28 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Mon, 22 Jun 2026 17:23:42 -0600 Subject: [PATCH] fix: deal with arcgis package breaking change This must have broke at 2.4.3 or around there. Here is the source code for `Table.fromitem` ```python class Table(FeatureLayer): """ ``Table`` objects represent entity classes with uniform properties. In addition to working with "entities with location" as :class:`~arcgis.features.Feature` objects, the :class:`~arcgis.gis.GIS` can also work with non-spatial entities as rows in tables. .. note:: Working with tables is similar to working with :class:`~arcgis.features.FeatureLayer`objects, except that the rows (Features) in a table do not have a geometry, and tables ignore any geometry related operation. """ @classmethod def fromitem(cls, item: Item, layer_id: int = None, id_property: int = None): ``` --- src/palletjack/load.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/palletjack/load.py b/src/palletjack/load.py index 59508ae3..5d924add 100644 --- a/src/palletjack/load.py +++ b/src/palletjack/load.py @@ -54,9 +54,9 @@ def __init__( self.gis = gis if service_type == "table": - self.service = arcgis.features.Table.fromitem(gis.content.get(itemid), table_id=index) + self.service = arcgis.features.Table.fromitem(gis.content.get(itemid), index) else: - self.service = arcgis.features.FeatureLayer.fromitem(gis.content.get(itemid), layer_id=index) + self.service = arcgis.features.FeatureLayer.fromitem(gis.content.get(itemid), index) self.service_type = service_type self.index = index