laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000156284
EingereichtMarch 3, 2023
Zuletzt geändertJanuary 27, 2025
Gilt fürPortal for ArcGIS
Gefunden in Version10.9.1
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusAs Designed

Zusätzliche Informationen

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

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000156284

Software:

  • Portal for ArcGIS

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