# Enum to name is Broken

**URL:** <https://forums.unrealengine.com/t/enum-to-name-is-broken/330052>\
**Category:** Community & Industry Discussion\
**Tags:** convert, datatable, constructors, ENUM, unreal-engine, name, question\
**Created:** [August 27, 2015, 5:48am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052 "2015-08-27T05:48:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [August 27, 2015, 5:48am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/1 "2015-08-27T05:48:02Z")

</div>

In a Constructor - this won’t work:

- Drag out of enum,
- pass to Get Data Table Row (Row Name)

**Observe** : a Enum to Name converter will be automatically inserted.

**Expected** : the row name to get the friendly name of the Enum.

**Actual** : it gets a name such as this UnitTypeEnum::NewEnumerator2

* * *

However this will work:

- Drag out of enum,
- type enum,
- select “enum to string”
- drag string to Get Data Table Row (Row Name)

**Observe** : a String to Name converter will be automatically inserted.

**Row will be found as expected.**

* * *

Conclusion

- Enum to Name is BROKEN and gives UnitTypeEnum::NewEnumerator2.
- Enum to String then converted to Name works as expected.

This caught me more than once, and it’s hard to find out in Constructors.

![55975-row+not+found.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/e/64eb12ef136a40151d4e2de69ee92c1f232d2a6d.png)

 ![55976-row+found.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/c/52c5c2fdb5c0fead2533bdc8a772331d6bef2395.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_359f4d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_359f4d3c](https://forums.unrealengine.com/u/anonymous_user_359f4d3c)\
**Post date:** [August 27, 2015, 7:53am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/2 "2015-08-27T07:53:08Z")

</div>

I think this is a known issue.

As a workaround, you can cast the enum to string, then cast that to name. This will return the reader-friendly name. (At least that’s how it works in-game. I see no reason why it would be different in the construction script.)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [August 27, 2015, 9:14am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/3 "2015-08-27T09:14:55Z")

</div>

Yeah I’m aware of the work around thanks. Is it fixed in 4.9?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 27, 2015, 5:05pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/4 "2015-08-27T17:05:18Z")

</div>

Hi ,

This is a known issue and is in our system as UE-14117. Unfortunately I do not have a timeframe of when a fix will be made available.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [August 28, 2015, 12:49pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/5 "2015-08-28T12:49:05Z")

</div>

Thanks . Can we get any visibility at all on your Jira?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 28, 2015, 2:40pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/6 "2015-08-28T14:40:45Z")

</div>

At present we do not have a public bug tracker. If you’d like an update, please post here and I’ll be happy to let you know the status of the bug.

---

<div class="post-metadata">

**Author:** ![Elendil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elendil](https://forums.unrealengine.com/u/Elendil)\
**Post date:** [November 27, 2015, 12:39am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/7 "2015-11-27T00:39:15Z")

</div>

I always have this bug on 4.10. And in a function the workaround does not seem to work. It works only if you pass your variable in a litteral enum …

---

<div class="post-metadata">

**Author:** ![DanaFo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanaFo](https://forums.unrealengine.com/u/DanaFo)\
**Post date:** [April 30, 2016, 11:38pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/8 "2016-04-30T23:38:04Z")

</div>

This just cost me a half hour today, grr (4.10.4). Glad to know there’s a workaround.

---

<div class="post-metadata">

**Author:** ![Macw0lf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Macw0lf](https://forums.unrealengine.com/u/Macw0lf)\
**Post date:** [June 10, 2016, 8:18am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/9 "2016-06-10T08:18:18Z")

</div>

Still a bug on 4.12.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 10, 2016, 3:57pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/10 "2016-06-10T15:57:54Z")

</div>

Hi Macw0lf,

I just looked into this bug and it is still under assessment by the development staff. I have updated the report to reflect that additional developers are experiencing this error, however I do not have a timeframe of when a fix will be implemented.

---

<div class="post-metadata">

**Author:** ![MatzeOGH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatzeOGH](https://forums.unrealengine.com/u/MatzeOGH)\
**Post date:** [July 12, 2016, 1:23pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/11 "2016-07-12T13:23:48Z")

</div>

What does it take to fix the issue ourselfs. I just crashed head first into it.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 12, 2016, 3:12pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/12 "2016-07-12T15:12:24Z")

</div>

In the meantime, until this issue is resolved, you can try the workaround that has suggested. This issue is still being investigated; however, there is currently no timeline for when a fix will be released.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ecff5664](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ecff5664](https://forums.unrealengine.com/u/anonymous_user_ecff5664)\
**Post date:** [November 4, 2016, 2:11am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/13 "2016-11-04T02:11:23Z")

</div>

how would you do enum to FName in C++?

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [January 16, 2017, 12:55pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/14 "2017-01-16T12:55:57Z")

</div>

4.14 stil the same…

---

<div class="post-metadata">

**Author:** ![borbs727](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@borbs727](https://forums.unrealengine.com/u/borbs727)\
**Post date:** [March 26, 2017, 3:24am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/15 "2017-03-26T03:24:14Z")

</div>

Still a bug in 4.15.1

---

<div class="post-metadata">

**Author:** ![Phyro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phyro](https://forums.unrealengine.com/u/Phyro)\
**Post date:** [November 14, 2017, 6:43am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/16 "2017-11-14T06:43:57Z")

</div>

Still a bug in 4.18! Please fix.

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [December 1, 2017, 2:24am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/17 "2017-12-01T02:24:32Z")

</div>

Jeez…just ran into this bug just now…I was like wtf is going on…

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [December 1, 2017, 2:25am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/18 "2017-12-01T02:25:55Z")

</div>

Also that issue number does not work

---

<div class="post-metadata">

**Author:** ![DomusLudus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domusludus/32/1215140_2.png) [@DomusLudus](https://forums.unrealengine.com/u/DomusLudus)\
**Post date:** [April 19, 2018, 6:48am UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/19 "2018-04-19T06:48:39Z")

</div>

With 4.18 the workaround don’t work,  
to string return 1  
To text return 1  
to name return UnitTypeEnum::NewEnumerator1

---

<div class="post-metadata">

**Author:** ![MacielKore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MacielKore](https://forums.unrealengine.com/u/MacielKore)\
**Post date:** [August 6, 2018, 4:38pm UTC](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052/20 "2018-08-06T16:38:54Z")

</div>

4.20.1 UnitTypeEnum::NewEnumerator1

[Next page](https://forums.unrealengine.com/t/enum-to-name-is-broken/330052.md?page=2)
