Calculate Length Downstream For Junctions Add Field Issue

3839
4
12-03-2014 01:52 PM
Labels (1)
JoshObrecht
Occasional Contributor

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>

    ArcHydroTools.CalculateLengthDownstreamForJunctions(PlacedPoints)

  File "C:\Program Files (x86)\ESRI\WaterUtils\ArcHydro\bin\ArcHydroTools.py", line 255, in CalculateLengthDownstreamForJunctions

    raise e

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?

Tags (1)
0 Kudos
4 Replies
JoshObrecht
Occasional Contributor

Any help would be great

0 Kudos
MarkBoucher
Occasional Contributor III

Josh,

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).

  • Having your project files on a server. Put them on your local drive - runs faster and with fewer errors like this.
  • Put as much of your data as possible in geodatabases. They are more stable than regular shape files.

Mark

JoshObrecht
Occasional Contributor

I will look in that thread to see if it helps. Both of your suggestions were already being done.

0 Kudos
JoshObrecht
Occasional Contributor

There was nothing in that thread that helped.

0 Kudos