{"record":{"id":"952a6df09a94b9f6","repo":"conductor-oss/conductor","slug":"workflow-with-id-s-not-found","errorCode":null,"errorMessage":"Workflow with id: %s not found.","messagePattern":"Workflow with id: (.+?) not found\\.","errorType":"exception","errorClass":"NotFoundException","httpStatus":404,"severity":"error","filePath":"core/src/main/java/com/netflix/conductor/service/WorkflowServiceImpl.java","lineNumber":181,"sourceCode":"            List<Workflow> workflows =\n                    executionService.getWorkflowInstances(\n                            name, correlationId, includeClosed, includeTasks);\n            workflowMap.put(correlationId, workflows);\n        }\n        return workflowMap;\n    }\n\n    /**\n     * Gets the workflow by workflow id.\n     *\n     * @param workflowId id of the workflow.\n     * @param includeTasks Includes tasks associated with workflow.\n     * @return an instance of {@link Workflow}\n     */\n    public Workflow getExecutionStatus(String workflowId, boolean includeTasks) {\n        Workflow workflow = executionService.getExecutionStatus(workflowId, includeTasks);\n        if (workflow == null) {\n            throw new NotFoundException(\"Workflow with id: %s not found.\", workflowId);\n        }\n        return workflow;\n    }\n\n    @Override\n    public WorkflowModel getWorkflowModel(String workflowId, boolean includeTasks) {\n        return executionService.getWorkflowModel(workflowId, includeTasks);\n    }\n\n    /**\n     * Removes the workflow from the system.\n     *\n     * @param workflowId WorkflowID of the workflow you want to remove from system.\n     * @param archiveWorkflow Archives the workflow and associated tasks instead of removing them.\n     */\n    public void deleteWorkflow(String workflowId, boolean archiveWorkflow) {\n        executionService.removeWorkflow(workflowId, archiveWorkflow);\n    }","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/core/src/main/java/com/netflix/conductor/service/WorkflowServiceImpl.java#L163-L199","documentation":"Thrown by WorkflowServiceImpl.getExecutionStatus when executionService.getExecutionStatus returns null for a given workflowId. The workflow run instance does not exist (never created, or already removed/archived). Maps to HTTP 404.","triggerScenarios":"GET /api/workflow/{workflowId}?includeTasks=true where workflowId was never created, was deleted via deleteWorkflow, or has expired from the active store. Also from any internal call resolving a run by id.","commonSituations":"Stale workflow id from logs; workflow was archived or purged; TTL-based cleanup removed the run; wrong cluster; typo or truncated id; referencing a sub-workflow id that was never persisted.","solutions":["Search for the workflow via GET /api/workflow/search?query= to confirm existence or find the current id.","Check whether the workflow was deleted/archived in that environment.","Ensure the workflowId is a complete, untruncated UUID.","Point the client at the cluster where the workflow actually ran."],"exampleFix":"// before\nWorkflow wf = workflowService.getExecutionStatus(wfId, true); // 404 if missing\n\n// after\nWorkflow wf;\ntry {\n    wf = workflowService.getExecutionStatus(wfId, true);\n} catch (NotFoundException e) {\n    wf = workflowService.searchWorkflows(0, 1, null, null, \"workflowId:\" + wfId)\n            .getResults().stream().findFirst().orElse(null);\n}","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n    Workflow wf = workflowService.getExecutionStatus(workflowId, true);\n} catch (NotFoundException e) {\n    // run absent; search or inform caller\n}","preventionTips":["Validate workflowId format (UUID) before lookup","Search via /api/workflow/search when a direct lookup 404s","Avoid referencing purged/archived run ids"],"tags":["workflow","execution","not-found","conductor","java"],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}