laptop and a wrench

漏洞

The CreateWebLayerSDDraft function in ArcPy fails to create a draft file if the {Folder_name} parameter contains spaces in the string.

上次发布: January 21, 2021 ArcGIS Pro
漏洞 ID 编号 BUG-000135515
已提交November 17, 2020
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本2.6.3
操作系统Windows OS
操作系统版本N/A
状态Will Not Be Addressed

附加信息

CreateWebLayerSDDraft is deprecated. Sharing module can be used to use space in portalFolder. Refer to the documentation in the following link, https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/introduction-to-arcpy-sharing.htm. Sample:-import arcpyaprx = arcpy.mp.ArcGISProject("CURRENT")m = aprx.listMaps()[0]sddraft = m.getWebLayerSharingDraft("HOSTING_SERVER", "TILE", "Counties") # This will return object of TileSharingDraftsddraft.portalFolder = "zest test"sddraft.exportToSDDraft(r"C:\Project\Counties.sddraft")

解决办法

Use arcpy.sharing to specify the folder name. Refer to the following link for more information, https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/upload-service-definition.htm.

重现步骤

漏洞 ID: BUG-000135515

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项