<?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 merging shapefiles in batch within parameterised model leads to crap in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/merging-shapefiles-in-batch-within-parameterised/m-p/261469#M8977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I face a problem with the merge-tool within a parameterised model I built with the modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is as follows: in the last step of my model I want to merge 2 point shapefiles. Both shapes are defined as model parameters and also the output of the merge is defined as a model parameter. I introduced those parameters as I want to run my model for 10 successive years where each newly created shapefile for each year gets a unique name (e.g. centroid_parcels09, centroid_parcels08, centroid_parcels07,...). I run the model in batch so that after adjusting all parameters for each year I can run the model in one time instead of 10 times running it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model works perfectly, except for the last step where the 2 point shapefiles are merged. Although the fields of those 2 shapes are identical, the output of the merge-tool is crap except for the first run (or year). Let's say we run it for 2 years: 2009 and 2008 (so a batch with two runs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_weird_shape_total.shp &lt;/SPAN&gt;&lt;SPAN&gt;(fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_minus_centroid outside polygon.shp&lt;/SPAN&gt;&lt;SPAN&gt; (fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;SPAN&gt;) --&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_TOTAL.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For x = 9 (first run for year 2009) the output is as expected: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels09_TOTAL.shp &lt;/SPAN&gt;&lt;SPAN&gt;with fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, for x = 8 (second run for year 2008) the output is not as expected: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels08_total.shp&lt;/SPAN&gt;&lt;SPAN&gt; has the fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC, CC1_1, CD1_1, UC_1&lt;/SPAN&gt;&lt;SPAN&gt;. So the fields are "doubled". I really don't get the problem! Why does the second merge fails? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It even becomes more strange when I noticed that merging all newly created point shapefiles in batch for the 10 successive years in a second tool gives a good result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2011 07:46:35 GMT</pubDate>
    <dc:creator>PhilippeVan_De_Vreken1</dc:creator>
    <dc:date>2011-03-03T07:46:35Z</dc:date>
    <item>
      <title>merging shapefiles in batch within parameterised model leads to crap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/merging-shapefiles-in-batch-within-parameterised/m-p/261469#M8977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I face a problem with the merge-tool within a parameterised model I built with the modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is as follows: in the last step of my model I want to merge 2 point shapefiles. Both shapes are defined as model parameters and also the output of the merge is defined as a model parameter. I introduced those parameters as I want to run my model for 10 successive years where each newly created shapefile for each year gets a unique name (e.g. centroid_parcels09, centroid_parcels08, centroid_parcels07,...). I run the model in batch so that after adjusting all parameters for each year I can run the model in one time instead of 10 times running it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model works perfectly, except for the last step where the 2 point shapefiles are merged. Although the fields of those 2 shapes are identical, the output of the merge-tool is crap except for the first run (or year). Let's say we run it for 2 years: 2009 and 2008 (so a batch with two runs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_weird_shape_total.shp &lt;/SPAN&gt;&lt;SPAN&gt;(fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_minus_centroid outside polygon.shp&lt;/SPAN&gt;&lt;SPAN&gt; (fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;SPAN&gt;) --&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels0x_TOTAL.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For x = 9 (first run for year 2009) the output is as expected: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels09_TOTAL.shp &lt;/SPAN&gt;&lt;SPAN&gt;with fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, for x = 8 (second run for year 2008) the output is not as expected: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Centroid_parcels08_total.shp&lt;/SPAN&gt;&lt;SPAN&gt; has the fields &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CC1, CD1, UC, CC1_1, CD1_1, UC_1&lt;/SPAN&gt;&lt;SPAN&gt;. So the fields are "doubled". I really don't get the problem! Why does the second merge fails? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It even becomes more strange when I noticed that merging all newly created point shapefiles in batch for the 10 successive years in a second tool gives a good result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 07:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/merging-shapefiles-in-batch-within-parameterised/m-p/261469#M8977</guid>
      <dc:creator>PhilippeVan_De_Vreken1</dc:creator>
      <dc:date>2011-03-03T07:46:35Z</dc:date>
    </item>
  </channel>
</rss>

