<?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: Field alias name missing in the exported feature classes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100421#M7778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any particular reason you need a specific alias for these required fields?&lt;/P&gt;&lt;P&gt;You could run through the tables again using the AlterField tool in the Data Management / Fields toolset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2016 12:34:59 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2016-11-15T12:34:59Z</dc:date>
    <item>
      <title>Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100420#M7777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a set of feature classes in file gdb. while exporting these to SDE via arcpy, the field names "SHAPE_Length" and "SHAPE_Area" got changed to"SHAPE.LEN" and "SHAPE.AREA" respectively. &lt;BR /&gt;There was alias name for both these fields in GDB which&amp;nbsp; got missed in the SDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could right click on the feature class and from the properties window i can update the alias name of these fields. But the "Alter Field" tool in "Data Management Tools" fails to update the alias name for these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a lot of feature classes and its not practical to manually update the fields.&lt;/P&gt;&lt;P&gt;Is there any way to preserve the field alias for these fields during the export? Or is there any other way to update the alias name programmatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the CopyFeatures_management in arcpy to export the feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100420#M7777</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-11-15T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100421#M7778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any particular reason you need a specific alias for these required fields?&lt;/P&gt;&lt;P&gt;You could run through the tables again using the AlterField tool in the Data Management / Fields toolset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 12:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100421#M7778</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-15T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100422#M7779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see you have already tried that.&lt;/P&gt;&lt;P&gt;I suppose you have the correct permissions for your SDE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 12:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100422#M7779</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-15T12:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100423#M7780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what additional permission is required for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to modify other fields using the AlterField tool. Also, I'm able to manually update the alias name of these fields ("SHAPE.LEN" and "SHAPE.AREA" ) by right clicking on the feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ArcGIS Desktop Version is 10.3 and I'm connecting to Oracle using direct connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100423#M7780</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-11-15T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100424#M7781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, don't have access to an SDE here to test anything (and definately not on Oracle).&lt;/P&gt;&lt;P&gt;There are a few hits from here on Geonet and SE regarding renaming Alias names but am am not sure if they apply in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 19:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100424#M7781</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-15T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100425#M7782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not even able to alter the alias for a field in GDB feature class&lt;/P&gt;&lt;P&gt;Here is the sample code used to alter the alias name:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = r"C:\Users\jose\Documents\ArcGIS\Default.gdb\World_Map"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fc)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AlterField_management(fc, desc.AreaFieldName, new_field_alias="Shape Area")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AlterField_management(fc, desc.LengthFieldName, new_field_alias="Shape Length")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm getting the following error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arcgisscripting.ExecuteError: ERROR 001625: Failed to alter field is nullable.&lt;BR /&gt;Failed to execute (AlterField).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100425#M7782</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-11-16T05:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100426#M7783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;Just tried this. And I get the same error (using v10.4.1).&lt;/P&gt;&lt;P&gt;Perhaps you just can't change the alias of a required field like the Shape_Length or Area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100426#M7783</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-16T07:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100427#M7784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even the script and the AlterField tool are throwing exceptions, I could see that the SDE feature classes got updated with the new alias provided. So I'm planning to ignore these errors and continue with the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100427#M7784</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-11-16T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias name missing in the exported feature classes</title>
      <link>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100428#M7785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good luck....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-alias-name-missing-in-the-exported-feature/m-p/100428#M7785</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-16T11:06:52Z</dc:date>
    </item>
  </channel>
</rss>

