<?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: error in fieldmapping/merge example? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/error-in-fieldmapping-merge-example/m-p/458358#M15445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct. We will have the online help updated soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the catch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 20:28:25 GMT</pubDate>
    <dc:creator>DanLee</dc:creator>
    <dc:date>2012-05-01T20:28:25Z</dc:date>
    <item>
      <title>error in fieldmapping/merge example?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-in-fieldmapping-merge-example/m-p/458357#M15444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been trying for hours to get the code in "Merge example 2 (stand-alone script)" on the "Merge (Data Management)" help file page(&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000055000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000055000000&lt;/A&gt;&lt;SPAN&gt;) to run, and finally realized that there appears to be an error in this ESRI-provided script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the line:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldMappings.RemoveFieldMap(fieldMappings.FindFieldMapIndex(field.name))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The words "Remove" and "Find" should not be capitalized.&amp;nbsp; That is, the correct method names are "removeFieldMap" and "findFieldMapIndex", so the correct line is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldMappings.removeFieldMap(fieldMappings.findFieldMapIndex(field.name))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone from ESRI confirm/correct the help file? (or let me know why I'm wrong)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is for ArcGIS 10. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2012 14:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-in-fieldmapping-merge-example/m-p/458357#M15444</guid>
      <dc:creator>JamesPrieger</dc:creator>
      <dc:date>2012-04-28T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: error in fieldmapping/merge example?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-in-fieldmapping-merge-example/m-p/458358#M15445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct. We will have the online help updated soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the catch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 20:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-in-fieldmapping-merge-example/m-p/458358#M15445</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2012-05-01T20:28:25Z</dc:date>
    </item>
  </channel>
</rss>

