laptop and a wrench

不具合

Including arcpy.env.workspace in a string in a Python argument in an embedded script tool in ArcGIS Pro results in a g_ESRI_variable being added to the script when the project is shared as a template which can sometimes break the script.

最後に公開された状態: March 26, 2019 ArcGIS Pro
不具合 ID 番号 BUG-000115414
送信されましたJuly 17, 2018
最終更新日July 17, 2025
適用対象ArcGIS Pro
見つかったバージョン2.2
オペレーティング システムWindows OS
オペレーティング システムのバージョン7.0 64 Bit
修正されたバージョン2.5.1
ステータスFixed

対処法

1. Add the toolbox manually rather than saving as a template.

2. Replace the arcpy.env.workspace with the equivalent variable.

3. Remove the arcpy.env.workspace variable completely if not necessary.

再現の手順

不具合 ID: BUG-000115414

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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