Professional Documents
Culture Documents
The purpose of this document is to provide solutions to some common issues encountered when using
ArcGIS and the Arc Hydro tools.
Table of Contents
Arc Hydro Issues............................................................................................................................................ 3
Automation Error ...................................................................................................................................... 3
VAT missing from Catchment Grid ............................................................................................................ 3
Too many records for Create Weir Stations tool to calculate .................................................................. 3
Grid process bombs out ............................................................................................................................ 4
Arc Hydro System.Runtime Error (Flow Direction with Sinks) ............................................................ 4
Drainage Area Characterization (empty values) ....................................................................................... 5
Drainage Boundary Smoothing Error ........................................................................................................ 5
Arc Hydro does not completely uninstall.................................................................................................. 6
How To .......................................................................................................................................................... 7
Change Arc Hydro default from personal .mdb to file .gdb ...................................................................... 7
Turn off Auto Target Location Creation on .MXD Save............................................................................. 8
Calculate lowest spill elevation for catchments ....................................................................................... 8
Generate spill points on catchment boundaries .................................................................................... 11
Generate irregular cross-section lines and extract elevations from a DEM ........................................... 12
Check for Duplicate Features .................................................................................................................. 14
Populate FROM_NODE and TO_NODE for ICPR_LINKs........................................................................... 16
Snap Lines to Nearest Nodes .................................................................................................................. 17
Hydraulic Element Point (HEP) Errors ......................................................................................................... 18
HEP Error message HRESULT_E_FAIL .................................................................................................. 18
Bridge Deck HEP Error System.Argument.Exception ........................................................................... 18
HEP error message System.RuntimeSpatial References Do Not Match ........................................... 19
Automation Error
This error may occur when some temporary files are incorrectly deleted.
Solution
Clean up the Windows temp directory that defaults to:
C:\Documents and Settings\username\Local Settings\Temp
Solution
Recreate the VAT table by using the Multi Output Map Algebra gp tool under Spatial Analyst toolbox.
Then remove CAT Grid and re-add it to the map. The Drainage Point Processing tool should run now.
Solution
Edit registry to increase the maximum number of records for automatically creating the grid table
(default is 65536)
Click Start >> Run and type Regedit
Browse to HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\Raster\Preferences
Right-click grid.max_table_range and click modify
Increase value from 65536 to 1,000,000 or more
Click OK, close Registry Editor and reboot for settings to take effect
Clean out temp directory and retry
Solution
Clean up the Windows temp directory that defaults to:
C:\Documents and Settings\username\Local Settings\Temp
Solution
Clean up the Windows temp directory that defaults to:
C:\Documents and Settings\username\Local Settings\Temp
Also delete .x and .s temp files located in the ...\Program Files\ArcGIS\Bin directory.
Solution
Make sure the coordinate system is defined for the feature dataset where you are attempting to write
the output (smoothed drainage boundary lines).
Solution
Run the latest ApRegWork.exe to search for leftover references in the registry and delete them.
Solution
1. Open ArcHydroTools.xml with the XML viewer (XMLViewEdit.exe) both are located in:
C:\Program Files\ESRI\WaterUtils\ArcHydro9\Bin\
a. Browse to: HydroConfig > ProgParams > LocationType > Vector
d. Save the XML (Click Yes to overwrite the exiting) and close the XML editor.
AH GP tools (toolbox tools) use this ahd to create target workspace. If user makes any changes to
ArcHydroTools.xml in the bin folder, either they need to delete ArcHydroTools.ahd from the Application
Data\ESRI\ArcHydro Tools folder or make changes in both files.
Solution
Open the ArcHydroTools.xml with the XML viewer (XMLViewEdit.exe)
C:\Program Files\ESRI\WaterUtils\ArcHydro9\Bin\ArcHydroTools.xml
Browse to: HydroConfig > ProgParams > CreateGPConfigOnSave
Right-click CreateGPConfigOnSave, and select Edit Text.
Change Value from 1 to 0 and click OK.
How to determine the lowest spill point elevation for each catchment and the corresponding drainage
boundary to create preferential flowpath links.
Solution
Add field (Spill_Elev, double) to DrainConn table
Join DrainConn table to Drainage boundary feature class through FeatureID, HydroID fields
Calc DrainConn.Spill_Elev = DrainageBoundary.MinElev
Remove Join
DrainConn (Table)
FeatureID FeatureID1 FeatureID2 Spill_Elev
21 1 2 86.1
22 1 4 85.7
23 1 3 84.2
24 5 1 85.1
25 -1 1 87.0
Run Summary on Catchment_Spill_Elev table to determine the minimum spill elevation for each
catchment. Write the output to a new table Catchment_Min_Spill
Note: there should be a 1-1 (+1) relationship between the number of records in the
Catchment_Min_Spill table and the number of features in the Catchment feature class. With one extra
record (CatchmentID = -1) due to the external boundary.
Catchment_Spill_Elev (Table)
CatchmentID DrainageBoundaryID1 Spill_Elev
1 21 86.1
1 22 85.7
1 23 84.2
1 24 85.1
1 25 87.0
Catchment_Min_Spill (Table)
CatchmentID MIN_Spill_Elev
1 84.2
Need a way to link the Catchment_Spill_Elev and Catchment_Min_Spill tables to identify which
DrainageBoundary corresponds to the lowest spill elevation for a given catchment. This can be done by
adding a common field to relate the two tables.
Catchment_Min_Spill (Table)
CatchmentID Spill_Elev INT_ELEV APPEND
1 84.2 84200 1_84200
2 91.4 91400 2_91400
3 76.7 76800 3_76800
Catchment_Spill_Elev (Table)
CatchmentID DrainageBoundaryID Spill_Elev MIN INT_ELEV APPEND
1 21 86.1 <null> 86100 1_86100
1 22 85.7 <null> 85800 1_85800
1 23 84.2 1 84200 1_84200
2 36 95.6 <null> 95700 2_95700
2 39 91.4 1 91400 2_91400
Solution
Required input HydroJunctions*
*must include the ones generated by Arc Hydro using the Drainage Connectivity Characterization tool
(where FType = Boundary Node).
Select by Attributes
Extract surface elevation from DEM: 3D Analyst -> Functional Surface -> Surface Spot
Solution
Digitize a line in the desired location of the cross-section (using either temporary shapefile or feature
class). Initially the line will have a minimum of two vertices (at the beginning and end of the line).
Next, use 3D Analyst Tools > Functional Surface > Interpolate Shape tool to convert the line to 3D and
create additional vertices (source of heights is DEM or TIN).
Now the line contains vertices at the various elevation breaks along the line. Import the generated line
into an existing polyline feature class that is MZ enabled (e.g. ICPR_XSECT, IRREGULAR_CROSSSECTION,
etc.) and assign HydroIDs.
Run the Station-Elevation Characterization tool to write the station/elevation information to a table.
ArcToolbox -> Arc Hydro Tools -> Terrain Morphology -> Drainage Boundary Processing -> Station-Elevation Characterization
NAME = FeatureID (or relate back to line feature class if actual names were assigned)
STATION = StationMLen
ELEV = Elevation
Delete fields: FeatureID, Elevation, StationMPct, StationMFra, and StationMLen when finished.
Solution
Use XTools Pro to find duplicates and either remove them or flag them.
Check the Remove Duplicates box to automatically remove them or leave the box unchecked to
populate an index field with a 0 or 1, where a 1 indicates the record is a duplicate.
Solution
1. XToolsPro -> Feature Conversions -> Convert Features to Points
a. Iteration #1
i. Input feature: ICPR_LINK
ii. Output storage: FromNode (temp feature class)
iii. End Points: From
b. Iteration #2
i. Input feature: ICPR_LINK
ii. Output storage: ToNode (temp feature class)
iii. End Points: To
2. Spatial Join
a. Iteration #1
i. Target Features: FromNode
ii. Join Features: ICPR_Node
iii. Output Feature Class: FromNode_SpatialJoin (temp feature class)
iv. Join Operation: JOIN_ONE_TO_ONE
v. Match option: INTERSECTS
b. Iteration #2
i. Target Features: ToNode
ii. Join Features: ICPR_Node
iii. Output Feature Class: ToNode_SpatialJoin (temp feature class)
iv. Join Operation: JOIN_ONE_TO_ONE
v. Match option: INTERSECTS
3. Table Join (join ICPR_LINK to)
a. Iteration #1
i. Join Field: NAME
ii. Join to FromNode_SpatialJoin, through NAME field
iii. Start Editing
iv. Calc From_Node = FromNode_SpatialJoin.NAME1
v. Stop Editing, Save Edits
vi. Remove join
b. Iteration #2
i. Join Field: NAME
ii. Join to ToNode_SpatialJoin, through NAME field
iii. Start Editing
iv. Calc To_Node = ToNode_SpatialJoin.NAME1
v. Remove join
4. Delete temp feature classes: FromNode, ToNode, FromNode_SpatialJoin, ToNode_SpatialJoin
Solution
Use Editing Tools - Snap
Solution
Download the latest version of the Arc Hydro tools (5/8/09 or later)
Solution
Delete ApField FLOW_DIRECTION_DESC from the XML configuration file.
Go to C:\Program Files\ESRI\WaterUtils\ArcHydro9\Bin
Solution
Create a new .mxd, add the feature classes first, then add the DEM and save the .mxd.
XML Issues
Error message occurs when trying to export to xml from ArcMap using toolbar tool:
Solution (1)
Access the old exchange export to xml by adding the dll ArcMapExportXMLGUI9.dll using:
Customize > Add from file and browsing to
C:\Program Files\ESRI\WaterUtils\ApFramework9\bin\ArcMapExportXMLGUI9.dll
Solution (2)
Install the newest Arc Hydro tools from the SWFWMD ftp site1. Use the Export GIS Data to XML tool
under the GIS Data Exchange toolbox along with the latest XML control file2 from the SWFWMD ftp site.
1. http://ftp.swfwmd.state.fl.us/pub/GWIS/
2. http://ftp.swfwmd.state.fl.us/pub/GWIS/GWIS_v1.6/XML_to_ICPR/
1. Remove the ICPR_XSECT feature class and ICPR_XSECT_STATIONS table from the ArcMap
document and retry the XML export process (including transform) for remaining information.
2. Open ArcCatalog
a. Copy ICPR_Xsect_DBF_format.gdb from \\bkvnas02\EngProj\GWIS\GWIS_Geodatabase
b. Use Load Data to import records from original GWIS gdb into the copied gdb from 2a
i. Load ICPR_XSECT into xsec (match fields as shown below)
*Note: if the ICPR_XSECT_STATIONS were thinned use the query builder during the last step of the
import process to load only those stations where ISSTATION = 1.
*Note: the naming convention is critical for the next step when the tables are imported into ICPR.
ICPR_xsec.dbf ICPR_xsec_points.dbf
Filestem Filestem
3. Open ICPR and create a new ICP file (File -> New)
a. Import XML information
i. File -> Import/Export -> XML Import
1. Select XML file from step 1
a. turn on everything except Cross Sections
The process runs without any errors, but afterwards the Junction is still not connected.
Solution
Copy the DrainageBoundary feature class into the HydroNetwork feature dataset and rerun the tool.
The HydroJunction should connect.
Note: make sure INCLUDECONNECT_DESC field is set to 1 and CONNECTDONE is set to <null> or 0.
This error may occur if any of the HydroJunctions you are trying to connect are snapped to the same
boundary location as a Boundary Node placed by Arc Hydro.
Solution
Find any manually placed HydroJunctions that intersect boundary nodes and move them (i.e. snap to
another vertex along the boundary).
In the Table of Contents modify the names to keep the versions straight
Open Layer Properties for HydroJunction (1)
o Click on Definition Query tab and click Query Builder
"JUNCTION_PLACEMENT_DESC" = 'MAN'
o Click OK, OK
Open Layer Properties for HydroJunction (2)
o Click on Definition Query tab and click Query Builder
"JUNCTION_PLACEMENT_DESC" = 'AH'
o Click OK, OK
Select By Location
o Select features from: HydroJunction (1) that intersect features from: HydroJunction (2)
The selected features from HydroJunction (1) need to be moved away from the boundary node. Once
the Junctions have been moved rerun the Connect HydroJunctions tool and those Junctions will now
connect.
1) System.Runtime.InteropServices.COMException (0x80004005) : Error HRESULT E_FAIL has been returned from a call to
a COM component
2) System.Runtime.InteropServices.COMException (0x80004005) : An invalid SQL statement was used.
Error(s) typically occurs if the INCLUDECONNECT_DESC field type is set as text instead of long integer.
Solution
Delete INCLUDECONNECT_DESC (text) and add back as long integer. Make sure to calculate
INCLUDECONNECT_DESC = 1 for all manually placed HYDROJUNCTIONS with HYDARULIC_TYPE_DESC set
to INLET or CS.
Solution
Start Editing and move the end of the HydroEdge (HydroJunction will also move automatically) so the
HydroJunction is no longer in the same DEM cell as the Sink Node. Stop editing, save edits and retry
Connect Control Structure Junctions tool.
3 4
1) Inlet/Outlet HydroJunction located in the same DEM cell as the Sink Node
2) Move HydroJunction to adjacent cell
3) Run Connect Control Structure Junctions tool
4) Move HydroJunction back to original location
Solution
1. Select all the features with a valid length and export to a shapefile.
Solution
Open the registry (Start -> Run -> Regedit)
Open ArcMap and the tools should work again. By opening ArcMap a new ESRI folder is created in the
registry.
Use the object loader to import features from Source into Target. All the imported features default to
PIPE even though the original subtype was either BARREL or WEIR. Notice that the POINT_TYPE_DESC is
correct for the imported features.
Solution
The workaround is to add a temporary field for the subtype before performing the load objects.
2. Name the field subtype_temp and set the type to Long Integer.
3. Start Editing, set HEP as the Target and click on Load Objects tool
4. Browse to the source data, select it and click Open. Click the Add button then click Next.
5. Match subtype_temp [int] (target) with SUBELEMENT_TYPE [int] (source) and click Next.
Click New... under System Variables and add a new TNS_ADMIN variable as shown below
Solution
Open Internet Explorer -> Tools -> Internet Options
Whenever Arc Map cant find an image referenced in the .mxd it displays the pathname instead. A
broken link may occur if the image is stored on someones local drive and another user opens the map
or if the image was moved or deleted and no longer exists in its original location.
Solution
Two ways to fix: 1) delete the image reference and reinsert the image, or 2) repair the pathname under
picture properties (right-click image to open properties window).