n8n-io/n8n · error

Workflow source file not found: ${normalizedFilePath}

Error message

Workflow source file not found: ${normalizedFilePath}

What it means

Error "Workflow source file not found: ${normalizedFilePath}" thrown in n8n-io/n8n.

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)

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.