<?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 Ability to Apply a Field Mapping Depending on a Value Selected in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/ability-to-apply-a-field-mapping-depending-on-a/m-p/805187#M828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question. Do any of you know if it is possible to apply a certain field mapping depending on the result of if then logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is our use case. What we are attempting to accomplish is to build a Modelbuilder tool which appends street centerlines from neighboring jurisdictions to feature classes that already exist in our enterprise geodatabase. Each new centerline feature class that we receive from a neighboring jurisdiction has different fields while the neighboring jurisdictions in our enterprise geodatabase all have the same fields. I am not sure if this is possible, however, what we are attempting to do is to have a certain field mapping be applied during the append depending on which municipality's feature class is the input layer in the append tool. Is this possible to accomplish?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and please let me know if I can provide any information that might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 16:55:53 GMT</pubDate>
    <dc:creator>NicoKroes2</dc:creator>
    <dc:date>2020-05-14T16:55:53Z</dc:date>
    <item>
      <title>Ability to Apply a Field Mapping Depending on a Value Selected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/ability-to-apply-a-field-mapping-depending-on-a/m-p/805187#M828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question. Do any of you know if it is possible to apply a certain field mapping depending on the result of if then logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is our use case. What we are attempting to accomplish is to build a Modelbuilder tool which appends street centerlines from neighboring jurisdictions to feature classes that already exist in our enterprise geodatabase. Each new centerline feature class that we receive from a neighboring jurisdiction has different fields while the neighboring jurisdictions in our enterprise geodatabase all have the same fields. I am not sure if this is possible, however, what we are attempting to do is to have a certain field mapping be applied during the append depending on which municipality's feature class is the input layer in the append tool. Is this possible to accomplish?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and please let me know if I can provide any information that might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 16:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/ability-to-apply-a-field-mapping-depending-on-a/m-p/805187#M828</guid>
      <dc:creator>NicoKroes2</dc:creator>
      <dc:date>2020-05-14T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Apply a Field Mapping Depending on a Value Selected</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/ability-to-apply-a-field-mapping-depending-on-a/m-p/805188#M829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have always found field mapping a very powerful component of geoprocessing tools but a real nightmare to implement. Also I find when in model builder tools do their validations and unhinge any field mapping/ joins that you have loving crafted. I feel you end up with a chicken and egg situation sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the answer is simple, move your logic out of modelbuilder and into a python script. You will have considerably more control over your if/then logic and construction of field maps and when to apply them. If written as a script you could wire it up to a tool interface and then drop that into a model if you so desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what I would do...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 10:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/ability-to-apply-a-field-mapping-depending-on-a/m-p/805188#M829</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2020-06-01T10:48:00Z</dc:date>
    </item>
  </channel>
</rss>

