laptop and a wrench

Error

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.

Última publicación: March 26, 2019 ArcGIS Pro
Número de ID del error BUG-000115414
EnviadoJuly 17, 2018
Última modificaciónJuly 17, 2025
Relacionado conArcGIS Pro
Versión encontrada2.2
Sistema operativoWindows OS
Versión de sistema operativo7.0 64 Bit
Versión corregida2.5.1
EstadoFixed

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000115414

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga