laptop and a wrench

Bug

When using the Python API to assign portal item categories using the update or Bulk_update methods, the new category values are added to the Portal item and the portal items definition. However, the items are not picked up when searching or filtering layers by categories in Map Viewer.

ArcGIS API for Python
Bug-ID-Nummer BUG-000155590
EingereichtFebruary 3, 2023
Zuletzt geändertDecember 10, 2024
Gilt fürArcGIS API for Python
Gefunden in Version2.0.1
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusAs Designed

Zusätzliche Informationen

This is expected behavior. The filter list should come from the category schema set in the organization properties not an individual items category value.

Workaround

Use the gis.admin.category_schema method with to create a category schema object and use the categorize_item method to implement category assignment procedure on each individual item.

This works on the portal item page UI and when searching for the item via a category filter in Map Viewer.

Schritte zur Reproduzierung

Bug-ID: BUG-000155590

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