Select to view content in your preferred language

Arc Hydro error-Adjust Flow Direction in Lakes

605
1
02-25-2019 11:03 AM
by Anonymous User
Not applicable

Hi,  I'm running ArcHydro 2.0.15 on ArcGIS Pro 2.3 and I get the following error  when I try the Adjust Flow Direction In Lakes tool.  

 ('line 258', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\ArcHydro\\adjustflowdirectioninlakes.py', "UnboundLocalError: local variable 'listtodel' referenced before assignment")

What correction should I make to the code?

Thanks

Brian

Tags (2)
0 Kudos
1 Reply
ChristineDartiguenave
Esri Contributor

You probably do not have any lake and the listtodel variable was not initialized early enough in the code.

I will fix it but you can add the line

listtodel=[]

in the execute function just after:

sOK = apwrutils.C_OK

Christine

0 Kudos