<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Arc Hydro error-Adjust Flow Direction in Lakes in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/arc-hydro-error-adjust-flow-direction-in-lakes/m-p/441207#M2173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I'm running ArcHydro 2.0.15 on ArcGIS Pro 2.3 and I get the following error&amp;nbsp; when I try the Adjust Flow Direction In Lakes tool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;('line 258', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\ArcHydro\\adjustflowdirectioninlakes.py', "UnboundLocalError: local variable 'listtodel' referenced before assignment")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What correction should I make to the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 19:03:59 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-02-25T19:03:59Z</dc:date>
    <item>
      <title>Arc Hydro error-Adjust Flow Direction in Lakes</title>
      <link>https://community.esri.com/t5/water-resources-questions/arc-hydro-error-adjust-flow-direction-in-lakes/m-p/441207#M2173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I'm running ArcHydro 2.0.15 on ArcGIS Pro 2.3 and I get the following error&amp;nbsp; when I try the Adjust Flow Direction In Lakes tool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;('line 258', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\ArcHydro\\adjustflowdirectioninlakes.py', "UnboundLocalError: local variable 'listtodel' referenced before assignment")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What correction should I make to the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 19:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/arc-hydro-error-adjust-flow-direction-in-lakes/m-p/441207#M2173</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-25T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Hydro error-Adjust Flow Direction in Lakes</title>
      <link>https://community.esri.com/t5/water-resources-questions/arc-hydro-error-adjust-flow-direction-in-lakes/m-p/441208#M2174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably do not have any lake and the listtodel variable was not initialized early enough in the code.&lt;/P&gt;&lt;P&gt;I will fix it but you can add the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;listtodel=[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the execute function just after:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sOK = apwrutils.C_OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 00:04:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/arc-hydro-error-adjust-flow-direction-in-lakes/m-p/441208#M2174</guid>
      <dc:creator>ChristineDartiguenave</dc:creator>
      <dc:date>2019-03-05T00:04:53Z</dc:date>
    </item>
  </channel>
</rss>

