Stream Reach and Catchment Error

Skip to first unread message

matthew romanko

Jun 23, 2020, 11:14:44 AM6/23/20
to ACPF Forum

I am using arcgis pro 2.5.1 to run an acpf assessment for a HUC12 watershed (Kyle Prairie Creek 041000070602) in North-west Ohio. I am getting an error when running the Stream Reach and Catchment tool. I have recently updated the acpf toolbox as of 6-16-2020. I used the tool before with no problem, but I am not sure what the problem is this time around. Failed to execute (CalculateStatistics). I reclassified the perennial streams to 1, saved the edits, and made sure there were no features selected before running the tool.

Traceback (most recent call last):
  File "C:\Data\ACPF\DL_6-16-2020\ACPF_V3_Pro_distribution_06092020\Scripts\", line 249, in <module>
    StreamNetworkAndCatchments(reach, D8FlowDir, DEMFill)
  File "C:\Data\ACPF\DL_6-16-2020\ACPF_V3_Pro_distribution_06092020\Scripts\", line 153, in StreamNetworkAndCatchments
    TDStreamReach = arcpy.CalculateStatistics_management(TDProcDir + "\\TDStreamReach.shp")
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\", line 18601, in CalculateStatistics
    raise e
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\", line 18598, in CalculateStatistics
    retval = convertArcObjectToPythonObject(gp.CalculateStatistics_management(*gp_fixargs((in_raster_dataset, x_skip_factor, y_skip_factor, ignore_values, skip_existing, area_of_interest), True)))
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\", line 511, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError:  ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support ( to Report a Bug, and refer to the error help for potential solutions or workarounds.
Failed to execute (CalculateStatistics).
 Failed to execute (StreamReachAndCatchments).

Input Flow Network (polyline) AreaFlowNet041000070602
Input D8 Flow Direction raster C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\D8FlowDir041000070602
Input Filled DEM C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\DEMFill041000070602
Create stream reach and catchments from a subset of flow segments? (field name) StreamType
Classification value 1
Input Pour Point(s) pp04100007060
Output Stream Reach (polyline) C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\StreamReach041000070602
Output Catchments C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\Catchments041000070602

I get the same error when running the PDFlowNet output as well.
Any ideas what I am missing here?


James, David

Jun 23, 2020, 11:55:25 AM6/23/20
to matthew romanko, ACPF Forum
Hi Matthew
A failure on the calculate statistics following a TauDEM command suggests that the output does not exist. Please the the TDProcDir that is in the scripts folder under the ACPF toolbox location. You may benefit from a new ArcGIS Pro project being used and/or a reboot.


David James

USDA/ARS National Laboratory for Agriculture

   and the Environment

1015 N. University Blvd., Ames, Iowa 50011

Work: (515) 294-6858 Cell: (515) 451-5304



From: <> on behalf of matthew romanko <>
Sent: Tuesday, June 23, 2020 10:14 AM
To: ACPF Forum <>
Subject: [ACPF Forum] Stream Reach and Catchment Error
The ACPF Forum is an online group for discussing technical issues related to using the ACPF tools. Anyone can view the discussions at Only members can participate in discussions. Join the group by sending an email to
You received this message because you are subscribed to the Google Groups "ACPF Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

matthew romanko

Jul 1, 2020, 1:11:41 PM7/1/20
to ACPF Forum
replacing the part of the script that was trying to calculate statistics on the shapefile worked.

#TDStreamReach = arcpy.CalculateStatistics_management(TDProcDir + "\\TDStreamReach.shp")
TDStreamReach = TDProcDir + "\\TDStreamReach.shp"


Reply all
Reply to author
0 new messages