<?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: Model Runs in Edit Mode, Fails on Direct Run: Any tips for Debugging? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592948#M4060</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp;I apricate the tip and will give it a go.&amp;nbsp; While it does sound tedious, it is better than my plan of exporting to python hoping the error continues.&amp;nbsp; And add print prompts to annoyingly track the model.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 19:21:00 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2025-03-06T19:21:00Z</dc:date>
    <item>
      <title>Model Runs in Edit Mode, Fails on Direct Run: Any tips for Debugging?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592924#M4058</link>
      <description>&lt;P&gt;I've inherited a model that &lt;STRONG&gt;runs without errors when opened and executed in edit mode&lt;/STRONG&gt;. However, when I simply &lt;STRONG&gt;open the model and run it directly, it throws an error&lt;/STRONG&gt;. Since it works in edit mode, the usual debugging method of observing what turns &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;red&lt;/STRONG&gt;&lt;/FONT&gt; isn't helpful. I'm struggling to pinpoint the source of the error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_0-1741284237532.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127186i58EFB121D8A25A77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_0-1741284237532.png" alt="RyanBohan_0-1741284237532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to modify the model, to help me debug the model, and track its flow and narrow down the location of the error?&lt;/P&gt;&lt;P&gt;The model itself is huge, and I would rather not have to rebuild it. Based on the limited messages, it appears to be failing in the later third of the model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_1-1741285626137.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127206i0645772364E89DDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_1-1741285626137.png" alt="RyanBohan_1-1741285626137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help on how to debug the model would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 18:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592924#M4058</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2025-03-06T18:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Model Runs in Edit Mode, Fails on Direct Run: Any tips for Debugging?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592937#M4059</link>
      <description>&lt;P&gt;Copy-paste the model to another toolbox, pop it open, delete some tools from the tail, run it, and repeat with greater and greater cuts until the errors vanish. Once it's working you can make another copy, trim one tool less&amp;nbsp;and see if &lt;EM&gt;that&lt;/EM&gt; triggers an error. You can then build a model that runs that tool with more and more preceding tools until the error triggers again. This is exactly as tedious as it sounds but these excisions are the best way to solve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592937#M4059</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-03-06T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model Runs in Edit Mode, Fails on Direct Run: Any tips for Debugging?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592948#M4060</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp;I apricate the tip and will give it a go.&amp;nbsp; While it does sound tedious, it is better than my plan of exporting to python hoping the error continues.&amp;nbsp; And add print prompts to annoyingly track the model.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1592948#M4060</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2025-03-06T19:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Model Runs in Edit Mode, Fails on Direct Run: Any tips for Debugging?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1593056#M4061</link>
      <description>&lt;P&gt;I'd say it's worth exporting the model to Python just to see how Pro translates it. If you're on 3.4 you might get lucky if you throw that script into a modern editor and go red squiggly hunting.&lt;/P&gt;&lt;P&gt;If I was in your shoes my long term plan would be to port the model by hand and apply as many Python-only optimizations as I could (e.g. looping over feature class names for export, using cursors and lookup tables where possible etc. etc.) but that's a daunting task for a model that size so beating it into a working state would be my #1 priority.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-runs-in-edit-mode-fails-on-direct-run-any/m-p/1593056#M4061</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-03-06T19:38:39Z</dc:date>
    </item>
  </channel>
</rss>

