<?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 Model runs fine in ModelBuilder but hangs in tool mode in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152266#M5147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a model with iteration that runs fine from within ModelBuilder.&amp;nbsp; In fact, I'd say that it is downright zippy taking about a minute for every 5 rows in a raster attribute table.&amp;nbsp; When I run that same model as a tool using the same datasets it grinds to a halt getting hung up on iteration 3 or 4.&amp;nbsp; Specifically it is the Cell Statistics tool and I'm using feedback to save the results&amp;nbsp;from one iteration and then add the results from the next iteration and so on.&amp;nbsp; &amp;nbsp;I'm wondering if anyone has any idea what would be different enough between ModelBuilder and "tool mode" to account for such a large difference in performance.&amp;nbsp; I'd hate to have to share a tool with others with the caveat that it can only be run from ModelBuilder especially when it is working so well otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tom Dilts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2018 21:24:33 GMT</pubDate>
    <dc:creator>ThomasDilts</dc:creator>
    <dc:date>2018-11-13T21:24:33Z</dc:date>
    <item>
      <title>Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152266#M5147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a model with iteration that runs fine from within ModelBuilder.&amp;nbsp; In fact, I'd say that it is downright zippy taking about a minute for every 5 rows in a raster attribute table.&amp;nbsp; When I run that same model as a tool using the same datasets it grinds to a halt getting hung up on iteration 3 or 4.&amp;nbsp; Specifically it is the Cell Statistics tool and I'm using feedback to save the results&amp;nbsp;from one iteration and then add the results from the next iteration and so on.&amp;nbsp; &amp;nbsp;I'm wondering if anyone has any idea what would be different enough between ModelBuilder and "tool mode" to account for such a large difference in performance.&amp;nbsp; I'd hate to have to share a tool with others with the caveat that it can only be run from ModelBuilder especially when it is working so well otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tom Dilts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 21:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152266#M5147</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-13T21:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152267#M5148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a wild guess, does your model have an output parameter that gets written on every iteration? This can really take a lot of time as the&amp;nbsp;output layers&amp;nbsp;are updated in the map on every iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you turn off adding outputs to display in Geoprocessing &amp;gt; Options&amp;nbsp;that may help with your performance issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 06:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152267#M5148</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-11-15T06:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152268#M5149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis. Let me try that when I get to the office. That is a great suggestion. I've got a couple of ideas on how that problem might be remedied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152268#M5149</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-15T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152269#M5150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis.&amp;nbsp; I tried your suggestion.&amp;nbsp; It was a really good suggestion, but it still didn't work.&amp;nbsp; What I did was change the model parameters to string variables and then use those to name the output file with the feedback.&amp;nbsp; Then I just removed that variable from "add to display" in ModelBuilder.&amp;nbsp; At the same time I also made a few other changes.&amp;nbsp; I changed the Cell Statistics tool to the Plus tool and set pyramids and raster statistics to not run by default.&amp;nbsp; I suspect that the problem has to do with the iteration itself, but I still don't understand why it doesn't run in "tool mode" but does fine in "edit mode".&amp;nbsp; One thing that I will try next is try to run it in ArcCatalog since there is no map display there.&amp;nbsp; Another thought is that I should just convert the entire thing to a python script.&amp;nbsp; I'd appreciate any more thoughts, comments, ideas, or feedback that folks might have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 22:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152269#M5150</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-15T22:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152270#M5151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcCatalog didn't work any better.&amp;nbsp; It just crashed instead of getting hung up.&amp;nbsp; The freeze/crash always happens on the first time the feedback variable is used in the second iteration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 23:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152270#M5151</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-15T23:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152271#M5152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is your issue but I will share my experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few years ago I worked on a project that made extensive use of the cell statistics tool aggregating thousands of rasters. Whilst cell statistic tool would "accept" for example 3000 rasters as input (can't quite remember the actual number but in that ball park) it would grind to a halt. I over came the problem by simply doing in blocks of say 100 rasters, so for my 3000 example I ended up with 30 rasters which I then fed back into the Cell statistics tool for one final summary. This significantly reduced process time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 11:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152271#M5152</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-11-16T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152272#M5153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan.&amp;nbsp; Thanks for the heads up.&amp;nbsp; I ended up dropping the Cell Statistics altogether replacing it with the Plus tool, but to no avail.&amp;nbsp; I'm thinking that the next step might be to try exporting the model out to python, re-do the coding for the looping, and then see where that takes me.&amp;nbsp; The good news is that it works in edit mode for what I want it to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152272#M5153</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-16T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152273#M5154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So just to be clear you did turn off &lt;EM&gt;add geoprocessing results to display&amp;nbsp;&lt;/EM&gt;in Geoprocessing / Options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152273#M5154</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-11-19T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152274#M5155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis.&amp;nbsp; Thanks for making that distinction.&amp;nbsp; Originally I had not turned off&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;turn off&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;add geoprocessing results to display&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt;in Geoprocessing / Options but just had removed the layer as a parameter in the model.&amp;nbsp; I've since tried running it with your suggestion of turning it off in the geoprocessing options from the geoporcessing menu in ArcMap as well, but to no avail.&amp;nbsp; My next thought is to try exporting to python and re-doing the coding for the looping (does looping ever just work straight from ModelBuilder export?).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152274#M5155</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-19T19:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152275#M5156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, just wanted to make sure we're there for the good of the thread. I think Python is totally the way you want to go here because of the inherent issues of all these map or feature layers in memory.&amp;nbsp;&amp;nbsp;I think&amp;nbsp; perhaps part of your issue is that you are modifying the dataset you are looping on with every iteration (the ArcCatalog crash leads me there).&amp;nbsp;If you are doing this, you are likely to run into issues in Python too. In Python though it's easier to create temp datasets (or even lists or dictionaries) to store results as you go, and then have a final step to populate results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope these thoughts help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152275#M5156</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-11-19T19:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152276#M5157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tips.&amp;nbsp; It might take me a day or two because I've got to finalize the last step of the process.&amp;nbsp; I tend to start out in ModelBuilder to figure out the steps that I need to take before jumping to python (unless I know that it is going to involve a double loop).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152276#M5157</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2018-11-19T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Model runs fine in ModelBuilder but hangs in tool mode</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152277#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about the long delay.&amp;nbsp; Converting the model to a python script did the trick.&amp;nbsp; Now the tool iterates fine and works like a charm.&amp;nbsp; Strangely, I still have no clue why the tool performs poorly as a model, but thank you everyone who contributed ideas.&amp;nbsp; They were all helpful steps along the way.&amp;nbsp; I'm expecting to a release a new geoprocessing toolbox sometime soon (Q1 of 2019) - the Lattice Connectivity Toolbox.&amp;nbsp; The toolbox assesses&amp;nbsp;habitat connectivity using a lattice or tessellation and a resistance kernel approach and is designed to serve as inputs into graph theoretic models.&amp;nbsp; The toolbox is a refinement of the approach that I outline in a 2016 paper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 13px;"&gt;Dilts, T. E., Weisberg, P. J., Leitner, P., Matocq, M. D., Inman, R. D., Nussear, K. E., &amp;amp; Esque, T. C. (2016). Multiscale connectivity and graph theory highlight critical areas for conservation under climate change.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 13px;"&gt;Ecological Applications&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 13px;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 13px;"&gt;26&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 13px;"&gt;(4), 1223-1237.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-fine-in-modelbuilder-but-hangs-in-tool/m-p/152277#M5158</guid>
      <dc:creator>ThomasDilts</dc:creator>
      <dc:date>2019-01-17T17:53:23Z</dc:date>
    </item>
  </channel>
</rss>

