{"record":{"id":"722c779066ad67de","repo":"n8n-io/n8n","slug":"wrong-kind-list-mode-value","errorCode":"WRONG_KIND_LIST_MODE_VALUE","errorMessage":"Parameter \"${prop.name}\": \"${raw}\" is not a valid list-mode value — list mode holds the opaque ID the picker returns. If \"${raw}\" is the resource's name or title, use mode 'name' with that value; or leave list mode empty (value '') for the user to pick at setup.","messagePattern":"Parameter \"(.+?)\": \"(.+?)\" is not a valid list-mode value — list mode holds the opaque ID the picker returns\\. If \"(.+?)\" is the resource's name or title, use mode 'name' with that value; or leave list mode empty \\(value ''\\) for the user to pick at setup\\.","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/tools/workflows/detect-wrong-kind-locator.ts","lineNumber":136,"sourceCode":"\tif (!nodeTypes) return [];\n\tconst warnings: ValidationWarning[] = [];\n\n\tfor (const node of json.nodes ?? []) {\n\t\tif (!node.type || node.disabled) continue;\n\t\tconst properties = nodeProperties(nodeTypes, node);\n\n\t\tfor (const prop of properties) {\n\t\t\tif (prop.type !== 'resourceLocator' || !Array.isArray(prop.modes)) continue;\n\t\t\tconst value = isRecord(node.parameters) ? node.parameters[prop.name] : undefined;\n\t\t\tif (!isRecord(value) || !('__rl' in value) || value.mode !== 'list') continue;\n\n\t\t\tconst raw = rawLocatorValue(value.value);\n\t\t\tif (!raw || raw.startsWith('=')) continue;\n\n\t\t\tif (!listModeValueLooksWrongKind(prop, raw)) continue;\n\n\t\t\twarnings.push({\n\t\t\t\tcode: 'WRONG_KIND_LIST_MODE_VALUE',\n\t\t\t\tnodeName: typeof node.name === 'string' ? node.name : undefined,\n\t\t\t\tmessage:\n\t\t\t\t\t`Parameter \"${prop.name}\": \"${raw}\" is not a valid list-mode value — list mode holds the opaque ID ` +\n\t\t\t\t\t`the picker returns. If \"${raw}\" is the resource's name or title, use mode 'name' with that value; ` +\n\t\t\t\t\t\"or leave list mode empty (value '') for the user to pick at setup.\",\n\t\t\t});\n\t\t}\n\t}\n\n\treturn warnings;\n}\n","sourceCodeStart":118,"sourceCodeEnd":148,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/tools/workflows/detect-wrong-kind-locator.ts#L118-L148","documentation":"Error \"Parameter \"${prop.name}\": \"${raw}\" is not a valid list-mode value — list mode holds the opaque ID the picker returns. If \"${raw}\" is the resource's name or title, use mode 'name' with that value; or leave list mode empty (value '') for the user to pick at setup.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/tools/workflows/detect-wrong-kind-locator.ts:136 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"}