<?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 Problem passing feature class to sub-model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/problem-passing-feature-class-to-sub-model/m-p/803240#M3095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a model that will iterate through a layer of polygons and complete these steps&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;select the polygons one at a time&lt;/LI&gt;&lt;LI&gt;select all points from a point class which fall within the polygon&lt;/LI&gt;&lt;LI&gt;Append the selected points to an existing class (same schema)&lt;/LI&gt;&lt;LI&gt;The appended class then has a name field added and the user selected “name” field from the selected polygon is field calculated to each point&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This model works fine and produces the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then wanted to be able to have the model create an empty point class with the same schema as the input point class so I would not need to do this manually prior to using my existing model.&amp;nbsp; Since the existing model has an iterator and I only need to create the table once I need a main model which creates the table and then calls the sub-model to iterate through the polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new main model works as expected to create the class when I run it without the sub-model.&amp;nbsp; When I try to link the output class of the main model to the sub-model I receive the following error;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2324_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt; &lt;/P&gt;&lt;P&gt;I have tried numerous things but I cannot determine what “field name” is causing the issue.&amp;nbsp; The only field name I use is in the sub-model which works fine when run stand-alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the models as a toolbox.&amp;nbsp; Any class of polygons with a name field and any class of points should work for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2014 16:33:55 GMT</pubDate>
    <dc:creator>TomGoeke</dc:creator>
    <dc:date>2014-07-18T16:33:55Z</dc:date>
    <item>
      <title>Problem passing feature class to sub-model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/problem-passing-feature-class-to-sub-model/m-p/803240#M3095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a model that will iterate through a layer of polygons and complete these steps&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;select the polygons one at a time&lt;/LI&gt;&lt;LI&gt;select all points from a point class which fall within the polygon&lt;/LI&gt;&lt;LI&gt;Append the selected points to an existing class (same schema)&lt;/LI&gt;&lt;LI&gt;The appended class then has a name field added and the user selected “name” field from the selected polygon is field calculated to each point&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This model works fine and produces the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then wanted to be able to have the model create an empty point class with the same schema as the input point class so I would not need to do this manually prior to using my existing model.&amp;nbsp; Since the existing model has an iterator and I only need to create the table once I need a main model which creates the table and then calls the sub-model to iterate through the polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new main model works as expected to create the class when I run it without the sub-model.&amp;nbsp; When I try to link the output class of the main model to the sub-model I receive the following error;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2324_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt; &lt;/P&gt;&lt;P&gt;I have tried numerous things but I cannot determine what “field name” is causing the issue.&amp;nbsp; The only field name I use is in the sub-model which works fine when run stand-alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the models as a toolbox.&amp;nbsp; Any class of polygons with a name field and any class of points should work for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 16:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/problem-passing-feature-class-to-sub-model/m-p/803240#M3095</guid>
      <dc:creator>TomGoeke</dc:creator>
      <dc:date>2014-07-18T16:33:55Z</dc:date>
    </item>
  </channel>
</rss>

