{"record":{"id":"850a22418e170da4","repo":"langflow-ai/langflow","slug":"flow-flow-id-str-not-found","errorCode":null,"errorMessage":"Flow {flow_id_str} not found","messagePattern":"Flow (.+?) not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":1194,"sourceCode":"    else:\n        try:\n            # Get the flow that matches the flow_id and belongs to the user\n            # flow = session.query(Flow).filter(Flow.id == flow_id).filter(Flow.user_id == api_key_user.id).first()\n            stmt = select(Flow).where(Flow.id == flow.id).where(Flow.user_id == api_key_user.id)\n            flow = (await session.exec(stmt)).first()\n        except sa.exc.StatementError as exc:\n            # StatementError('(builtins.ValueError) badly formed hexadecimal UUID string')\n            if \"badly formed hexadecimal UUID string\" in str(exc):\n                await logger.aerror(f\"Flow ID {flow_id_str} is not a valid UUID\")\n                # This means the Flow ID is not a valid UUID which means it can't find the flow\n                raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=str(exc)) from exc\n            raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(exc)) from exc\n        except Exception as exc:\n            raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(exc)) from exc\n\n        if flow is None:\n            msg = f\"Flow {flow_id_str} not found\"\n            raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=msg)\n\n        if flow.data is None:\n            msg = f\"Flow {flow_id_str} has no data\"\n            raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=msg)\n        try:\n            graph_data = flow.data\n            graph_data = process_tweaks(graph_data, tweaks or {})\n            raise_if_hitl_unsupported(graph_data)\n            graph = Graph.from_payload(graph_data, flow_id=flow_id_str)\n        except CustomComponentValidationError as exc:\n            raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(exc)) from exc\n        except HTTPException:\n            raise\n        except Exception as exc:\n            raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(exc)) from exc\n\n    try:\n        task_result, session_id = await run_graph_internal(","sourceCodeStart":1176,"sourceCodeEnd":1212,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L1176-L1212","documentation":"Error \"Flow {flow_id_str} not found\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when the flow_id parsed from the request does not correspond to any flow row in the database.","commonSituations":"See trigger scenarios.","solutions":["Verify the flow id is correct and the flow still exists.","Check that the authenticated user has access to the flow."],"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-15T22:17:37.221Z"}