# Unexpected Could not trigger completion transition behavior in state tree 

**URL:** <https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142>\
**Category:** Programming & Scripting\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [May 28, 2026, 9:00am UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142 "2026-05-28T09:00:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 28, 2026, 9:00am UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/1 "2026-05-28T09:00:20Z")

</div>

Hello,

We have encountered rather inconsistent behavior regarding transitions in state trees. The behavior can be illustrated using a small example state tree in the following picture.

[Image Removed]

I would expect that the tree goes through states in the following order

- Root, Level\_1\_1
- Root, Level\_1\_2
- Root, Level\_1\_3, Level\_2\_1
- Root, Level\_1\_3, Level\_2\_2
- Root, Level\_1\_3, Level\_2\_3

And then the execution would loop inside the substrates of Level\_1\_3. However, the actual behavior is that after the Level\_2\_1 state finishes, the execution goes back to the Root state. In the Rewind debugger the reason is stated as “Could not trigger completion transition, jump back to root state”.

[Image Removed]

Is there a reason for this? It comes as a surprise to me.

If I remove the task from the State Level\_1\_3, so it wouldn’t have any tasks, the execution runs as expected.

Also if i change the order of the 1st level states and set Level\_1\_3 to be a first child of the Root state

[Image Removed]

the execution loops through Level\_2\_1, Level\_2\_2, Level\_2\_3 as I would expect. That makes the described behavior even more confusing.

I would appreciate a tip or comment regarding this behavior.

Cheers,

Matej

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 28, 2026, 9:00am UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/2 "2026-05-28T09:00:24Z")

</div>

**Steps to Reproduce**  
Create a state tree pictured in the description and execute it

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 28, 2026, 1:26pm UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/3 "2026-05-28T13:26:32Z")

</div>

Hello,

I have probably discovered the reason for behavior described earlier. It seems that when the State\_2\_1 state finishes also the State\_1\_3 also gets into succeeded status. The execution of the state tree then looks for transitions to execute. It searches for a first state that hasn’t the ETaskCompletionStatus::Running status.

The search starts from root and ends with the first state that is found. The code in StateTreeExecutionStatus.cpp is

```auto
for (int32 StateIndex = 0; StateIndex < CurrentFrame.ActiveStates.Num(); ++StateIndex)
{
	const FStateTreeStateHandle CurrentHandle = CurrentFrame.ActiveStates[StateIndex];
	const FCompactStateTreeState& State = CurrentStateTree->States[CurrentHandle.Index];
	const ETaskCompletionStatus StateTasksStatus = CurrentFrame.ActiveTasksStatus.GetStatus(State).GetCompletionStatus();
	if (StateTasksStatus != ETaskCompletionStatus::Running)
	{
		CurrentStatus = CastToRunStatus(StateTasksStatus);
		FrameIndexToStart = FrameIndex;
		StateIndexToStart = StateIndex;
		break;
	}
}

```

Naturally it finds the State\_1\_3 state which has no transitions defined and thus there is nothing to execute. Is there a way to circumvent this behavior? In our actual use case the State\_1\_3 state is important since it contains tasks that should be active during the duration of all substates.

Cheers,

Matej

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 29, 2026, 7:52am UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/4 "2026-05-29T07:52:49Z")

</div>

Hello again,

I am sorry about adding new pieces of information bit by bit instead of writing it all together. I am still looking into this problem and I suspect that the issue is the fact that the code getting the _StateTasksStatus_ returns _Succeeded_ for the Level\_1\_3 state. It contains only a DebugText task which never finishes and is never considered for state completion.

Moreover, it really seems to be depending on the actual form of the state tree. I have added a dummy state that is the parent state for the Level\_1\_3 state. Like this

[Image Removed]Now the _StateTaskStatus_ is **Running** for both Dummy and even Level\_1\_3. Is there any reason why adding Dummy state makes the execution work differently?

Matej

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![James.Keeling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James.Keeling](https://forums.unrealengine.com/u/James.Keeling)\
**Post date:** [June 12, 2026, 4:34pm UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/5 "2026-06-12T16:34:54Z")

</div>

Most certainly a bug! It is just not one we had stumbled onto ourselves. Our primary dev for StateTree is looking into it right now. I have created a JIRA bug report for it as well. It is live here on our public issue tracker: [https://issues.unrealengine.com/issue/UE-384337](https://issues.unrealengine.com/issue/UE-384337).

-James

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![GPBF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPBF](https://forums.unrealengine.com/u/GPBF)\
**Post date:** [November 13, 2026, 12:44pm UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/6 "2026-11-13T12:44:47Z")

</div>

Has this been fixed as of 5.8.4 because I am getting the same issue

---

<div class="post-metadata">

**Author:** ![GPBF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GPBF](https://forums.unrealengine.com/u/GPBF)\
**Post date:** [November 13, 2026, 10:55pm UTC](https://forums.unrealengine.com/t/unexpected-could-not-trigger-completion-transition-behavior-in-state-tree/2735142/7 "2026-11-13T22:55:08Z")

</div>

I see, it says fix in 6.0.

So fixing a serious bug that breaks state trees entirely will take 2 years and never be fixed in UE5?
