# "Get Blackboard Enum" Switch Failing

**URL:** <https://forums.unrealengine.com/t/get-blackboard-enum-switch-failing/463926>\
**Category:** AI\
**Tags:** Behavior-Tree, failing, service, unreal-engine, question\
**Created:** [April 18, 2020, 7:59am UTC](https://forums.unrealengine.com/t/get-blackboard-enum-switch-failing/463926 "2020-04-18T07:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fristomer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fristomer](https://forums.unrealengine.com/u/Fristomer)\
**Post date:** [April 18, 2020, 7:59am UTC](https://forums.unrealengine.com/t/get-blackboard-enum-switch-failing/463926/1 "2020-04-18T07:59:27Z")

</div>

Just before the Screenshot is taken, the “Home → IsValid” check set the “AI\_State” Blackboard Key Selector to “Homeless.” However, I seem to be failing to retrieve that Key when called upon. Does anyone have any advice on how to traverse this switch?

This is the way I understand it:  
Get Blackboard Value as Enum → To Byte → To Literal “States”

 ![299952-failedstatecheck.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/b/beb7068f2b0a8f28a0cb9f2ddc2af8ca1fc768c1.png)

---

<div class="post-metadata">

**Author:** ![Fristomer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fristomer](https://forums.unrealengine.com/u/Fristomer)\
**Post date:** [April 18, 2020, 8:11am UTC](https://forums.unrealengine.com/t/get-blackboard-enum-switch-failing/463926/2 "2020-04-18T08:11:04Z")

</div>

Temporary Fix: I set a new variable in the NPC that has to be updated every time the Blackboard Key is updated. It did not solve the problem, but it seems to be working this way. I’d like to skip the extra steps, though, if anyone can figure out why the Blackboard Key Selector keeps failing.

 ![299966-failedstatecheckworkaround.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/f/dbfe4d1054352009419fa9b7521f188870ca4d6b.png)
