| Bug ID Number |
BUG-000135515 |
| Submitted | November 17, 2020 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS Pro |
| Version found | 2.6.3 |
| Operating System | Windows OS |
| Operating System Version | N/A |
| Status | Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
|
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