laptop and a wrench

不具合

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

最後に公開された状態: January 21, 2021 ArcGIS Pro
不具合 ID 番号 BUG-000135515
送信されましたNovember 17, 2020
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.6.3
オペレーティング システムWindows OS
オペレーティング システムのバージョンN/A
ステータスWill Not Be Addressed

参考情報

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

対処法

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.

再現の手順

不具合 ID: BUG-000135515

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動