# 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:** 7

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [October 16, 2025, 8:07pm UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895/7 "2025-10-16T20:07:58Z")

</div>

I explain the problem and suggest some solutions [here](https://forums.unrealengine.com/t/problems-spawning-sounds-attatched-to-a-component/2592331/3). Hope this helps others, as I spent days on issues from nested components and decided to figure out what was really going on.

Shoutout to @zero.soul for his proper long-term solution on initializing nested components.

---

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