laptop and a wrench

漏洞

Overwriting hosted feature services from ArcGIS Pro to ArcGIS Online using Python fails to retain the description and credit (attribution) of the hosted feature layer.

ArcGIS Pro
漏洞 ID 编号 BUG-000163031
已提交November 16, 2023
上次修改时间February 18, 2025
适用范围ArcGIS Pro
找到的版本3.1.3
操作系统N/A
操作系统版本N/A
状态Non-Reproducible

附加信息

This issue is non-reproducible. If the issue persists, contact Esri Support Services as additional information is needed for further investigation.

解决办法

The following code can be used to overwrite the description, which wipes out:

from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com", "<username>", "<password>")

# replace with item id from url of item detail page of feature service to be updated
search_result = gis.content.search("id:id:<itemID>")

# overwrite tags/description/snippet
search_result[0].update(item_properties={'tags':'test','description':'1234','snippet':'4567'})
print('done')

重现步骤

漏洞 ID: BUG-000163031

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项