Enum returning ENUMNAME_MAX?

I declared 3 enums like this:

UENUM(BlueprintType)
enum EWeaponType 
{
        WEPTYPE_OneHanded   UMETA(DisplayName="OneHanded"), 
        WEPTYPE_TwoHanded   UMETA(DisplayName="TwoHanded"),
        WEPTYPE_Heavy       UMETA(DisplayName="Heavy")
};

But when importing a data table with values like “WEPTYPE_OneHanded”, it says

 LogEnum: Warning: In asset 'None', there is an enum property of type 'EWeaponType' with an invalid value of 'EWeaponType_MAX'

But the imported data table shows the correct values. Does anyone know what’s wrong? (it does this for every enum)

1 Like