{"record":{"id":"fa213a0d7c691885","repo":"langchain-ai/langgraph","slug":"passthrough-value-must-be-replaced","errorCode":null,"errorMessage":"PASSTHROUGH value must be replaced","messagePattern":"PASSTHROUGH value must be replaced","errorType":"exception","errorClass":"InvalidUpdateError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/_write.py","lineNumber":119,"sourceCode":"            writes,\n        )\n        return input\n\n    @staticmethod\n    def do_write(\n        config: RunnableConfig,\n        writes: Sequence[ChannelWriteEntry | ChannelWriteTupleEntry | Send],\n        allow_passthrough: bool = True,\n    ) -> None:\n        # validate\n        for w in writes:\n            if isinstance(w, ChannelWriteEntry):\n                if w.channel == TASKS:\n                    raise InvalidUpdateError(\n                        \"Cannot write to the reserved channel TASKS\"\n                    )\n                if w.value is PASSTHROUGH and not allow_passthrough:\n                    raise InvalidUpdateError(\"PASSTHROUGH value must be replaced\")\n            if isinstance(w, ChannelWriteTupleEntry):\n                if w.value is PASSTHROUGH and not allow_passthrough:\n                    raise InvalidUpdateError(\"PASSTHROUGH value must be replaced\")\n        # if we want to persist writes found before hitting a ParentCommand\n        # can move this to a finally block\n        write: TYPE_SEND = config[CONF][CONFIG_KEY_SEND]\n        write(_assemble_writes(writes))\n\n    @staticmethod\n    def is_writer(runnable: Runnable) -> bool:\n        \"\"\"Used by PregelNode to distinguish between writers and other runnables.\"\"\"\n        return (\n            isinstance(runnable, ChannelWrite)\n            or getattr(runnable, \"_is_channel_writer\", MISSING) is not MISSING\n        )\n\n    @staticmethod\n    def get_static_writes(","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/_write.py#L101-L137","documentation":"Error \"PASSTHROUGH value must be replaced\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/_write.py:119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}