laptop and a wrench

Error

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
Número de ID del error BUG-000155590
EnviadoFebruary 3, 2023
Última modificaciónDecember 10, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.0.1
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoAs Designed

Información adicional

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

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000155590

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga