laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000155590
EnvoiFebruary 3, 2023
Dernière modificationDecember 10, 2024
S’applique àArcGIS API for Python
Version trouvée2.0.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutAs Designed

Informations supplémentaires

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

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000155590

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement