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, 2018ArcGIS Pro
Bug ID Number
BUG-000117187
Submitted
October 2, 2018
Last Modified
June 25, 2025
Applies to
ArcGIS Pro
Version found
2.2.2
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
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.