{"record":{"id":"3267c3336d6a63cc","repo":"langflow-ai/langflow","slug":"if-you-pass-an-input-value-to-the-text-input-you","errorCode":null,"errorMessage":"If you pass an input_value to the text input, you cannot pass a tweak with the same name.","messagePattern":"If you pass an input_value to the text input, you cannot pass a tweak with the same name\\.","errorType":"exception","errorClass":"InvalidChatInputError","httpStatus":400,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":229,"sourceCode":"\n        input_value = value.get(\"input_value\")\n        if input_value is None:\n            continue\n\n        request_has_input = input_request.input_value is not None\n\n        if any(chat_key in key for chat_key in (\"ChatInput\", \"Chat Input\")):\n            if request_has_input and input_request.input_type == \"chat\":\n                msg = \"If you pass an input_value to the chat input, you cannot pass a tweak with the same name.\"\n                raise InvalidChatInputError(msg)\n\n        elif (\n            any(text_key in key for text_key in (\"TextInput\", \"Text Input\"))\n            and request_has_input\n            and input_request.input_type == \"text\"\n        ):\n            msg = \"If you pass an input_value to the text input, you cannot pass a tweak with the same name.\"\n            raise InvalidChatInputError(msg)\n\n\nasync def simple_run_flow(\n    flow: Flow,\n    input_request: SimplifiedAPIRequest,\n    *,\n    stream: bool = False,\n    api_key_user: User | None = None,\n    event_manager: EventManager | None = None,\n    context: dict | None = None,\n    run_id: str | None = None,\n):\n    validate_input_and_tweaks(input_request)\n    try:\n        task_result: list[RunOutputs] = []\n        user_id = api_key_user.id if api_key_user else None\n        flow_id_str = str(flow.id)\n        if flow.data is None:","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L211-L247","documentation":"Error \"If you pass an input_value to the text input, you cannot pass a tweak with the same name.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when a caller passes both an input_value for a text input and a tweak with the same input name in the same /run request, creating an ambiguous override.","commonSituations":"See trigger scenarios.","solutions":["Remove the tweak that shares the same name as the text input, or drop input_value and pass the value only via tweaks."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}