<?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 Re: Iterator not working in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/1340555#M12011</link>
    <description>&lt;P&gt;I realize this is an old issue. I encountered the same problem.&lt;/P&gt;&lt;P&gt;Windows 11, ArcGIS Pro 3.1.2, Model Builder&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;I would run a model in ModelBuilder using an Iterator that processed 5 times. Sometimes it would iterate 3 times and others it would stop part way through the 5th and final iteration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Findings:&lt;/P&gt;&lt;P&gt;I noticed that my system temp files volume was massive. I also saw that my .gdb size was huge. The volumes seem to grow a lot as I worked with, adjusted, and re-ran the model.&lt;/P&gt;&lt;P&gt;My Solution:&lt;/P&gt;&lt;P&gt;-Clear the system temp files&lt;/P&gt;&lt;P&gt;-Compact my project .gdb&lt;/P&gt;&lt;P&gt;-Set the project layer cache to be deleted at the end of the session&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Worked without issue afterwards.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 16:29:53 GMT</pubDate>
    <dc:creator>JacobCurrie</dc:creator>
    <dc:date>2023-10-23T16:29:53Z</dc:date>
    <item>
      <title>Iterator not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/547329#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting a Least Cost Path analysis, specifically, a "From everywhere to everywhere model".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cost raster = Slope_Raster&lt;/P&gt;&lt;P&gt;Surface raster = 0 value extracted_DEM&lt;/P&gt;&lt;P&gt;Vertical Factor: Tobler Away&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve thus multi-path approach, I&amp;nbsp;made my destination (which, according to this model, will also become origins) points through the Fishnet tool, settling for a 25kmx25km grid. I then put this fishnet through "Split by attributes" to acquire individual points that I could run separately through the Path distance tool. I then merged these points so that I could run them collectively through "Iterate Feature Selection" in Model Builder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is at this stage that I encounter a problem. When the Model runs, it only iterates through the first three points of the merged points. I have tried selecting different fields, and I have even tried to achieve an iteration through a separate tool ("Iterate feature class"). No matter what variation I try, the same issues arises; the model only create paths for the first three points out of the entire 83 point feature.&lt;BR /&gt;&lt;BR /&gt;I am at a loss as to what to do, and cannot seem to find what is causing this error.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;P.S. I know this method of achieving multiple pathways is possible as I used the same model building technique in ArcMap 10.7.1 and it worked (However the processing was incredibly slow).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 15:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/547329#M7895</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-05-20T15:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/547330#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unclear to me why it would stop after three iterations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I noticed though, I suggest you put the iterator inside a submodel so you don't run the path distance over and over again on every iteration. Iterators re-run&amp;nbsp;all tools in the model&amp;nbsp; (unless you somehow prevent this with a precondition logic - a sub model is an easier way to control that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you must run it every iteration (unclear), you may want to set a precondition from the output to the iterator to the path distance tool,&amp;nbsp;to make sure the path distance runs after the selection is made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 14:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/547330#M7896</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-05-31T14:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/1340555#M12011</link>
      <description>&lt;P&gt;I realize this is an old issue. I encountered the same problem.&lt;/P&gt;&lt;P&gt;Windows 11, ArcGIS Pro 3.1.2, Model Builder&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;I would run a model in ModelBuilder using an Iterator that processed 5 times. Sometimes it would iterate 3 times and others it would stop part way through the 5th and final iteration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Findings:&lt;/P&gt;&lt;P&gt;I noticed that my system temp files volume was massive. I also saw that my .gdb size was huge. The volumes seem to grow a lot as I worked with, adjusted, and re-ran the model.&lt;/P&gt;&lt;P&gt;My Solution:&lt;/P&gt;&lt;P&gt;-Clear the system temp files&lt;/P&gt;&lt;P&gt;-Compact my project .gdb&lt;/P&gt;&lt;P&gt;-Set the project layer cache to be deleted at the end of the session&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Worked without issue afterwards.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 16:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/iterator-not-working/m-p/1340555#M12011</guid>
      <dc:creator>JacobCurrie</dc:creator>
      <dc:date>2023-10-23T16:29:53Z</dc:date>
    </item>
  </channel>
</rss>

