Burn Stream Slope Error.

4215
6
02-13-2014 06:51 AM
Labels (1)
ManuelRazo
New Contributor II
I posted this question earlier this week in the Hydro Forum but thought maybe someone here might have some insight.  I have written a python script to run a series of processes using Arc Hydro. The script has worked fine but now I am getting the following error. Does anyone have any idea what this means?

Traceback (most recent call last):
File "D:\SWEET\Script\SWEET_working_multi_file.py", line 150, in <module>
ArcHydroTools.BurnStreamSlope(rstAgree, Ditch_Centerlines, rstSlope, EditPoints)
File "C:\Program Files (x86)\ESRI\WaterUtils\ArcHydro\bin\ArcHydroTools.py", line 4225, in BurnStreamSlope
raise e
ExecuteError: System.Runtime.InteropServices.COMException (0x80041098): ERROR 010429: Error in GRID IO: CellLyrCreateInternal: Unable to create cell layer directory c:\windows\system32\ras02 .
ERROR 010067: Error in executing grid expression.
at ESRI.ArcGIS.GeoAnalyst.RasterConvertHelperClass.ToRaster1(IGeoDataset pIn1, String rasterFormat, IRasterAnalysisEnvironment rasterEnv)
at ESRI.APWR.ApHydro.ArcHydroOp.BurnStreamSlope(ApLayers apLayers, Double stepsize, Double startElevation, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage) in C:\Builds\HydroSolutions\10.1_ArcHydro\Sources\ArcHydroTools\src\ApHydro\ArcHydroOp.vb:line 2894
Failed to execute (BurnStreamSlope).
Tags (2)
0 Kudos
6 Replies
ChristineDartiguenave
Esri Contributor
It looks like something went wrong and the tool tried to write a temp raster in a system location (c:\windows\system32\ras02 ) instead of the temp location. What version of ArcGIS/Arc Hydro are you using?

Christine Dartiguenave
Esri Water Resources Team
0 Kudos
ManuelRazo
New Contributor II
ArcGIS 10.1 sp1 &  Arc Hydro for ArcGIS 10.1 (version 10.1, September 6 2013)
0 Kudos
BarrettGoodwin
New Contributor
I had run into a similar issue running 10.2.1. My work around was to create the folder it was wanting to write to in my case RAS43 in the system32 folder. I also shortened the name from LongestFlowPath to LFP or similar. Not sure which one did it, but ran it again and all is well. I've noticed over the years that shortening names, not using long file paths, not using special characters or spaces, making sure everything is in the same projection, and making sure your DEM covers your area of interest cures just about 99% of ArcHydro issues. Hope this helps.
0 Kudos
MarkBoucher
Occasional Contributor III
I had run into a similar issue running 10.2.1. My work around was to create the folder it was wanting to write to in my case RAS43 in the system32 folder. I also shortened the name from LongestFlowPath to LFP or similar. Not sure which one did it, but ran it again and all is well. I've noticed over the years that shortening names, not using long file paths, not using special characters or spaces, making sure everything is in the same projection, and making sure your DEM covers your area of interest cures just about 99% of ArcHydro issues. Hope this helps.


I'm linking to this good advice in the "Arc Hydro Problem Solvers" thread. Thanks!
0 Kudos
JonathanDullemans
New Contributor
I also encountered this problem. I tried the things suggested by bagoodone007, but none worked for me. In my case I solved the problem by temporarily changing the user account settings to the lowest option, allowing program�??s to make changes to the system. (start > user account > user account control settings).
0 Kudos
ChrisAngel
New Contributor
I was able to get around this by defining the "arcpy.scratchWorkspace.." to something like "C:/Temp"

Maybe that will help too!
0 Kudos