n8n-io/n8n · error

Workflow source file not found

Error message

Workflow source file not found: ${normalizedFilePath}

What it means

readWorkspaceSourceFile returned null from readWorkspaceFile, meaning the normalized path does not exist inside the runtime workspace — the workflow source file being bound (or refreshed after save) is missing, so its content and hash cannot be produced.

Solutions

  1. Verify the file path and that the file was written to the workspace before binding
  2. Re-create or re-save the workflow source file, then retry the binding operation
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/@n8n/instance-ai/src/tools/workflows/workflow-file-bindings.ts:199 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12). Data as JSON: /api/errors/5dad436d1313ae9e. Report an issue: GitHub.

Appendix: source

Thrown at packages/@n8n/instance-ai/src/tools/workflows/workflow-file-bindings.ts:199

export async function readWorkflowSourceFile(
	context: InstanceAiContext,
	filePath: string,
	abortSignal?: AbortSignal,
): Promise<{ source: string; sourceHash: string }> {
	if (!context.workspace) {
		throw new Error('Runtime workspace is required for workflow source files.');
	}

	const normalizedFilePath = normalizeWorkflowSourceFilePath(filePath);
	const source = await readWorkspaceFile(context.workspace, normalizedFilePath, {
		logger: context.logger,
		resourceLabel: 'Workflow source file',
		abortSignal,
	});

	if (source === null) {
		throw new Error(`Workflow source file not found: ${normalizedFilePath}`);
	}

	return { source, sourceHash: hashWorkflowSource(source) };
}

View on GitHub (pinned to 5ac6606e81)