laptop and a wrench

Error

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

Última publicación: January 21, 2021 ArcGIS Pro
Número de ID del error BUG-000135515
EnviadoNovember 17, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.6.3
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

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

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000135515

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga