# Invalid Type but I don't know why

**URL:** <https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 7, 2023, 6:32pm UTC](https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768 "2023-08-07T18:32:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackFolio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackFolio](https://forums.unrealengine.com/u/BlackFolio)\
**Post date:** [August 7, 2023, 6:32pm UTC](https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768/1 "2023-08-07T18:32:19Z")

</div>

I have been given the following error:

The variable Quest Ref declared in BP\_NPC has an invalid type Structure

But I’m not sure why? The variable “Quest Ref” is a structure reference with 3 pieces of information and I use it in 3 different areas. Not sure what the error is about.

The first use is in the begin play setup. The three-pinned structure with the Name/Description/ActorReference is the variable split open.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/a/6ca5c878debe8fc487c35ff9d0df453ddbd6c282.png)

The second use is as a reference for the player blueprint.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/b/27b66beb2d67335060a61aeaacbd3c2bc679f845.png)

The last time is as a comparison point.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/c/39c2c95959ce4a7e29e31543f4b141d3b3757b22.png)

If anyone has a clue what my issue is, I’d be most grateful!

---

<div class="post-metadata">

**Author:** ![DivinePart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DivinePart](https://forums.unrealengine.com/u/DivinePart)\
**Post date:** [August 8, 2023, 5:50am UTC](https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768/2 "2023-08-08T05:50:11Z")

</div>

Hi!, I think you have to change NPCRef variable to object reference instead of class reference.  
If it works, inform me.  
Thanks!

---

<div class="post-metadata">

**Author:** ![BlackFolio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackFolio](https://forums.unrealengine.com/u/BlackFolio)\
**Post date:** [August 8, 2023, 2:00pm UTC](https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768/3 "2023-08-08T14:00:31Z")

</div>

That was it, thank you! Not sure how I kept overlooking it!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 7, 2023, 2:00pm UTC](https://forums.unrealengine.com/t/invalid-type-but-i-dont-know-why/1253768/4 "2023-09-07T14:00:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
