# Enum returning ENUMNAME\_MAX?

**URL:** <https://forums.unrealengine.com/t/enum-returning-enumname-max/481636>\
**Category:** C++\
**Tags:** UEnum, ENUM, unreal-engine, CPP, question\
**Created:** [April 9, 2021, 7:57pm UTC](https://forums.unrealengine.com/t/enum-returning-enumname-max/481636 "2021-04-09T19:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [April 9, 2021, 7:57pm UTC](https://forums.unrealengine.com/t/enum-returning-enumname-max/481636/1 "2021-04-09T19:57:43Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![HappyKat100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HappyKat100](https://forums.unrealengine.com/u/HappyKat100)\
**Post date:** [December 23, 2023, 4:39am UTC](https://forums.unrealengine.com/t/enum-returning-enumname-max/481636/2 "2023-12-23T04:39:49Z")

</div>

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.
