While trying to run the Calculate Length Downstream For Junctions tool, I receive the following error.
Traceback (most recent call last):
File "C:\Users\444\Desktop\streams_final.py", line 49, in <module>
File "C:\Program Files (x86)\ESRI\WaterUtils\ArcHydro\bin\ArcHydroTools.py", line 255, in CalculateLengthDownstreamForJunctions
ExecuteError: AddFieldGPerror : System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)
at ESRI.APWR.ApHydro.GDBHelper.AddFieldGP(ApLayer apLayer, String fieldTag, String& exMessage) in C:\Builds\HydroSolutions\10.2_ArcHydro\Sources\ArcHydroTools\src\ApHydro\GDBHelper.vb:line 1339
Failed to execute (CalculateLengthDownstreamForJunctions).
I am running the tool against a Feature Class. Can anyone tell me how to resolve this issue?
I've posted several "solutions" to Arc Hydro problems at ArcHydro Problem Solvers. You can peruse this for other solution ideas.
The "HRESULT E_FAIL" type error could be due to two things (my best off the top of my head guess).