{"record":{"id":"788b6c32bb1e5aa5","repo":"n8n-io/n8n","slug":"set-credential-field","errorCode":"SET_CREDENTIAL_FIELD","errorMessage":"${nodeRef} has a field named \"${assignment.name}\" which appears to be storing credentials. Use n8n's credential system instead.","messagePattern":"(.+?) has a field named \"(.+?)\" which appears to be storing credentials\\. Use n8n's credential system instead\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts","lineNumber":185,"sourceCode":"\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (assignment.value === undefined) {\n\t\t\t\tissues.push({\n\t\t\t\t\tcode: 'SET_INVALID_ASSIGNMENT',\n\t\t\t\t\tmessage: `${nodeRef} assignment at index ${index} is missing the \"value\" field.`,\n\t\t\t\t\tseverity: 'error',\n\t\t\t\t\tviolationLevel: 'major',\n\t\t\t\t\tnodeName: displayName,\n\t\t\t\t\tparameterPath: `${parameterPath}.value`,\n\t\t\t\t\toriginalName: origForWarning,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (isNonEmptyString(assignment.name) && isCredentialFieldName(assignment.name)) {\n\t\t\t\tissues.push({\n\t\t\t\t\tcode: 'SET_CREDENTIAL_FIELD',\n\t\t\t\t\tmessage: `${nodeRef} has a field named \"${assignment.name}\" which appears to be storing credentials. Use n8n's credential system instead.`,\n\t\t\t\t\tseverity: 'warning',\n\t\t\t\t\tnodeName: displayName,\n\t\t\t\t\toriginalName: origForWarning,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn issues;\n\t},\n};\n","sourceCodeStart":167,"sourceCodeEnd":197,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts#L167-L197","documentation":"Error \"${nodeRef} has a field named \"${assignment.name}\" which appears to be storing credentials. Use n8n's credential system instead.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/workflow-sdk/src/workflow-builder/plugins/validators/set-node-validator.ts:185 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"}