so, the following command works (env pointed to a gdb):
arcpy.management.AlterField(r'TestData_replaced', 'DMSLat','LAT_DMS','LAT_DMS')
However, if the same feature class is stored in memory, and I run it, like so:
arcpy.management.AlterField(r"memory\tempDataLayer","DMSLat","LAT_DMS","LAT_DMS")
I get the following:
---------------------------------------------------------------------------ExecuteError Traceback (most recent call last)<ipython-input-24-5d8b88a74d08> in <module>----> 1 arcpy.management.AlterField(r"memory\tempDataLayer","DMSLat","LAT_DMS","LAT_DMS")C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py in AlterField(in_table, field, new_field_name, new_field_alias, field_type, field_length, field_is_nullable, clear_field_alias)