<?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: Arcpy Add Field issue _ Allies Not showing in table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-add-field-issue-allies-not-showing-in-table/m-p/244462#M18987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Due to web help on &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000"&gt;Add Field (Data Management) &lt;/A&gt;&lt;SPAN&gt; (sixth bullet):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"A shapefile does not support alias for fields, so you cannot add a field alias to a shapefile."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change alias for shapefile in Layer Properties, but it's not preserved with shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really need aliases, migrate to geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 04:38:16 GMT</pubDate>
    <dc:creator>MarcinGasior</dc:creator>
    <dc:date>2012-06-05T04:38:16Z</dc:date>
    <item>
      <title>Arcpy Add Field issue _ Allies Not showing in table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-field-issue-allies-not-showing-in-table/m-p/244461#M18986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcMap 10 I am trying to add two fields to a shapefile from a standalone Arcpy.the field has been added to the future class after ruing the code BUT:- The field_alias does not show up at the table of the future class even after I manually checked the "Display Field Aliases" from "Layer Properties--&amp;gt; Fields--&amp;gt; Options"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import arcpy module
import arcpy

# Local variables:
fshape = "C:\\Temp\\test.shp"

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Add Field
&amp;nbsp;&amp;nbsp;&amp;nbsp; # AddField_management (in_table, field_name, field_type, {field_precision}, {field_scale}, {field_length}, {field_alias}, {field_is_nullable}, {field_is_required}, {field_domain})
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fshape, "Area", "DOUBLE", "2", "", "", "This is not Real Name", "NON_NULLABLE", "NON_REQUIRED", "")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print ("Fields has been Added")
except Exception as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print( e.message)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please let me know what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 22:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-field-issue-allies-not-showing-in-table/m-p/244461#M18986</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2012-06-04T22:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Add Field issue _ Allies Not showing in table</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-field-issue-allies-not-showing-in-table/m-p/244462#M18987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Due to web help on &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000"&gt;Add Field (Data Management) &lt;/A&gt;&lt;SPAN&gt; (sixth bullet):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"A shapefile does not support alias for fields, so you cannot add a field alias to a shapefile."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change alias for shapefile in Layer Properties, but it's not preserved with shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really need aliases, migrate to geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 04:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-field-issue-allies-not-showing-in-table/m-p/244462#M18987</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-05T04:38:16Z</dc:date>
    </item>
  </channel>
</rss>

