# Behaviour Tree task node, Vector KeyValue in blackboard invalid

**URL:** <https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 26, 2020, 9:36am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901 "2020-02-26T09:36:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![EchocryUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EchocryUE](https://forums.unrealengine.com/u/EchocryUE)\
**Post date:** [February 26, 2020, 9:36am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/1 "2020-02-26T09:36:10Z")

</div>

Behaviour Tree task node, the function node “Set Blackboard Value as Vector” fail. Vector KeyValue in blackboard invalid

I wanna try use the “Behaviour Tree” to get my enemy action in heself as the UE4 document. But I got some problem.

I have done all things in the document [Behavior Tree Quick Start Guide | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/Engine/ArtificialIntelligence/BehaviorTrees/BehaviorTreeQuickStart/index.html)

It is **step 5** , the task is to find a potrol location to move.

I run the BT finally but the actor didn’t walk to the target location.

As I see, the “ **PotrolLocation** ” is invalid as following picture

 ![debugshoot.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/a/7a3157cca0b46cde29f419330e0ee60cd1804e88.png)  
​

and the “ **Set Blackboard Value as Vector** ” node in the task node worked well.  
​

 ![debugshoot2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/2/028330ddcb0f61f881d66bb97af3150ce7b4ff54.png)

I took much time to get the way, but I failed. Can someone tell me why and help me to solve this problem. Thank you so much.

---

<div class="post-metadata">

**Author:** ![EchocryUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EchocryUE](https://forums.unrealengine.com/u/EchocryUE)\
**Post date:** [February 26, 2020, 10:23am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/2 "2020-02-26T10:23:22Z")

</div>

I solve this problem by my self as see the toturial again and again.

The task node must assign the “PotrolLocation” variable once by following steps :

1. check “Instance Editable” in the valiable detail.
2. go back to the BT, select the task node witch the “Set Blackboard Value as Vector” node.
3. select a blackboard key to the “PotrolLocation” valiable. thus, the “PotrolLocation” variable key should be set to “PotrolLocation” which in blackboard.

---

<div class="post-metadata">

**Author:** ![FridayIsTheBest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FridayIsTheBest](https://forums.unrealengine.com/u/FridayIsTheBest)\
**Post date:** [April 11, 2020, 11:24am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/3 "2020-04-11T11:24:43Z")

</div>

Thank you so much for taking time to answer your own question.  
I spent way too much time trying to resolve similar problem after watching some tutorial which made it look like it was dependent on names equality.  
It doesn’t matter if ‘name of variable in Blackboard’ and ‘name of blackboard key in task’ are different or equal - you have to bind it manually in task details in Behavior Tree. Otherwise it binds public task variable to first blackboard variable regardless of name or type.

---

<div class="post-metadata">

**Author:** ![G-Type\_Nemesis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G-Type\_Nemesis](https://forums.unrealengine.com/u/G-Type_Nemesis)\
**Post date:** [April 11, 2020, 3:43pm UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/4 "2020-04-11T15:43:39Z")

</div>

Ah thanks, I got stuck at the same part. I built myself some weird workaround

---

<div class="post-metadata">

**Author:** ![xl.cn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xl.cn](https://forums.unrealengine.com/u/xl.cn)\
**Post date:** [April 26, 2020, 8:37am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/5 "2020-04-26T08:37:15Z")

</div>

Need to get ”Owners Blackboard“ to “Set Value as Vector”.

---

<div class="post-metadata">

**Author:** ![HugBeg2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HugBeg2000](https://forums.unrealengine.com/u/HugBeg2000)\
**Post date:** [January 27, 2022, 2:56pm UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/6 "2022-01-27T14:56:09Z")

</div>

Hi I am following that introduction to Behavior trees and thank you for helping me with that issue.  
I now have a problem with the “has line of sight” decorator it is not changing the bool to true.  
I have my own Topic open if you know the answer you could maybe answer there.

> [@Behavior Tree Decorator not working](https://forums.unrealengine.com/t/behavior-tree-decorator-not-working/491890):
>
> Hi! So I have been following this tutorial : [Behavior Tree Quick Start Guide | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/ArtificialIntelligence/BehaviorTrees/BehaviorTreeQuickStart/) And everything should be the same I will post images so its easier to understand the problem later. But I have a Behavior Tree (BT) and I dont really understand decorators and the first thing it checks is if it has a Line of Sight (LOS). But it doesnt change the value even if I am infront of it, and I think it should change if the actor with player tag is in LOS of it. Here a…

Thank you and anyone else who tries to help me!

I am just stupid, I forgot to set this bool to true 😅  
It is inside of the AI controller  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/e/feea10e4bec01b0765d95b3b02c6f087ecd12694.png)

---

<div class="post-metadata">

**Author:** ![Dr.J](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr.J](https://forums.unrealengine.com/u/Dr.J)\
**Post date:** [November 1, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/7 "2022-11-01T17:14:40Z")

</div>

I just want to thank you for finding this, I was stumped on this for a long long time!

---

<div class="post-metadata">

**Author:** ![SR-15](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sr-15/32/1082205_2.png) [@SR-15](https://forums.unrealengine.com/u/SR-15)\
**Post date:** [January 4, 2023, 6:00am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/8 "2023-01-04T06:00:00Z")

</div>

Thank you so much. 😅

---

<div class="post-metadata">

**Author:** ![DHA.21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DHA.21](https://forums.unrealengine.com/u/DHA.21)\
**Post date:** [May 24, 2023, 6:46pm UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/9 "2023-05-24T18:46:08Z")

</div>

Hey, its not working for me , could you help me out with it?

---

<div class="post-metadata">

**Author:** ![Anthony\_Attwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Attwood](https://forums.unrealengine.com/u/Anthony_Attwood)\
**Post date:** [October 8, 2025, 1:02am UTC](https://forums.unrealengine.com/t/behaviour-tree-task-node-vector-keyvalue-in-blackboard-invalid/138901/10 "2025-10-08T01:02:31Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/d/92db12180bf9485aa1de8fc164238631be522adc.png)

Make sure it’s set here specifically aswell as the ‘move to’ node which comes after this task. No idea how I missed that one.
