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.

Last Published: August 22, 2019 ArcGIS API for Python
Bug ID Number BUG-000124536
SubmittedAugust 15, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.6.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000124536

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