<?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: Merge error after Iterate Feature Selection in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19133#M1463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody can help with this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 17:38:39 GMT</pubDate>
    <dc:creator>MaximeDemers</dc:creator>
    <dc:date>2016-04-21T17:38:39Z</dc:date>
    <item>
      <title>Merge error after Iterate Feature Selection</title>
      <link>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19132#M1462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use the model builder to solve OD Cost Matrix in iterations because my origins/destinations FC need to be grouped by attributes. I use the Iterate Feature Selection tool to do so. After performing all OD Cost Matrix in loop, I want to merge all result lines into a single FC and export its table into an excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I separate the Iteration part of the process into a subModel with a Collect Values as output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="195212" alt="subModel.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/195212_subModel.png" style="width: 620px; height: 302px;" /&gt;&lt;/P&gt;&lt;P&gt;Then I use the subModel output into another model to do the merge and the export to excel:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="195213" alt="model.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/195213_model.png" style="width: 620px; height: 319px;" /&gt;&lt;/P&gt;&lt;P&gt;The subModel seems to run in iteration correctly, but when it's time to merge the output I got these errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;ERROR 000622&lt;/STRONG&gt;: &lt;STRONG&gt;Failed to execute (Merge). Parameters are not valid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR 000400: duplicate input not allowed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone have an idea what is&amp;nbsp; incorrect in my process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19132#M1462</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2016-04-21T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge error after Iterate Feature Selection</title>
      <link>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19133#M1463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody can help with this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19133#M1463</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2016-04-21T17:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merge error after Iterate Feature Selection</title>
      <link>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19134#M1464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect what's happening is all of the values collected at the end of the submodel have the same name ("Lines","Lines","Lines",etc.). The layer names must be unique for the &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm"&gt;Merge &lt;/A&gt;tool (I believe this requirement is undocumented, but try it in ArcMap - it doesn't work). Try naming your collected values with iterator variable "%Value%" using &lt;A href="http://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm"&gt;inline variable substitution&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-error-after-iterate-feature-selection/m-p/19134#M1464</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-04-21T17:54:18Z</dc:date>
    </item>
  </channel>
</rss>

