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.

Zuletzt veröffentlicht: January 21, 2021 ArcGIS Pro
Bug-ID-Nummer BUG-000135515
EingereichtNovember 17, 2020
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.6.3
BetriebssystemWindows OS
BetriebssystemversionN/A
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000135515

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln