<?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 Alter Field character limit incorrect in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674308#M52135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with the Alter Field&amp;nbsp; Data Management tool -- it will not allow me to create a field name longer than 31 characters. The table I'm using is a File Geodatabase table, where the character limit on field names is 64 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When importing and creating tables, I'm allowed to have field names (and aliases) that are longer than 31 characters, but when I try to alter the field name, this restriction is placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't seem to find information on this anywhere. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 13:43:04 GMT</pubDate>
    <dc:creator>YogiPatel</dc:creator>
    <dc:date>2015-07-01T13:43:04Z</dc:date>
    <item>
      <title>Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674308#M52135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with the Alter Field&amp;nbsp; Data Management tool -- it will not allow me to create a field name longer than 31 characters. The table I'm using is a File Geodatabase table, where the character limit on field names is 64 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When importing and creating tables, I'm allowed to have field names (and aliases) that are longer than 31 characters, but when I try to alter the field name, this restriction is placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't seem to find information on this anywhere. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674308#M52135</guid>
      <dc:creator>YogiPatel</dc:creator>
      <dc:date>2015-07-01T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674309#M52136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/alter-field-properties.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/alter-field-properties.htm"&gt;Alter Field—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The name of the field to alter. If the field is a required field (isRequired=true), only the field alias may be altered&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The new length of the field. This sets the maximum number of allowable characters for each record of the field. This option is only applicable on fields of type &lt;SPAN class="usertext"&gt;TEXT&lt;/SPAN&gt; or &lt;SPAN class="usertext"&gt;BLOB&lt;/SPAN&gt;. &lt;STRONG&gt;Only applicable if table is empty&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;There are two things, to check, whether the field is required and/or the size of the field and whether the table is empty or not.&lt;/P&gt;&lt;P&gt;This suggests that the table may need to be empty...which doesn't make much sense, so I would have a look at&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the script examples that follow,&lt;/LI&gt;&lt;LI&gt;make sure your table is closed when you do this and&lt;/LI&gt;&lt;LI&gt;check the requirements as listed in the help file.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As a note for associated reference, this error message applies to ArcGIS Pro &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/tool-errors-and-warnings-01576-01600-001600.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/tool-errors-and-warnings-01576-01600-001600.htm"&gt;001600: Failed to alter field name.—Help | ArcGIS for Professionals&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674309#M52136</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-01T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674310#M52137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yogi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we can't do much about that limitation of 31 characters in Alter Field Tool.&lt;/P&gt;&lt;P&gt;As a workaround, you can always create a new field with desired fieldname (upto 64 chars) and transfer the values of older field using FieldCalculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674310#M52137</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-07-01T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674311#M52138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jayanta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is the tool itself broken? I understand the work around, and I believe that was the only solution prior to the Alter Field Tool being implemented. I only hesitate to revert back to changing field names that way is that it seems much more inefficient when trying to change multiple fields in a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if that's the only solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674311#M52138</guid>
      <dc:creator>YogiPatel</dc:creator>
      <dc:date>2015-07-01T14:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674312#M52139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;From the resource guide&amp;nbsp; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//005s0000000n000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//005s0000000n000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;Field names are limited to 64 characters for both file and personal geodatabases, 31 characters in SQL Server and SQLExpress, 30 characters in Oracle and DB2; dBASE is limited to 10 characters.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And I'm getting this error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 000313 &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/000313_The_length_of_Field_Name_must_not_be_larger_than_value/00vp0000000r000313/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/000313_The_length_of_Field_Name_must_not_be_larger_than_value/00vp0000000r000313/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&lt;A&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The length of Field Name must not be larger than 31&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So what I'm wondering is if I'm using a file geodatabase table, why am I restricted to the SQL server limit of 31 characters instead of 64 characters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674312#M52139</guid>
      <dc:creator>YogiPatel</dc:creator>
      <dc:date>2015-07-01T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674313#M52140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That appears to be a bug, however, do you really need this capability on a regular basis?&amp;nbsp; What circumstances would require regular one to have to change field names?&amp;nbsp; I can see field width, but not the name.&amp;nbsp; Perhaps you could append extra underscores ________ to the end of a filename to provide place markers for future size changes.&amp;nbsp; Have you tried to decrease the fieldname width rather than increase it?​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 23:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674313#M52140</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-01T23:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674314#M52141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked into this issue and I have been able to replicate it. This issue appears to be a bug because I'm able to create fields in a file geodatabase with 64 characters, as per the documentation, but the Alter Field management tool appears to be restricted to 31 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Defining fields in tables&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/geodatabases/design-defining-fields-in-tables.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/geodatabases/design-defining-fields-in-tables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="115277" alt="fields.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/115277_fields.png" style="width: 620px; height: 459px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an active support account could you send me a private message with your account information so that can attach your information to the bug I'll log for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the moment the only workaround I can see for this issue is to use the Add Field tool. Unlike the Alter Field tool, this tool will modify the order of your fields. If field order is important to you I would suggest either using python to create a new template feature class with your updated field and loading your data into this new dataset prior to overwrite the original class or create a fieldmappings object against your data, updating the information for the needed field, and then using the Feature Class to Feature Class to create a new clone of your data prior to overwriting it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 18:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674314#M52141</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-07-02T18:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field character limit incorrect</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674315#M52142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually went ahead and submitted this as a bug yesterday and got confirmation that it's been logged today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 19:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-character-limit-incorrect/m-p/674315#M52142</guid>
      <dc:creator>YogiPatel</dc:creator>
      <dc:date>2015-07-02T19:19:55Z</dc:date>
    </item>
  </channel>
</rss>

