I just ran into this issue with ArcGIS 10.2.2 ArcCatalog.
I'm running a script tool that runs CreateConstantRaster and I get exactly the same GDAL error.
(esriDataSourcesRaster:GdalDriver") Failed to copy raster dataset
then error 010240 Could not save raster dataset to C:\system32\temp\g_g7634
The tool runs fine from ArcMap.
Setting ARCTMPDIR to a writeable folder before launching ArcCatalog solved my problem.
This is covered in the KB article I referenced above, under a link labeled "show me". The easiest way to get to user environment variables in Win 7 is to enter "env" in the search box on the start menu.
Well, that makes good sense. My problem is I am new to ArcGIS and don't know how to set ARCTMPDIR.
Anna/Donald:It's a much better fix to set the environment variable ARCTMPDIR to a writeable location (best practice- a local disk drive).
Thanks for the note. Yes, it did have to do with to do with administrative permissions.When I run ArcGIS as Administrator it is ok.
I am trying to run IDW interpolation with barriers. The process fails to convert the barrier into a shapefile in the Windows\System32 folder (where I don't have full write permission).
Same exact issue here.The folder it's trying to write the GRID to (C:\Windows\System32 ) is read only and requires admin privileges as dictated by user profiles assigned by our IT. I can't find anywhere in the environment settings where I can redirect it to a folder in which I do have permission to write.Permissions are a recurring issue here (nearly exclusively with ESRI software) and there is no negotiating for increased admin privileges.
arcpy.PathAllocation_sa("U:/Clusters2006/h99B99p30/h99B99p30_s","C:/t/PathAll_h99B1","U:/Clusters2006/imped_h/g99Bi30pir","#","#","BINARY 1 45","#","BINARY 1 -30 30","#","#","VALUE","#","#")
Messages Executing: PathAllocation U:\Clusters2006\h99B99p30\h99B99p30_s C:\t\PathAll_h99B1 U:\Clusters2006\imped_h\g99Bi30pir # # "BINARY 1 45" # "BINARY 1 -30 30" # # VALUE # # Start Time: Wed May 30 09:26:33 2012 ERROR 010029: Unable to create the raster C:\windows\system32\t_t017. Path Distance mapping is Failed ERROR 010067: Error in executing grid expression. Failed to execute (PathAllocation). Failed at Wed May 30 09:26:34 2012 (Elapsed Time: 1.00 seconds)
arcpy.PathAllocation_sa("U:/Clusters2006/h99b99p30/h99b99p30_s","C:/t/PathAll_h99b1","U:/Clusters2006/imped_h/g99bi30pir","#","#","BINARY 1 45","#","BINARY 1 -30 30","#","#","VALUE","#","#")
Messages Executing: PathAllocation U:\Clusters2006\h99b99p30\h99b99p30_s C:\t\PathAll_h99b1 U:\Clusters2006\imped_h\g99bi30pir # # "BINARY 1 45" # "BINARY 1 -30 30" # # VALUE # # Start Time: Wed May 30 09:32:44 2012 Succeeded at Wed May 30 09:35:45 2012 (Elapsed Time: 3 minutes 1 seconds)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.