laptop and a wrench

不具合

When a Python script for a GP Tool is published from ArcGIS Pro to ArcGIS Enterprise, some paths are converted into alternative variables. These can cause the scripts or tools to fail with syntax errors.

Portal for ArcGIS
不具合 ID 番号 BUG-000156284
送信されましたMarch 3, 2023
最終更新日January 27, 2025
適用対象Portal for ArcGIS
見つかったバージョン10.9.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスAs Designed

参考情報

These variables are expected to replace relative paths in python when published to ArcGIS Server.

対処法

Limited success has been achieved in some scripts by writing paths differently. For example:

path = "\\Test$_TableToExcel.xlsx"

Output_Excel_File = cwd + os.path.join(path)

In this approach, a new variable for the network path is created, and os.path.join is used with the variable instead of directly typing the network path. This method resolves the syntax errors.

再現の手順

不具合 ID: BUG-000156284

ソフトウェア:

  • Portal for ArcGIS

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

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

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

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

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

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

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