{"record":{"id":"9fa7a659547e7cc9","repo":"kestra-io/kestra","slug":"unable-to-find-flow-with-revision-on-ex","errorCode":null,"errorMessage":"Unable to find flow '{}.{}' with revision {} on execution {}","messagePattern":"Unable to find flow '(.+?)\\.(.+?)' with revision (.+?) on execution (.+?)","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/io/kestra/core/repositories/FlowRepositoryInterface.java","lineNumber":61,"sourceCode":"            .flatMap(Collection::stream)\n            .toList();\n        return namespaces.stream().anyMatch(ns -> ns.equals(namespace) || ns.startsWith(namespace));\n    }\n\n    /**\n     * Used only if result is used internally and not exposed to the user.\n     * It is useful when we want to restart/resume a flow.\n     */\n    default FlowWithSource findByExecutionWithoutAcl(Execution execution) {\n        Optional<FlowWithSource> find = this.findByIdWithSourceWithoutAcl(\n            execution.getTenantId(),\n            execution.getNamespace(),\n            execution.getFlowId(),\n            Optional.ofNullable(execution.getFlowRevision())\n        );\n\n        if (find.isEmpty()) {\n            throw new IllegalStateException(\n                \"Unable to find flow '\" + execution.getNamespace() + \".\" +\n                    execution.getFlowId() + \"' with revision \" + execution.getFlowRevision() + \" on execution \" +\n                    execution.getId()\n            );\n        } else {\n            return find.get();\n        }\n    }\n\n    default Flow findByExecution(Execution execution) {\n        Optional<Flow> find = this.findById(\n            execution.getTenantId(),\n            execution.getNamespace(),\n            execution.getFlowId(),\n            Optional.ofNullable(execution.getFlowRevision())\n        );\n\n        if (find.isEmpty()) {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/kestra-io/kestra/blob/823fada9274c4f9c251ea0a516460a4f7d958032/core/src/main/java/io/kestra/core/repositories/FlowRepositoryInterface.java#L43-L79","documentation":"Error \"Unable to find flow '{}.{}' with revision {} on execution {}\" thrown in kestra-io/kestra.","triggerScenarios":"Thrown at core/src/main/java/io/kestra/core/repositories/FlowRepositoryInterface.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the namespace and flow id in the message exist, and that the requested revision is a valid revision of that flow.","Omit the revision to use the latest revision, or correct the revision number to one that exists."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"823fada9274c4f9c251ea0a516460a4f7d958032","analyzedAt":"2026-08-14T06:15:17.947Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}