AnsweredAssumed Answered

cannot change field alias without changing field name

Question asked by monzay on Feb 3, 2017
Latest reply on Feb 6, 2017 by rastrauch

I want to change the field alias in a feature class in a file gdb (and eventually in SDE). The alterfield_management syntax indicates I can do this, however, I get a syntax error when I try. 


AlterField_management(fc, 'Sign_repai',, 'Sign Repair')

It seems to not like the fact that I skipped the 3rd parameter.

All of the parameters except for the first two are supposed to optional. 

AlterField_management (in_table, field, {new_field_name}, {new_field_alias}, {field_type}, {field_length}, {field_is_nullable}, {clear_field_alias})

If I use the existing name as the "new field name" and then set a new alias name it works. 

Is the documentation incorrect? Or should I be doing something else?