addfield named 'Desc' error

280
1
Jump to solution
04-18-2014 06:26 AM
JeffreySchmidt
New Contributor II
Hi,

I have been having issues with arcpy AddField function.  I am attempting to add a field named 'Desc' to a shapefile.  It renames the field 'Desc_' upon creation.  I am wondering if "Desc" is a reserved word in either arcpy, python or working with shapefiles.  Either way it is odd... Has anyone had a similar issue? I am using ArcGIS 10.2.1.  / Python 2.7

arcpy.AddField_management(myshapefile, "Desc", "TEXT", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")

Thanks,
Jeff
0 Kudos
1 Solution

Accepted Solutions
TedKowal
Regular Contributor II
0 Kudos
1 Reply
TedKowal
Regular Contributor II
Yes Desc is a reserved word.  Others may be found here:

http://support.esri.com/cn/knowledgebase/techarticles/detail/37763
0 Kudos