laptop and a wrench

不具合

The PortalFolder settings are not honored when publishing a map image layer from ArcGIS Pro to Portal for ArcGIS using the ArcPy MapImageSharingDraft class.

最後に公開された状態: July 4, 2022 ArcGIS Pro
不具合 ID 番号 BUG-000122626
送信されましたMay 28, 2019
最終更新日February 18, 2025
適用対象ArcGIS Pro
見つかったバージョン2.3.3
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
ステータスAs Designed

参考情報

MapImageSharingDraft honors only a folder that already exists in the portal.

対処法

Include the Python API .move() function to the script function to move the published content to an existing folder in Portal for ArcGIS 10.7:

From arcgis.gis import GIS

gis = GIS("https://supt0008374.esri.com/portal", "xxxxxx", "xxxxx")

portal_item = gis.content.search(query ='title:"TomThomson_1"')

print (portal_item)

first_item = portal_item[0]

first_item1 = portal_item[1]

itemlist = [first_item, first_item1]

for item in itemlist:

item_id = item.id;

getitem = gis.content.get(item_id);

getitem.move(folder='Layers_Test')

Refer to this documentation: https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=item%20upload#arcgis.gis.Item.move.

 

再現の手順

不具合 ID: BUG-000122626

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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