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

Hi - Did you ever find a fix for this? I’m having the same issue. No data table, I just built an Enum in C++ but it’s not finding the right value, instead giving me the ENUMNAME_MAX as the item which is basically nothing.