{"record":{"id":"01b33486531f141f","repo":"n8n-io/n8n","slug":"unsupported-value-type-typeof-value-at-row","errorCode":null,"errorMessage":"Unsupported value type \"${typeof value}\" at row ${rowIndex}, column ${colIndex}","messagePattern":"Unsupported value type \"(.+?)\" at row (.+?), column (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts","lineNumber":256,"sourceCode":"// ── Parsing core ────────────────────────────────────────────────────────────\n\nfunction validateCellValue(value: unknown, colIndex: number, rowIndex: number): CellValue {\n\tif (value === null || value === undefined || value === '') return null;\n\tif (typeof value === 'boolean') return value;\n\tif (typeof value === 'number') {\n\t\tif (!isFinite(value)) return null;\n\t\treturn value;\n\t}\n\tif (typeof value === 'string') {\n\t\tif (value.length > MAX_CELL_STRING_LENGTH) {\n\t\t\tthrow new Error(\n\t\t\t\t`Cell at row ${rowIndex}, column ${colIndex} exceeds max string length of ${MAX_CELL_STRING_LENGTH} characters`,\n\t\t\t);\n\t\t}\n\t\treturn value;\n\t}\n\t// Arrays and objects are not allowed in flat rows\n\tthrow new Error(\n\t\t`Unsupported value type \"${typeof value}\" at row ${rowIndex}, column ${colIndex}`,\n\t);\n}\n\nfunction hasDangerousKey(obj: Record<string, unknown>): string | undefined {\n\tfor (const key of Object.keys(obj)) {\n\t\tif (DANGEROUS_KEYS.has(key)) return key;\n\t}\n\treturn undefined;\n}\n\nfunction parseCsvTsv(\n\tcontent: string,\n\tformat: 'csv' | 'tsv',\n\toptions: { hasHeader: boolean; delimiter?: string },\n): { rawHeaders: string[]; allRows: string[][] } {\n\tconst delimiter = options.delimiter ?? (format === 'tsv' ? '\\t' : ',');\n","sourceCodeStart":238,"sourceCodeEnd":274,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts#L238-L274","documentation":"Error \"Unsupported value type \"${typeof value}\" at row ${rowIndex}, column ${colIndex}\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts:256 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-12T18:17:37.767Z"}