laptop and a wrench

Bug

When defining a function in Python that contains a Spatial Analyst tool, the output is saved to the default geodatabase in ArcGIS Pro rather than in the workspace set in the main function.

Last Published: October 16, 2018 ArcGIS Pro
Bug ID Number BUG-000117187
SubmittedOctober 2, 2018
Last ModifiedJune 25, 2025
Applies toArcGIS Pro
Version found2.2.2
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

Set the workspace in the function before the Spatial Analyst tool.  

Steps to Reproduce

Bug ID: BUG-000117187

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