<?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: Is Modelbuilder the *only* way to rename fields - not succeeding in Python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64210#M2273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Harry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you showing the complete code in your uploaded sample? If you search the Help file for &lt;/SPAN&gt;&lt;STRONG&gt;FieldInfo&lt;/STRONG&gt;&lt;SPAN&gt; the example given in the help shows that this object is obtained via the &lt;/SPAN&gt;&lt;STRONG&gt;Describe&lt;/STRONG&gt;&lt;SPAN&gt; Object.&amp;nbsp; Maybe your &lt;/SPAN&gt;&lt;STRONG&gt;fieldInfo &lt;/STRONG&gt;&lt;SPAN&gt;object is invalid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Nov 2012 17:46:20 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2012-11-04T17:46:20Z</dc:date>
    <item>
      <title>Is Modelbuilder the *only* way to rename fields - not succeeding in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64209#M2272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably doing it incorrectly, but following the samples in which I try Python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy fi = arcpy.FieldInfo() fi.addField("Name", "Name2", "VISIBLE", "") arcpy.MakeFeatureLayer_management("TheFC, "foo5", "","", fi) arcpy.CopyFeatures_management("foo5", "hoo1")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does NOT persist renaming the fields. Hoo1 still has the old names. According to what I have read, it shouldn't. Is modelbuilder the *only* way renaming works? Is it possible by using ArcPy field methods? What am I doing incorrectly (this time)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 00:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64209#M2272</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-11-02T00:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is Modelbuilder the *only* way to rename fields - not succeeding in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64210#M2273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Harry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you showing the complete code in your uploaded sample? If you search the Help file for &lt;/SPAN&gt;&lt;STRONG&gt;FieldInfo&lt;/STRONG&gt;&lt;SPAN&gt; the example given in the help shows that this object is obtained via the &lt;/SPAN&gt;&lt;STRONG&gt;Describe&lt;/STRONG&gt;&lt;SPAN&gt; Object.&amp;nbsp; Maybe your &lt;/SPAN&gt;&lt;STRONG&gt;fieldInfo &lt;/STRONG&gt;&lt;SPAN&gt;object is invalid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 17:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64210#M2273</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-11-04T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is Modelbuilder the *only* way to rename fields - not succeeding in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64211#M2274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Harry's script works ok for me. I suppose it's based on example from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006v000000" rel="nofollow" target="_blank"&gt;this page&lt;/A&gt;&lt;SPAN&gt; where creating &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;FieldInfo &lt;/SPAN&gt;&lt;SPAN&gt;object directly from &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcpy &lt;/SPAN&gt;&lt;SPAN&gt;is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first glance, it seemed for me that field name was not changed. But I checked feature class properties and it turned out that actually field name was changed but not a field alias which is used in display in Attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So check actuall field name in feature class properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 09:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64211#M2274</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-11-05T09:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is Modelbuilder the *only* way to rename fields - not succeeding in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64212#M2275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are exactly correct - in Catalog, you can see that the field is the correct name. Now I just need to figure out how to change the alias, since that is what the user will see.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64212#M2275</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-11-05T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is Modelbuilder the *only* way to rename fields - not succeeding in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64213#M2276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Harry -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever figure out a way to change the alias name via arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-modelbuilder-the-only-way-to-rename-fields-not/m-p/64213#M2276</guid>
      <dc:creator>JohnHansen</dc:creator>
      <dc:date>2013-08-28T14:43:31Z</dc:date>
    </item>
  </channel>
</rss>

