Scratch GDB in Modelbuilder

3869
1
Jump to solution
02-01-2022 03:36 AM
Labels (2)
KhumeleniMakungo
New Contributor

Good day,

I am trying to make my model portable by using scratch GDB, however whenever I run the model it crashes, below is the error message:

"ERROR 000229: Cannot open C:\Users\kmakungo\AppData\Local\Temp\ArcGISProTemp26572\scratch.gdb\StreetBuffer_12m
Failed to execute (Cut the 12m buffer with the 3.5m buffer)."

I have set my outputs directory as follow: "%scratchGDB%\output_name"

I have no idea why it keeps giving me this error. Please assist if you have encountered this before.

0 Kudos
1 Solution

Accepted Solutions
KimGarbade
Frequent Contributor

That is weird it looks right to me (as long as you aren't using the double quotes.. I.E. it should just be %scatchGDB%\OutputName no quotes).... Other than that you could try setting your scratch workspace in your ArcGIS Pro project to the default GDB of your project.  That should make that GDB your ScratchGDB.  You could try that and see if it works... maybe the folder your currently using for the GDB (C:\Users\kmakungo\AppData\Local\Temp\ArcGISProTemp26572\scratch.gdb) is read only for some reason.  Have you checked that the GDB exists in that location? 

View solution in original post

1 Reply
KimGarbade
Frequent Contributor

That is weird it looks right to me (as long as you aren't using the double quotes.. I.E. it should just be %scatchGDB%\OutputName no quotes).... Other than that you could try setting your scratch workspace in your ArcGIS Pro project to the default GDB of your project.  That should make that GDB your ScratchGDB.  You could try that and see if it works... maybe the folder your currently using for the GDB (C:\Users\kmakungo\AppData\Local\Temp\ArcGISProTemp26572\scratch.gdb) is read only for some reason.  Have you checked that the GDB exists in that location?