Error During Project Build: Ensure Condition Failed in Unreal Engine 5's BTDecorator_BlueprintBase and BTFunctionLibrary

I’m getting this error every time I build my project, I didn’t get this error before today, does anyone know anything about it?

In Editor:
Error: Ensure condition failed: ObservedKeyNames.Num() > 0 [File:D:\build\++UE5\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\Decorators\BTDecorator_BlueprintBase.cpp] [Line: 68]

In Visual Studio:

[2024.05.31-08.34.47:726][645]LogScript: Error: D:\build\++UE5\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BTFunctionLibrary.cpp(41): Runtime Error: "ensureAsRuntimeWarning condition failed: (NodeOwner != nullptr) && (NodeOwner->GetClass()->HasAnyClassFlags(CLASS_CompiledFromBlueprint))"
[2024.05.31-08.34.47:726][645]LogScript: Error: Script Msg: ensureAsRuntimeWarning condition failed: (NodeOwner != nullptr) && (NodeOwner->GetClass()->HasAnyClassFlags(CLASS_CompiledFromBlueprint))
[2024.05.31-08.34.47:726][645]LogScript: Error: Script call stack:
    [Empty] (FFrame::GetScriptCallstack() called from native code)
[2024.05.31-08.34.47:726][645]LogScript: Error: D:\build\++UE5\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BTFunctionLibrary.cpp(44): Runtime Error: "ensureAsRuntimeWarning condition failed: OwnerComp != nullptr"
[2024.05.31-08.34.47:726][645]LogScript: Error: Script Msg: ensureAsRuntimeWarning condition failed: OwnerComp != nullptr
[2024.05.31-08.34.47:726][645]LogScript: Error: Script call stack:
    [Empty] (FFrame::GetScriptCallstack() called from native code)
[2024.05.31-08.34.47:726][645]LogScript: Error: D:\build\++UE5\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BTFunctionLibrary.cpp(52): Runtime Error: "ensureAsRuntimeWarning condition failed: BTComponent != nullptr"
[2024.05.31-08.34.47:726][645]LogScript: Error: Script Msg: ensureAsRuntimeWarning condition failed: BTComponent != nullptr
[2024.05.31-08.34.47:726][645]LogScript: Error: Script call stack:

The issue was I kept the BT Decorator abort on self without selecting any key

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.