# Actor Archetype - Components check

**URL:** <https://forums.unrealengine.com/t/actor-archetype-components-check/1316417>\
**Category:** C++\
**Tags:** unreal-engine, editor, question, CPP\
**Created:** [September 29, 2023, 10:17am UTC](https://forums.unrealengine.com/t/actor-archetype-components-check/1316417 "2023-09-29T10:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arius](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arius/32/581497_2.png) [@Arius](https://forums.unrealengine.com/u/Arius)\
**Post date:** [September 29, 2023, 10:17am UTC](https://forums.unrealengine.com/t/actor-archetype-components-check/1316417/1 "2023-09-29T10:17:10Z")

</div>

OS:

| Distributor ID: | Ubuntu |
| --- | --- |
| Description: | Ubuntu 22.04.3 LTS |
| Release: | 22.04 |
| Codename: | jammy |

Engine:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/2/5b275cf66384e1169299fe4b1f8ddbca4904fc2c.png)

Rising up some of the log categories to ‘All’ gives unexpected results when I try to package a project, you can find more description below.

When I change log categories in `DefaultEngine.ini` to:

```auto
[Core.Log]
LogCheckComponents=All
LogCheckSubobjects=All

```

I receive project packaging errors:

```auto
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = SceneComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.DefaultSceneRoot, Archetype = SceneComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:DefaultSceneRoot_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = StaticMeshComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.Sphere, Archetype = StaticMeshComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:Sphere_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = SceneComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.DefaultSceneRoot, Archetype = SceneComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:DefaultSceneRoot_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = StaticMeshComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.Sphere, Archetype = StaticMeshComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:Sphere_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = SceneComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.DefaultSceneRoot, Archetype = SceneComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:DefaultSceneRoot_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = StaticMeshComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.Sphere, Archetype = StaticMeshComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:Sphere_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = SceneComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.DefaultSceneRoot, Archetype = SceneComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:DefaultSceneRoot_GEN_VARIABLE
LogCheckComponents: Error: SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = BP_SkySphere_C /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4, Component = StaticMeshComponent /Game/Maps/L_Main.L_Main:PersistentLevel.BP_SkySphere_C_4.Sphere, Archetype = StaticMeshComponent /Game/Environment/BP_SkySphere.BP_SkySphere_C:Sphere_GEN_VARIABLEThis text will be hidden

```

Also the same errors are met in the editor console:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/f/71f20a0131dbe0d73efc86083fc3125b9fd0e372.png)  
It seems that `AActor::CheckActorComponents() const` is producing such error inside the following checks scope:

```cpp
UObject* Archetype = Inner->GetArchetype();
if (Archetype != Inner->GetClass()->GetDefaultObject())
{
	if (Archetype != GetClass()->GetDefaultSubobjectByName(Inner->GetFName()))
	{
		UE_LOG(LogCheckComponents, Error, TEXT("SerializedComponent archetype is not the CDO nor a default subobject of my class. Me = %s, Component = %s, Archetype = %s"), *this->GetFullName(), *Inner->GetFullName(), *Archetype->GetFullName());
		bResult = false;
	}
}

```

Any suggestions how can I resolve this issue, and stay at necessary log level?, cause this happens with any `BP` with parent `Actor` class which I placed into the level.

---

<div class="post-metadata">

**Author:** ![Arius](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arius/32/581497_2.png) [@Arius](https://forums.unrealengine.com/u/Arius)\
**Post date:** [September 29, 2023, 2:01pm UTC](https://forums.unrealengine.com/t/actor-archetype-components-check/1316417/2 "2023-09-29T14:01:14Z")

</div>

It seems that this issue actually a bug, mentioned at [UE-184084](https://issues.unrealengine.com/issue/UE-184084)
