{"record":{"id":"d011ef6a490b0a58","repo":"n8n-io/n8n","slug":"set-invalid-mode","errorCode":"SET_INVALID_MODE","errorMessage":"${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.","messagePattern":"(.+?) uses unsupported Set node 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\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts","lineNumber":87,"sourceCode":"\n\t\tconst params = node.config?.parameters;\n\n\t\tif (!isRecord(params)) {\n\t\t\treturn issues;\n\t\t}\n\n\t\t// Find the map key for this node (may be renamed from node.name)\n\t\tconst mapKey = findMapKey(graphNode, ctx);\n\t\tconst originalName = node.name;\n\t\tconst renamed = isAutoRenamed(mapKey, originalName);\n\t\tconst displayName = renamed ? mapKey : originalName;\n\t\tconst origForWarning = renamed ? originalName : undefined;\n\t\tconst nodeRef = formatNodeRef(displayName, origForWarning, node.type);\n\n\t\tconst mode = params.mode;\n\t\tif (mode !== undefined && (!isNonEmptyString(mode) || !SUPPORTED_MODES.has(mode))) {\n\t\t\tissues.push({\n\t\t\t\tcode: 'SET_INVALID_MODE',\n\t\t\t\tmessage:\n\t\t\t\t\t`${nodeRef} uses unsupported Set node mode \"${formatMode(mode)}\". ` +\n\t\t\t\t\t'Use \"manual\" for field mapping or \"raw\" for JSON output. ' +\n\t\t\t\t\t'To keep existing input fields while mapping fields, use mode: \"manual\" with includeOtherFields: true.',\n\t\t\t\tseverity: 'error',\n\t\t\t\tviolationLevel: 'major',\n\t\t\t\tnodeName: displayName,\n\t\t\t\tparameterPath: 'parameters.mode',\n\t\t\t\toriginalName: origForWarning,\n\t\t\t});\n\t\t}\n\n\t\tif (nodeVersion < MIN_ASSIGNMENT_VERSION) {\n\t\t\treturn issues;\n\t\t}\n\n\t\tconst assignments = params.assignments;\n\t\tif (assignments === undefined) {","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts#L69-L105","documentation":"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.","triggerScenarios":"Thrown at packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts:87 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"}