laptop and a wrench

Bogue

Including arcpy.env.workspace in a string in a Python argument in an embedded script tool in ArcGIS Pro results in a g_ESRI_variable being added to the script when the project is shared as a template which can sometimes break the script.

Dernière publication: March 26, 2019 ArcGIS Pro
Numéro d’ID de bogue BUG-000115414
EnvoiJuly 17, 2018
Dernière modificationJuly 17, 2025
S’applique àArcGIS Pro
Version trouvée2.2
Système d’exploitationWindows OS
Version du système d’exploitation7.0 64 Bit
Version de correction2.5.1
StatutFixed

Solution de contournement

1. Add the toolbox manually rather than saving as a template.

2. Replace the arcpy.env.workspace with the equivalent variable.

3. Remove the arcpy.env.workspace variable completely if not necessary.

Étapes pour reproduire

ID de bogue: BUG-000115414

Logiciel:

  • ArcGIS Pro

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