<?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 builder - model iterator and list of values in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782302#M2552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;My model iterate through many shapefiles:&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;First it Checks if, the field i want to add (model parameter), already exists in the table (check if the field name is the same)&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;If dont exist: great! Just add the field i want.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;If exists:&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;creates a temp field Store the the value from the existing field in the temp field Drop the existing field Create the field i want, the way i want (string, with exactly 137 length) Copy the values from the temp field to the new field Drop the temp field&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;It works perfectly, always. As many shapefiles i want.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;The problem is i want to run it several times, checking for a lot of fields, in a single run in the tool. If i try to bath it, doesnt work. And if i try to put 'List of Values' in the first parameter 'Multiple Value' it gets error, because model builder doesnt allow both 'model iterator' and 'list of values' working together.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Can you guys help me?&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/347080_model.JPG" style="width: 620px; height: 267px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 16:42:53 GMT</pubDate>
    <dc:creator>Raphael_Augusto_FoscariniFerre</dc:creator>
    <dc:date>2017-04-19T16:42:53Z</dc:date>
    <item>
      <title>model builder - model iterator and list of values</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782302#M2552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;My model iterate through many shapefiles:&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;First it Checks if, the field i want to add (model parameter), already exists in the table (check if the field name is the same)&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;If dont exist: great! Just add the field i want.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;If exists:&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;creates a temp field Store the the value from the existing field in the temp field Drop the existing field Create the field i want, the way i want (string, with exactly 137 length) Copy the values from the temp field to the new field Drop the temp field&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;It works perfectly, always. As many shapefiles i want.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;The problem is i want to run it several times, checking for a lot of fields, in a single run in the tool. If i try to bath it, doesnt work. And if i try to put 'List of Values' in the first parameter 'Multiple Value' it gets error, because model builder doesnt allow both 'model iterator' and 'list of values' working together.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Can you guys help me?&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/347080_model.JPG" style="width: 620px; height: 267px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782302#M2552</guid>
      <dc:creator>Raphael_Augusto_FoscariniFerre</dc:creator>
      <dc:date>2017-04-19T16:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: model builder - model iterator and list of values</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782303#M2553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Batch does not work with ModelBuilder tools. This is a long-time, known, limitation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/676425"&gt;Batch a Model (Model Builder)&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;The way to do this is to set up input and output parameters for this model and add it to another model that includes an iterator. The 'outside model' iterator will pass the inputs to your 'inside' model, one by one.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/integrating-model-within-a-model.htm#ESRI_SECTION1_FC4FA1B8DC0D418098AD21B774804821" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/integrating-model-within-a-model.htm#ESRI_SECTION1_FC4FA1B8DC0D418098AD21B774804821"&gt;Integrating a model within a model—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 04:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782303#M2553</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-04-20T04:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: model builder - model iterator and list of values</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782304#M2554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple time put some condition, multiple values but its not work then start with single and convert or export the model in python.&lt;/P&gt;&lt;P&gt;After python set some parameter and it will work with batch processing and multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the shared link by @&lt;A _jive_internal="true" class="" data-reactid=".1y4urfssxds.1.0.0" href="https://community.esri.com/people/curtvprice" style="border: 0px; font-weight: inherit; text-decoration: underline; font-size: 20px;"&gt;Curtis Price&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 05:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-model-iterator-and-list-of-values/m-p/782304#M2554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-04-20T05:17:07Z</dc:date>
    </item>
  </channel>
</rss>

