n8n-io/n8n · error

SET_INVALID_MODE

SET_INVALID_MODE

Error message

${nodeRef} uses unsupported Set node mode "${formatMode(mode)}". Use "manual" for field mapping or "raw" for JSON output. To keep existing input fields while mapping fields, use mode: "manual" with includeOtherFields: true.

What it means

Error "${nodeRef} uses unsupported Set node mode "${formatMode(mode)}". Use "manual" for field mapping or "raw" for JSON output. To keep existing input fields while mapping fields, use mode: "manual" with includeOtherFields: true." thrown in n8n-io/n8n.

Source

Thrown at packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts:87

		const params = node.config?.parameters;

		if (!isRecord(params)) {
			return issues;
		}

		// Find the map key for this node (may be renamed from node.name)
		const mapKey = findMapKey(graphNode, ctx);
		const originalName = node.name;
		const renamed = isAutoRenamed(mapKey, originalName);
		const displayName = renamed ? mapKey : originalName;
		const origForWarning = renamed ? originalName : undefined;
		const nodeRef = formatNodeRef(displayName, origForWarning, node.type);

		const mode = params.mode;
		if (mode !== undefined && (!isNonEmptyString(mode) || !SUPPORTED_MODES.has(mode))) {
			issues.push({
				code: 'SET_INVALID_MODE',
				message:
					`${nodeRef} uses unsupported Set node mode "${formatMode(mode)}". ` +
					'Use "manual" for field mapping or "raw" for JSON output. ' +
					'To keep existing input fields while mapping fields, use mode: "manual" with includeOtherFields: true.',
				severity: 'error',
				violationLevel: 'major',
				nodeName: displayName,
				parameterPath: 'parameters.mode',
				originalName: origForWarning,
			});
		}

		if (nodeVersion < MIN_ASSIGNMENT_VERSION) {
			return issues;
		}

		const assignments = params.assignments;
		if (assignments === undefined) {

View on GitHub (pinned to 5ac6606e81)

When it happens

Trigger: Thrown at packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts:87 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/d011ef6a490b0a58. Report an issue: GitHub.