Select to view content in your preferred language

Environment settings: Current vs. Scratch Workspace

1551
4
04-06-2014 01:17 PM
CraigEissler
Deactivated User
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
Deactivated User
0 Kudos
CraigEissler
Deactivated User
Thanks, Dale.
I guess I had overlooked this.
It appears the Scratch Workspace trumps the Current Workspace if it is set.
0 Kudos
CraigEissler
Deactivated User
...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
Deactivated User
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