# Template mismatch during attachment. Attaching instanced component to template component

**URL:** <https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895>\
**Category:** C++\
**Tags:** Debugging, unreal-engine, CPP, Blueprint, question, UE4-27\
**Created:** [September 5, 2022, 1:05pm UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895 "2022-09-05T13:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MIkasa1009](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikasa1009/32/471575_2.png) [@MIkasa1009](https://forums.unrealengine.com/u/MIkasa1009)\
**Post date:** [May 29, 2023, 9:32am UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895/2 "2023-05-29T09:32:05Z")

</div>

> [@Error: Template Mismatch during attachment. Attaching instanced component to template component](https://forums.unrealengine.com/t/error-template-mismatch-during-attachment-attaching-instanced-component-to-template-component/426596/3):
>
> I ran into the same problem because I changed the dependencies of the components in the C++ code. This was not a problem with the code, but because the UE4 engine did not properly reload all inherited blueprint classes. You can fix this by manually reloading the faulty blueprint classes

---

_[View the full topic](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895)._
