laptop and a wrench

Error

The env.workspace parameter is reset after using a tool in the Spatial Analyst toolbox.

Última publicación: September 23, 2020 ArcGIS Pro
Número de ID del error BUG-000132851
EnviadoAugust 5, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.5.2
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoNon-Reproducible

Información adicional

This issue is fixed and not reproducible in ArcGIS Pro 2.6.

Solución alternativa

The following workarounds are based on the findings of the user from the related case and GeoNet post:

  • No need to reset, simply printing it [the workspace] works fine.
  • Use full paths instead of the relative paths.
  • Use a ‘with arcpy.EnvManager(workspace = ‘\path\to\workspace):’ indent block rather than simply setting arcpy.env.workspace.

Pasos para reproducir

ID del error: BUG-000132851

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