langchain-ai/langgraph · error · InvalidUpdateError
At key ' ': EphemeralValue(guard=True) can receive only one…
Error message
At key '{self.key}': EphemeralValue(guard=True) can receive only one value per step. Use guard=False if you want to store any one of multiple values. What it means
EphemeralValue with guard=True only accepts exactly one value per super-step; receiving multiple values for the same key means concurrent writers and an ambiguous ephemeral result, so InvalidUpdateError is raised (guard=False would instead keep one of the values).
Solutions
- Ensure only one node writes that key per step, or route fan-out results through a reducer channel.
- Declare the key with guard=False (e.g. Annotated[T, EphemeralValue(T, guard=False)]) if last-value-wins is acceptable.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at libs/langgraph/langgraph/channels/ephemeral_value.py:63 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/95178c2466205b78.
Report an issue: GitHub.
Appendix: source
Thrown at libs/langgraph/langgraph/channels/ephemeral_value.py:63
empty.value = self.value
return empty
def from_checkpoint(self, checkpoint: Value) -> Self:
empty = self.__class__(self.typ, self.guard)
empty.key = self.key
if checkpoint is not MISSING:
empty.value = checkpoint
return empty
def update(self, values: Sequence[Value]) -> bool:
if len(values) == 0:
if self.value is not MISSING:
self.value = MISSING
return True
else:
return False
if len(values) != 1 and self.guard:
raise InvalidUpdateError(
f"At key '{self.key}': EphemeralValue(guard=True) can receive only one value per step. Use guard=False if you want to store any one of multiple values."
)
self.value = values[-1]
return True
def get(self) -> Value:
if self.value is MISSING:
raise EmptyChannelError()
return self.value
def is_available(self) -> bool:
return self.value is not MISSING
def checkpoint(self) -> Value:
return self.value
View on GitHub (pinned to 38031739e5)