<?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 Conditionally Adding a Field, and Running a Tool After in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578300#M4048</link>
    <description>&lt;P&gt;I am trying to append features from an input layer to a target layer. Since Schema must match to append, I want to check if the input layer has the matching Field or not. It if does have the specific Field, I want it to run the append tool. However, if it doesn't, I want to add the specific Field, then then run the append tool. I added a snip of my model below. It contains other steps after the append to calculate fields, which is not relevant at this stage.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CamTurney_0-1737651774859.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123861i3149DC9117374DE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CamTurney_0-1737651774859.png" alt="CamTurney_0-1737651774859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 17:03:08 GMT</pubDate>
    <dc:creator>CamTurney</dc:creator>
    <dc:date>2025-01-23T17:03:08Z</dc:date>
    <item>
      <title>Conditionally Adding a Field, and Running a Tool After</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578300#M4048</link>
      <description>&lt;P&gt;I am trying to append features from an input layer to a target layer. Since Schema must match to append, I want to check if the input layer has the matching Field or not. It if does have the specific Field, I want it to run the append tool. However, if it doesn't, I want to add the specific Field, then then run the append tool. I added a snip of my model below. It contains other steps after the append to calculate fields, which is not relevant at this stage.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CamTurney_0-1737651774859.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123861i3149DC9117374DE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CamTurney_0-1737651774859.png" alt="CamTurney_0-1737651774859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578300#M4048</guid>
      <dc:creator>CamTurney</dc:creator>
      <dc:date>2025-01-23T17:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally Adding a Field, and Running a Tool After</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578307#M4049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/660284"&gt;@CamTurney&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can easily accomplish this by changing the field mapping option to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RPGIS_0-1737652726310.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123862i37088639BC132FA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPGIS_0-1737652726310.png" alt="RPGIS_0-1737652726310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578307#M4049</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-01-23T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally Adding a Field, and Running a Tool After</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578324#M4050</link>
      <description>&lt;P&gt;Add Field should fail to add a field that already exists and exit with a warning, so you can unconditionally add the field you need and then append, no need for a condition in the model&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578324#M4050</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-01-23T18:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally Adding a Field, and Running a Tool After</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578326#M4051</link>
      <description>&lt;P&gt;This is the best method if the schemas are mostly identical and you want Pro to automatically sort the map out. If you want to set a custom map to ignore certain fields, map fields to a target with different names etc. then there might be issues if the input is missing the field.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 18:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578326#M4051</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-01-23T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally Adding a Field, and Running a Tool After</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578354#M4052</link>
      <description>&lt;P&gt;This worked perfectly, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 19:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/conditionally-adding-a-field-and-running-a-tool/m-p/1578354#M4052</guid>
      <dc:creator>CamTurney</dc:creator>
      <dc:date>2025-01-23T19:37:17Z</dc:date>
    </item>
  </channel>
</rss>

