# Blueprint could not be loaded because it derives from an invalid class

**URL:** <https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, CPP, question, Blueprint\
**Created:** [September 27, 2014, 7:13pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732 "2014-09-27T19:13:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b204e58e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b204e58e1](https://forums.unrealengine.com/u/anonymous_user_b204e58e1)\
**Post date:** [September 27, 2014, 7:13pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/1 "2014-09-27T19:13:15Z")

</div>

I added a C++ class to my project via the File\>Add Code to Project menu. I made a Blueprint which derives from the new class, and everything works perfectly. Until I restart the editor. When I try to open the Blueprint after restarting the editor I get this message:

“_Blueprint could not be loaded because it derives from an invalid class. Check to make sure the parent class for this blueprint hasn’t been removed!_”

The Blueprint fails to open, and right clicking on the offending Blueprint in the content browser crashes the editor. Every time I delete the Blueprint and create it again from scratch it works fine until I restart the editor again. Does anyone know what’s going on?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b204e58e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b204e58e1](https://forums.unrealengine.com/u/anonymous_user_b204e58e1)\
**Post date:** [September 27, 2014, 10:23pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/2 "2014-09-27T22:23:22Z")

</div>

I made a new class and copy pasted all my code over. I still don’t know what happened but at least it works now. So this is solved then.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [September 27, 2014, 11:58pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/3 "2014-09-27T23:58:09Z")

</div>

Sounds that parent class or this class got corrupted

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [September 30, 2014, 8:26pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/4 "2014-09-30T20:26:31Z")

</div>

Hi TickleForce,

I just wanted to check in and make sure everything is working fine for you now. Do you still need any help with this issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b204e58e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b204e58e1](https://forums.unrealengine.com/u/anonymous_user_b204e58e1)\
**Post date:** [September 30, 2014, 8:43pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/5 "2014-09-30T20:43:18Z")

</div>

Yes it works fine now, thanks. I still don’t know what caused my class to become invalid when I restarted the editor, but creating a new class and copying the code over solved the problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4ec7776](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4ec7776](https://forums.unrealengine.com/u/anonymous_user_c4ec7776)\
**Post date:** [January 21, 2015, 1:10pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/6 "2015-01-21T13:10:14Z")

</div>

I have exactly the same problem (4.6.1). It would be nice to understand why it is happening and what triggers the problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [February 10, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/7 "2015-02-10T22:45:43Z")

</div>

Hi Gastel71,

Sorry for the delayed response. Do you still see this happening? Is it limited to one specific class?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4ec7776](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4ec7776](https://forums.unrealengine.com/u/anonymous_user_c4ec7776)\
**Post date:** [February 11, 2015, 10:10am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/8 "2015-02-11T10:10:08Z")

</div>

Hi ,

it happened to me twice, but I have no clue on how to reproduce the issue. Re-creating the blueprint from scratch solved the problem. It only happened on blueprints derived from c++ classes so my suggestion is to look for a “bug” related to how c++ objects are referenced when deriving a blueprint but I understand that finding a non-reproducible bug is almost impossible in an architecture as complex as UE4’s one.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [February 26, 2015, 11:06pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/9 "2015-02-26T23:06:07Z")

</div>

I will be keeping an eye out for this, but if you happen to see it again, please let us know.

---

<div class="post-metadata">

**Author:** ![GamingGioski](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaminggioski/32/493833_2.png) [@GamingGioski](https://forums.unrealengine.com/u/GamingGioski)\
**Post date:** [April 19, 2022, 11:59am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/10 "2022-04-19T11:59:11Z")

</div>

This is happening to me on UE5 and it already happened twice in a row.

---

<div class="post-metadata">

**Author:** ![unleashedcode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unleashedcode](https://forums.unrealengine.com/u/unleashedcode)\
**Post date:** [April 19, 2022, 7:33pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/11 "2022-04-19T19:33:45Z")

</div>

Blueprint could not be loaded because it derives from an invalid class. Check to make sure the parent class for this blueprint hasn’t been removed! Do you want to continue (it can crash the editor)?

This is happening nearly every time I start UE5… driving completely bonkers at this point…

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 19, 2022, 11:16pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/12 "2022-04-19T23:16:53Z")

</div>

This happens if the c++ class is renamed and you forget to add a Core Redirect, which is why the Blueprint system will not be able to find its parent.  
This situation is pretty much always explainable and simple to solve.

If it’s a Blueprint class complaining about its parent class which is also a Blueprint class, you might be dealing with some form of corruption. In that case, if the editor does not allow you to set a new class you could attempt to by using this tool:

> **[GitHub - PipeRift/BlueprintRetarget: An small tool that allows retargeting...](https://github.com/PipeRift/BlueprintRetarget)**
>
> An small tool that allows retargeting invalid blueprints when its parent class is missing on UE4 - GitHub - PipeRift/BlueprintRetarget: An small tool that allows retargeting invalid blueprints when...

---

<div class="post-metadata">

**Author:** ![L30\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@L30\_Games](https://forums.unrealengine.com/u/L30_Games)\
**Post date:** [April 25, 2022, 7:39am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/13 "2022-04-25T07:39:00Z")

</div>

Hi , I started using UE5 and EVERY TIME i close and re-open the project i have the same issue, all my blueprints derived from C++ classes can’t be opened. I looked for a solution on Google and the only thing once worked was renaming the class: from “CPP\_Character” to “CPP\_MySubject” , because they told me that UE5 let you use names already in use internally and when this happen the blueprints you create with that class, crash the next time you open the project again.

But this doesn’t seem to resolve the issue. I did this few times, sometimes works, sometimes not.

Since happens everytime to me, i can reproduce the bug for more info if you need.

---

<div class="post-metadata">

**Author:** ![bihar\_shooter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bihar\_shooter](https://forums.unrealengine.com/u/bihar_shooter)\
**Post date:** [April 30, 2022, 2:11pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/14 "2022-04-30T14:11:30Z")

</div>

It’s been happening to me for a while , I am using the latest 5.0.1 (was happening on 5.0.0 too , but didn’t happen on 4.27 versions) : (

---

<div class="post-metadata">

**Author:** ![bihar\_shooter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bihar\_shooter](https://forums.unrealengine.com/u/bihar_shooter)\
**Post date:** [April 30, 2022, 2:42pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/15 "2022-04-30T14:42:00Z")

</div>

Disabled Live Coding , all works fine now.

---

<div class="post-metadata">

**Author:** ![CrashKetchem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crashketchem/32/482371_2.png) [@CrashKetchem](https://forums.unrealengine.com/u/CrashKetchem)\
**Post date:** [May 6, 2022, 2:42am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/16 "2022-05-06T02:42:14Z")

</div>

This is most definitely happening to me.  
I can not help but think that this is an order of operations WRT the opening of the project.  
Can someone else outline the steps they are using to open the project up?  
I’m opening the .sln first and then opening the uproject.  
I’m not launching the editor through the debugger…

---

<div class="post-metadata">

**Author:** ![ShrapnelSquid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShrapnelSquid](https://forums.unrealengine.com/u/ShrapnelSquid)\
**Post date:** [July 11, 2022, 5:30pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/17 "2022-07-11T17:30:12Z")

</div>

I was having this issue as well. Project was working fine, then I closed it for the day and when I came back my blueprints that inherited C++ classes wouldn’t open with the same warning. After opening the project and few times and recompiling however, the error went away by itself – no changes necessary.

---

<div class="post-metadata">

**Author:** ![ShrapnelSquid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShrapnelSquid](https://forums.unrealengine.com/u/ShrapnelSquid)\
**Post date:** [July 11, 2022, 6:17pm UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/18 "2022-07-11T18:17:56Z")

</div>

Update to this: I kept having the issue every time I restarted the project. In addition, whenever I restarted the project all the values I had given in the editor for variables I exposed with the ‘Edit Anywhere’ attribute were reset. I fixed it all by disabling live coding in editor preferences.

If Live Coding was causing so many development-breaking bugs, it makes me wonder why it was enabled by default.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5f7b3538](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5f7b3538](https://forums.unrealengine.com/u/anonymous_user_5f7b3538)\
**Post date:** [July 22, 2022, 2:40am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/19 "2022-07-22T02:40:34Z")

</div>

I am in unreal 5.0.3 and having exact same issue. Everytime I restart my project my Blueprints inheriting from C++ classes become unassociated with the parents and when I search classes to add them back as the parent they dont show up.

---

<div class="post-metadata">

**Author:** ![WizardLumps](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WizardLumps](https://forums.unrealengine.com/u/WizardLumps)\
**Post date:** [July 22, 2022, 3:44am UTC](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/20 "2022-07-22T03:44:14Z")

</div>

I’m having the same issue. It’s clearly not resolved. I was able to get it to work by turning off Live Coding, closing Unreal, and then building in VS Code (I normally use Rider).

[Next page](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732.md?page=2)
