<?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 Sub-model cannot iterate features with same name ? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770338#M811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have setup a nested model to run through folders of shapefiles for different feature classes.&lt;/P&gt;&lt;P&gt;There are over a hundred of these folders one for each department of France. Each of these folders has sub-folders and each sub folder contains multiple shapefiles for different types of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to iterate through these numerous folders and only select those shapefiles that I want to merge together into the national dataset&amp;nbsp; - e.g I want to grab all the shapefiles describing vegetation and merge them into a single vegetation shapefile with national coverage.&lt;/P&gt;&lt;P&gt;To do this I built the attached sub-model and main model to process all the files called ZONE_VEGETATION.SHP.&lt;/P&gt;&lt;P&gt;The data for each department has the same name so all the files I want are called &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ZONE_VEGETATION.SHP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model runs but only gives me a single department (i.e. one&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ZONE_VEGETATION.SHP&lt;/SPAN&gt;) as the output of Merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I am missing something obvious but it escapes me for now....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;This is the beginning of a larger model I will need to run repeatedly as we plug in different test datasets and adjust certain weightings etc as part of a research project, so I need to automate as many steps as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model structure (Export of the python attached).&lt;/P&gt;&lt;P&gt;I am running ArcGIS Pro 2.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2020 10:17:50 GMT</pubDate>
    <dc:creator>JonathanCarruthers-Jones</dc:creator>
    <dc:date>2020-04-29T10:17:50Z</dc:date>
    <item>
      <title>Sub-model cannot iterate features with same name ?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770338#M811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have setup a nested model to run through folders of shapefiles for different feature classes.&lt;/P&gt;&lt;P&gt;There are over a hundred of these folders one for each department of France. Each of these folders has sub-folders and each sub folder contains multiple shapefiles for different types of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to iterate through these numerous folders and only select those shapefiles that I want to merge together into the national dataset&amp;nbsp; - e.g I want to grab all the shapefiles describing vegetation and merge them into a single vegetation shapefile with national coverage.&lt;/P&gt;&lt;P&gt;To do this I built the attached sub-model and main model to process all the files called ZONE_VEGETATION.SHP.&lt;/P&gt;&lt;P&gt;The data for each department has the same name so all the files I want are called &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ZONE_VEGETATION.SHP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model runs but only gives me a single department (i.e. one&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ZONE_VEGETATION.SHP&lt;/SPAN&gt;) as the output of Merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I am missing something obvious but it escapes me for now....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;This is the beginning of a larger model I will need to run repeatedly as we plug in different test datasets and adjust certain weightings etc as part of a research project, so I need to automate as many steps as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model structure (Export of the python attached).&lt;/P&gt;&lt;P&gt;I am running ArcGIS Pro 2.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 10:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770338#M811</guid>
      <dc:creator>JonathanCarruthers-Jones</dc:creator>
      <dc:date>2020-04-29T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-model cannot iterate features with same name ?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770339#M812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried this (my model looks like yours) and it works fine. Does the submodel work, that is, if you open it up and run it do you get a list in the collect values output?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-14874"&gt;Working iterator model for ArcGIS Pro&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 22:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770339#M812</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-05-02T22:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-model cannot iterate features with same name ?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770340#M813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Curtis, that is great&amp;nbsp; - I downloaded and tested your model on my local workspace and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot so far see the difference between yours and mine except that you used a lowercase file extension in the suffix for the wildcard input and &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;the label for the output parameter is different. Mine does not produce a list though.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway it works so I will run with your version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again !&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 14:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/sub-model-cannot-iterate-features-with-same-name/m-p/770340#M813</guid>
      <dc:creator>JonathanCarruthers-Jones</dc:creator>
      <dc:date>2020-05-04T14:31:43Z</dc:date>
    </item>
  </channel>
</rss>

