laptop and a wrench

Bug

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

Last Published: January 21, 2021 ArcGIS Pro
Bug ID Number BUG-000135515
SubmittedNovember 17, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.6.3
Operating SystemWindows OS
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

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")

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000135515

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options