<?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: ModelBuilder Iteration in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360344#M76320</link>
    <description>&lt;P&gt;So I built an ArcGIS Pro 3.2 model in modelbuilder that I use in Instructor Led classes to copy all the data from a folder of shapefiles to an Enterprise Geodatabase (as referenced below) and each feature class in the eGDB has their own unique attribute values vs. the first one being used as the template.&amp;nbsp; I do not do any field mapping in the Fields parameter of the FC to FC GP tool in the model.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ModelBuilder.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88895i436B4B198A84BFB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ModelBuilder.JPG" alt="ModelBuilder.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 16:19:11 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2023-12-13T16:19:11Z</dc:date>
    <item>
      <title>ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360224#M76296</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a simple model which iterating the feature classes within a geodatabase and copying them into another geodatabase.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model_sim.png" style="width: 691px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88882i65F701E1C7868BB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Model_sim.png" alt="Model_sim.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The model run and copied the feature classes into the target geodatabase. But the issue is the fields of the output feature classes does not match the fields in the input geodatabase (Somehow it take the fields of the first feature class as a template and copy it to the other feature classes in the output). I found that in Esri document:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;When this tool is used in a model, the first feature class is used as a template for the output. This allows for selection of fields in subsequent tools.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that I can preserve the fields of output feature classes?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 12:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360224#M76296</guid>
      <dc:creator>AJ24</dc:creator>
      <dc:date>2023-12-13T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360344#M76320</link>
      <description>&lt;P&gt;So I built an ArcGIS Pro 3.2 model in modelbuilder that I use in Instructor Led classes to copy all the data from a folder of shapefiles to an Enterprise Geodatabase (as referenced below) and each feature class in the eGDB has their own unique attribute values vs. the first one being used as the template.&amp;nbsp; I do not do any field mapping in the Fields parameter of the FC to FC GP tool in the model.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ModelBuilder.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88895i436B4B198A84BFB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ModelBuilder.JPG" alt="ModelBuilder.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 16:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360344#M76320</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-12-13T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360445#M76335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2538"&gt;@Robert_LeClair&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried to mimic your ModelBuilder and converted the data to a shapefile but I am getting the same result again. Here is&amp;nbsp; what I get when running the tool:&lt;/P&gt;&lt;P&gt;Input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="po1in.png" style="width: 732px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88902iB94E90D10210DF49/image-size/large?v=v2&amp;amp;px=999" role="button" title="po1in.png" alt="po1in.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output: (this one copied without any issue since this the first feature class in iteration)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="po1out.png" style="width: 745px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88903i3212BF2198CA0F0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="po1out.png" alt="po1out.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="po2in.png" style="width: 447px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88907i2CFEA5F2090B2A0C/image-dimensions/447x164?v=v2" width="447" height="164" role="button" title="po2in.png" alt="po2in.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output: (The schema of the feature class changed after copying it to match the first feature class)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="po2out.png" style="width: 478px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88908iC7204D553702C53B/image-dimensions/478x196?v=v2" width="478" height="196" role="button" title="po2out.png" alt="po2out.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The same happen to all feature classes/ Shapefiles.( It took the schema of the first feature class in the iteration)&lt;/P&gt;&lt;P&gt;The only difference between my test and yours is that I am using ArcGIS Pro 3.0&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360445#M76335</guid>
      <dc:creator>AJ24</dc:creator>
      <dc:date>2023-12-13T17:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360459#M76336</link>
      <description>&lt;P&gt;Another update, I tested it by using Pro3.2 and got the same result&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360459#M76336</guid>
      <dc:creator>AJ24</dc:creator>
      <dc:date>2023-12-13T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360473#M76339</link>
      <description>&lt;P&gt;Interesting!&amp;nbsp; I guess I never noticed this before but YES my model is doing the same thing.&amp;nbsp; The first feature class is fine but all subsequent feature classes inherit the schema of the first.&amp;nbsp; That's got to be a bug.&amp;nbsp; So I started digging deeper and learned the Feature Class to Feature Class GP tool is deprecated (or soon will be) and that the Export Features GP tool is recommended.&amp;nbsp; So I created a new model as seen below with the following settings.&amp;nbsp; It worked!&amp;nbsp; Each feature class has it's "own" schema as it were.&lt;BR /&gt;&lt;BR /&gt;Also, no need to convert to a shapefile as the input workspace can be a folder of shapefiles, a file geodatabase or an enterprise geodatabase.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ModelBuilder2.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88919iC4D4C91B73CC0179/image-size/large?v=v2&amp;amp;px=999" role="button" title="ModelBuilder2.JPG" alt="ModelBuilder2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360473#M76339</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-12-13T18:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360489#M76342</link>
      <description>&lt;P&gt;My model will also have the spatial join tool and it gives the same result (Copying the schema of the first feature class) the issue is reproducible with any tool that has the field map option&lt;/P&gt;&lt;P&gt;I belive it might be a bug specialy with the spatial join tool and FC2FC, but I would appricte your feedback if you can confirm that so I can look for any workaround&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360489#M76342</guid>
      <dc:creator>AJ24</dc:creator>
      <dc:date>2023-12-13T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iteration</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360490#M76343</link>
      <description>&lt;P&gt;Thank you for the additional information as I found a BUG that likely explains this behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUG-000161459 -&amp;nbsp;&lt;SPAN&gt;A model created in ArcGIS Pro 3.1.3, including an iterator and the Spatial Join tool with the merge rule set to 'Sum' for one of the attributes, executes unexpectedly. The output from the first iteration is correct, but for the following target feature classes, the tool reverts to the 'First' merge rule (the default rule option).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The BUG is currently under review and is not reproducible in ArcGIS Pro 2.9.x&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-iteration/m-p/1360490#M76343</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-12-13T18:30:44Z</dc:date>
    </item>
  </channel>
</rss>

