HI Valerie,
I keep getting the same error but with the Flow network definition - peuker douglas tool. Did you solve yours?
Traceback (most recent call last):
File "C:\ACPF_V5_Pro_04042023\ACPF_V5_Pro_04042023\Scripts\PeukerDouglasFlowNetworkP5.py", line 296, in <module>
PeukerDouglasFlowNetwork(TDProcDir, D8FlowDir)
File "C:\ACPF_V5_Pro_04042023\ACPF_V5_Pro_04042023\Scripts\PeukerDouglasFlowNetworkP5.py", line 150, in PeukerDouglasFlowNetwork
AccumulatedStreamSourceGrid = arcpy.CalculateStatistics_management(TDProcDir + "\\AccumulatedStreamSourceGrid.tif")
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 19631, in CalculateStatistics
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 19628, 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\_base.py", line 520, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Raster Dataset: Dataset C:\ACPF_V5_Pro_04042023\ACPF_V5_Pro_04042023\Scripts\TDProcDir\AccumulatedStreamSourceGrid.tif does not exist or is not supported
Failed to execute (CalculateStatistics).
Thank you!