We have built one product using ESRI runtime and we are shipping scratch.gdb (inside template folder) as part of product..... do we really need scratch.gdb to ship. Can we remove it from our installation folder...... will there any issues?

481
3
06-11-2020 10:14 PM
HimanshuTambe
New Contributor

In simple test, like reading the properties (CRS, geometry...etc) of a shape file we found no issue....even after we removed the 'scratch.gdb' file from (<Installation Directory>\ArcGIS\ArcGISRuntime10.2.4\LocalServer64\ArcToolbox\Templates)

But still we are NOT sure .....is it safe to remove 'scratch.gdb' file.

0 Kudos
3 Replies
MarkBaird
Esri Regular Contributor

I'm seeking clarification from the Local Server team.  Will reply with an answer shortly.

0 Kudos
MarkBaird
Esri Regular Contributor

Okay the word from the Local Server team is that the GDB is needed by some GP tools which need to write content into it.  So you could exclude it if you've tested you workflows function correctly.

If however you start using a GP tool which does need it, you may run into trouble.

0 Kudos
MarcoBoeringa
MVP Regular Contributor

I think the Geoprocessing Help is quite clear about this. The scratch geodatabase, if used as a geoprocessing environment variable, so called as:

arcpy.env.scratchGDB

is guaranteed to be there. ArcGIS will automatically create it, even if it is not there. See here:

Scratch GDB (Environment setting)—Geoprocessing | Documentation 

This makes it safe to write to this environment / workspace even in portable applications / tools.

0 Kudos