laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000156284
EnvoiMarch 3, 2023
Dernière modificationJanuary 27, 2025
S’applique àPortal for ArcGIS
Version trouvée10.9.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutAs Designed

Informations supplémentaires

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

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000156284

Logiciel:

  • Portal for ArcGIS

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement