<?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 in ModelBuilder but returns with error when run as Geoprocessing tool in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-in-modelbuilder-but-returns-with-error/m-p/1369411#M27121</link>
    <description>&lt;P&gt;My model has an input parameter of 'Study Area' connected to a "If field exists" where it checks whether the field 'Area_HA' exists. If not, then add the field before proceeding with an intersect tool.&lt;/P&gt;&lt;P&gt;The input Study Area (which has the field) and the output of the add field (which should not proceed since the check is false) are then fed into a "merge branch" so I have a single output variable that I can name and connect to the other processes, whether the Area field already exists or needed to be added.&lt;/P&gt;&lt;P&gt;In this case, my test shape does indeed have an "Area_HA" field, so 'if field exists" would be set to true and it would continue on with everything else down the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tool runs perfectly in the ModelBuilder tab, and exports all the necessary output to the places I want them to be.&lt;/P&gt;&lt;P&gt;However, when I open it in the Geoprocessing pane, the model fails to run, returning the error that "Area_HA" field exists. Which to me indicates that the "if field exists" check does not do anything, or is not working as I intended it to. Alternatively, my understanding of a merge branch is not correct.&lt;/P&gt;&lt;P&gt;I tried exporting the model to ArcPy to have a better look at the script and it does not tell me much either.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've also tried closing the project I am working on and opening the model again, running it on the geoprocessing pane immediately (a fix that worked for someone with a similar issue elsewhere). That did not work either.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 06:17:04 GMT</pubDate>
    <dc:creator>DiDi_ESRI</dc:creator>
    <dc:date>2024-01-12T06:17:04Z</dc:date>
    <item>
      <title>Model runs in ModelBuilder but returns with error when run as Geoprocessing tool</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-runs-in-modelbuilder-but-returns-with-error/m-p/1369411#M27121</link>
      <description>&lt;P&gt;My model has an input parameter of 'Study Area' connected to a "If field exists" where it checks whether the field 'Area_HA' exists. If not, then add the field before proceeding with an intersect tool.&lt;/P&gt;&lt;P&gt;The input Study Area (which has the field) and the output of the add field (which should not proceed since the check is false) are then fed into a "merge branch" so I have a single output variable that I can name and connect to the other processes, whether the Area field already exists or needed to be added.&lt;/P&gt;&lt;P&gt;In this case, my test shape does indeed have an "Area_HA" field, so 'if field exists" would be set to true and it would continue on with everything else down the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tool runs perfectly in the ModelBuilder tab, and exports all the necessary output to the places I want them to be.&lt;/P&gt;&lt;P&gt;However, when I open it in the Geoprocessing pane, the model fails to run, returning the error that "Area_HA" field exists. Which to me indicates that the "if field exists" check does not do anything, or is not working as I intended it to. Alternatively, my understanding of a merge branch is not correct.&lt;/P&gt;&lt;P&gt;I tried exporting the model to ArcPy to have a better look at the script and it does not tell me much either.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've also tried closing the project I am working on and opening the model again, running it on the geoprocessing pane immediately (a fix that worked for someone with a similar issue elsewhere). That did not work either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 06:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-runs-in-modelbuilder-but-returns-with-error/m-p/1369411#M27121</guid>
      <dc:creator>DiDi_ESRI</dc:creator>
      <dc:date>2024-01-12T06:17:04Z</dc:date>
    </item>
  </channel>
</rss>

