| Bug-ID-Nummer |
BUG-000135515 |
| Eingereicht | November 17, 2020 |
| Zuletzt geändert | June 5, 2024 |
| Gilt für | ArcGIS Pro |
| Gefunden in Version | 2.6.3 |
| Betriebssystem | Windows OS |
| Betriebssystemversion | N/A |
| Status | Will Not Be Addressed
Das Entwicklungsteam hat das Problem bzw. die Anforderung sorgfältig geprüft und ist zu dem Schluss gekommen, es nicht zu beheben bzw. keine weiteren Schritte zu unternehmen. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
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