Environment settings: Current vs. Scratch Workspace

1024
4
04-06-2014 01:17 PM
CraigEissler
New Contributor III
How does a Geoprocessing Tool know which Workspace (Current or Scratch) to save the output?
...My outputs are being saved in the Scratch Workspace, but why?
0 Kudos
4 Replies
DaleHoneycutt
Regular Contributor
0 Kudos
CraigEissler
New Contributor III
Thanks, Dale.
I guess I had overlooked this.
It appears the Scratch Workspace trumps the Current Workspace if it is set.
0 Kudos
CraigEissler
New Contributor III
...Well, maybe I spoke too quick.
I thought I understood what I read in the Help Doc, ...but

Whenever I try to only set the Current Workspace and erase anything in the Scratch Workspace, ArcGIS still defaults the Scratch Workspace back to the \Default.gdb\ Workspace and that's where it is saving my outputs. ...Seems to me the Current Workspace is completely ignored.
0 Kudos
DaleHoneycutt
Regular Contributor
What version are you on?  I seem to recall there was a subtle bug that only showed up under certain (and rare) conditions where stuff like this would happen.  I also recall that it was mxd specific.  That is, if you open a fresh ArcMap session, everything behaves as it should.  Anyway, I'll check the support boards for this issue.  There's also a chance (!?!) the doc may be wrong, that a blank scratch workspace defaults to default.gdb. 

In the meantime... set your scratch workspace to your current workspace or another suitable known location.
0 Kudos