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 Number BUG-000155590
SubmittedFebruary 3, 2023
Last ModifiedDecember 10, 2024
Applies toArcGIS API for Python
Version found2.0.1
Operating SystemWindows OS
Operating System Version10.0
StatusAs Designed

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000155590

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