Comfy-Org/ComfyUI · error · ValueError
source_generation_id is required (connect the generation_id
Error message
source_generation_id is required (connect the generation_id output of a prior Luma Ray 3.2 node).
What it means
Raised by the Luma Ray 3.2 extend node (comfy_api_nodes/nodes_luma.py:1457) when source_generation_id is empty after stripping whitespace. The node continues a prior generation by id; without it there is nothing to extend, so it fails before building the request.
Source
Thrown at comfy_api_nodes/nodes_luma.py:1457
IO.String.Output(display_name="generation_id"),
],
hidden=[
IO.Hidden.auth_token_comfy_org,
IO.Hidden.api_key_comfy_org,
IO.Hidden.unique_id,
],
is_api_node=True,
price_badge=_BADGE_RAY32_VIDEO_5S,
)
@classmethod
async def execute(
cls, source_generation_id: str, direction: dict, prompt: str, resolution: str, seed: int
) -> IO.NodeOutput:
validate_string(prompt, strip_whitespace=False, min_length=1, max_length=6000)
gen_id = (source_generation_id or "").strip()
if not gen_id:
raise ValueError(
"source_generation_id is required (connect the generation_id output of a prior Luma Ray 3.2 node)."
)
video = Luma2VideoOptions(resolution=resolution, duration="5s")
ref = Luma2ImageRef(generation_id=gen_id)
if direction["direction"] == "Forward (continue after)":
video.start_frame = ref
if direction.get("loop"):
video.loop = True
else:
video.end_frame = ref
request = Luma2GenerationRequest(prompt=prompt, model="ray-3.2", type="video", video=video)
return await _ray32_generate(cls, request)
class LumaExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
return [View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Connect the generation_id output of the prior Luma Ray 3.2 node into source_generation_id.
- If typing an id manually, paste the complete id with no leading/trailing spaces.
- Note the id must come from a Ray 3.2 generation still retained upstream.
Defensive patterns
Strategy: validation
Validate before calling
if not (source_generation_id or "").strip():
raise ValueError("Connect a prior Ray 3.2 node's generation_id output") Prevention
- Always wire generation_id from the producing node instead of hand-typing ids.
- Treat an empty extend input as a queue-time graph bug, not a runtime retry case.
When it happens
Trigger: Executing the extend node with source_generation_id unconnected, an empty string, or whitespace-only input.
Common situations: User forgets to wire the generation_id output of the prior Ray 3.2 video node; hardcodes an id and pastes a blank; the upstream node was replaced and the edge lost.
Related errors
- Looping is only available with 5s duration on Ray 3.2.
- Provide at least one of start_frame / end_frame.
- Looping is not available when an end_frame is set.
- Connect at least 2 Luma Ray 3.2 Keyframe nodes (use Luma Ray
- Ray 3.2 supports at most 64 keyframes; got {len(items)}.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/c61cce4f913153be.
Report an issue: GitHub.