# Failed to get template for class

**URL:** <https://forums.unrealengine.com/t/failed-to-get-template-for-class/1201335>\
**Category:** Blueprint\
**Tags:** packaging-and-cookin, unreal-engine, Packaging, packaging-projects, package-error, question\
**Created:** [June 16, 2023, 3:02pm UTC](https://forums.unrealengine.com/t/failed-to-get-template-for-class/1201335 "2023-06-16T15:02:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JendiaStudios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JendiaStudios](https://forums.unrealengine.com/u/JendiaStudios)\
**Post date:** [February 3, 2025, 5:04pm UTC](https://forums.unrealengine.com/t/failed-to-get-template-for-class/1201335/2 "2025-02-03T17:04:47Z")

</div>

We’ve come across the same error. A thread for a similar error pointed out issues with circular logic, but we’ve packaged before without getting this error and the only difference we’ve made is adding Print String debug nodes.

> [@Unable to Open Unreal: "Assertion failed: Template..."](https://forums.unrealengine.com/t/unable-to-open-unreal-assertion-failed-template/384221):
>
> Working in 4.13, I am getting a crash that leaves me unable to open my project on the next time I go to open it (it works fine until I close it, but will corrupt with next open). This seems to happen anytime I have an actor or component reference one of my enemies and need to select the class from a dropdown menu. So creating a node (even without connecting it) for SpawnAIFromClass, or GetAllActorsOfClass, or having an Actor reference as a property in a bp will all cause the project to crash on …

At some point, our error started crashing Unreal any time we would try to open a Blueprint. Then it stopped and now the error is seen only during cooking/packaging.

Any help is appreciated!

---

_[View the full topic](https://forums.unrealengine.com/t/failed-to-get-template-for-class/1201335)._
