arcpy.AddField_management("in_memory/originalfc","ALPHABET","TEXT",1)
arcpy.Select_analysis("in_memory/originalfc","in_memory/A","attr<=0")
arcpy.CalculateField_management("in_memory/A","ALPHABET",'"A"',"PYTHON")
arcpy.Select_analysis("in_memory/originalfc","in_memory/B","attr>0")
arcpy.CalculateField_management("in_memory/B","ALPHABET",'"B"',"PYTHON")
arcpy.Merge_management(["in_memory/A","in_memory/B"],"in_memory/merged")
When the merge executes I get an error 001156 on OID 1 that says i can't write value 'A' to output field ALPHA.
If I try to append one to the other I get the same error. They were originally the same feature class why won't they go back together?
arcpy.CalculateField_management("in_memory/originalfc","ALPHA",'"A" if !attr! <= 0 else "B"',"PYTHON")