laptop and a wrench

Bug

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

Zuletzt veröffentlicht: July 5, 2021 ArcGIS Pro
Bug-ID-Nummer BUG-000140966
EingereichtJune 24, 2021
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.8
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000140966

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln