laptop and a wrench

不具合

ArcGIS Pro uses the active network dataset when no network dataset parameter is specified in a script tool.

最後に公開された状態: July 5, 2021 ArcGIS Pro
不具合 ID 番号 BUG-000140966
送信されましたJune 24, 2021
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.8
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

The tool runs MakeServiceAreaAnalysisLayer, AddLocations, Solve in a script tool. The tool has an optional network dataset parameter. When no network dataset is specified, MakeServiceAreaAnalysisLayer does not fail. Instead, it defaults to the active portal URL. The tool runs successfully and burns credits. (It defaults to the active portal URL, not the active network dataset seen in the Network Analysis drop-down menu from the Analysis tab) The MakeServiceAreaAnalysisLayer tool must not fall back to the active portal URL when None or an empty string is passed as an input. Suggestions to improve the script tool's code: 1. If the user does not want to accidentally use credits or solve the analysis using an unexpected network data source, make the tool's input parameter required. This way, the tool fails immediately if no value is specified. 2. Use the Python solver objects added to ArcGIS Pro to improve the Python scripting workflows. They are easier to use and faster than the older layer-based workflows. Rewrite the script tool to use solver objects and avoid the problem altogether. This is the documentation to use the solver objects: https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/performing-network-analysis.htm.

再現の手順

不具合 ID: BUG-000140966

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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