{"record":{"id":"5dad436d1313ae9e","repo":"n8n-io/n8n","slug":"workflow-source-file-not-found-normalizedfilepa","errorCode":null,"errorMessage":"Workflow source file not found: ${normalizedFilePath}","messagePattern":"Workflow source file not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/tools/workflows/workflow-file-bindings.ts","lineNumber":199,"sourceCode":"\nexport async function readWorkflowSourceFile(\n\tcontext: InstanceAiContext,\n\tfilePath: string,\n\tabortSignal?: AbortSignal,\n): Promise<{ source: string; sourceHash: string }> {\n\tif (!context.workspace) {\n\t\tthrow new Error('Runtime workspace is required for workflow source files.');\n\t}\n\n\tconst normalizedFilePath = normalizeWorkflowSourceFilePath(filePath);\n\tconst source = await readWorkspaceFile(context.workspace, normalizedFilePath, {\n\t\tlogger: context.logger,\n\t\tresourceLabel: 'Workflow source file',\n\t\tabortSignal,\n\t});\n\n\tif (source === null) {\n\t\tthrow new Error(`Workflow source file not found: ${normalizedFilePath}`);\n\t}\n\n\treturn { source, sourceHash: hashWorkflowSource(source) };\n}\n","sourceCodeStart":181,"sourceCodeEnd":204,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/tools/workflows/workflow-file-bindings.ts#L181-L204","documentation":"Error \"Workflow source file not found: ${normalizedFilePath}\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/tools/workflows/workflow-file-bindings.ts:199 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":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}