laptop and a wrench

Bug

Unable to assign and set up group categories in Portal for ArcGIS 10.7.1 with ArcGIS Python API 1.6.1 and the CategorySchemaManager module.

Zuletzt veröffentlicht: August 22, 2019 ArcGIS API for Python
Bug-ID-Nummer BUG-000124536
EingereichtAugust 15, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.6.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusNon-Reproducible

Zusätzliche Informationen

In order for the categories to show up the schema property needs to be set using the CategorySchemaManager. If a group already exists in the portal, the most straightforward way is described below. Steps to make this work: 1. Create your group from an id: >>> TestGroup = Group(gis, "") 2. Use the categories property to create a CategorySchemaManager for the group >>> cats = TestGroup.categories 3. Assign the new Schema array of objects >>> new_categories = [ { "title": "test", "description": "Test root", "categories": [ { "title": "Category1", "description": "Category one", "categories": [ { "title": "Category2", "description": "Category two", "categories": [ {"title": "Another1", "description": "another one"} ], } ], } ], } ] >>> cats.schema = new_categories 4. Use the update method on the group to save and see in the GUI >>> TestGroup.update() Once you refresh the page on the portal, the new categories should be visible. Please also note the known limitation of only being able to have 5 category trees

Workaround

Manually create the Group Categories in Portal for ArcGIS 10.7.1 within the "Contents" tab of the Group.

Schritte zur Reproduzierung

Bug-ID: BUG-000124536

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