{"record":{"id":"660c8c99e7148096","repo":"n8n-io/n8n","slug":"delimiter-must-be-a-single-character","errorCode":null,"errorMessage":"Delimiter must be a single character","messagePattern":"Delimiter must be a single character","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts","lineNumber":276,"sourceCode":"\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\n\tif (delimiter.length !== 1) {\n\t\tthrow new Error('Delimiter must be a single character');\n\t}\n\n\tconst records = getCsvParse()(content, {\n\t\tdelimiter,\n\t\tcolumns: false,\n\t\tskip_empty_lines: true,\n\t\trelax_column_count: true,\n\t\ttrim: true,\n\t});\n\n\tif (records.length === 0) {\n\t\treturn { rawHeaders: [], allRows: [] };\n\t}\n\n\tlet rawHeaders: string[];\n\tlet dataRows: string[][];\n\n\tif (options.hasHeader) {","sourceCodeStart":258,"sourceCodeEnd":294,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts#L258-L294","documentation":"Error \"Delimiter must be a single character\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/parsers/structured-file-parser.ts:276 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"}