laptop and a wrench

不具合

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.

最後に公開された状態: August 22, 2019 ArcGIS API for Python
不具合 ID 番号 BUG-000124536
送信されましたAugust 15, 2019
最終更新日June 5, 2024
適用対象ArcGIS API for Python
見つかったバージョン1.6.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスNon-Reproducible

参考情報

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

対処法

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

再現の手順

不具合 ID: BUG-000124536

ソフトウェア:

  • ArcGIS API for Python

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動