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 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项