Comfy-Org / Comfy-Org/ComfyUI

Error using 'On Trigger' mode

Open
#704 12 comments 1 reaction 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

I'm trying to force one parallel chain of nodes to execute before another by using the 'On Trigger' mode to initiate the second chain after finishing the first one. All I'm doing is connecting 'OnExecuted' of the last node in the first chain to 'OnTrigger' of the first node in the second chain. At first, all goes well and the chains start executing in the desired order, but when it gets to the node with 'OnTrigger' it throws this:

```
!!! Exception during processing !!!
Traceback (most recent call last):
File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 135, in recursive_execute
input_data_all = get_input_data(inputs, class_def, unique_id, outputs, prompt, extra_data)
File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 26, in get_input_data
obj = outputs[input_unique_id][output_index]
IndexError: list index out of range
```

My actual workflow is way too complicated for this, but this here has the same problem:
![image](https://github.com/comfyanonymous/ComfyUI/assets/70019596/96c61084-79ed-44e5-a8fa-4714351f3862)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.