laptop and a wrench

Bug

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

Last Published: September 23, 2020 ArcGIS Pro
Bug ID Number BUG-000132851
SubmittedAugust 5, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.5.2
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

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

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000132851

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options