n8n-io/n8n · error
Unsupported format for "${attachment.fileName}" (${attachmen
Error message
Unsupported format for "${attachment.fileName}" (${attachment.mimeType}). Supported: csv, tsv, json, xlsx, text, markdown, html, pdf, docx What it means
Error "Unsupported format for "${attachment.fileName}" (${attachment.mimeType}). Supported: csv, tsv, json, xlsx, text, markdown, html, pdf, docx" thrown in n8n-io/n8n.
Source
Thrown at packages/@n8n/instance-ai/src/tools/attachments/parse-file.tool.ts:266
format,
...emptyTabularFields(),
content: extracted.text,
pages: extracted.pages,
truncated: extracted.truncated,
};
}
case 'docx': {
const extracted = await extractDocxText(attachment);
return {
...commonOutput,
format,
...emptyTabularFields(),
content: extracted.text,
truncated: extracted.truncated,
};
}
default:
throw new Error(
`Unsupported format for "${attachment.fileName}" (${attachment.mimeType}). Supported: csv, tsv, json, xlsx, text, markdown, html, pdf, docx`,
);
}
} catch (parseError) {
return {
attachmentIndex: input.attachmentIndex,
fileName: attachment.fileName,
mimeType: attachment.mimeType,
format: errorFormatFor(input.format, attachment),
...emptyTabularFields(),
truncated: false,
error: parseError instanceof Error ? parseError.message : 'Unknown parsing error',
};
}
})
.build();
}
View on GitHub (pinned to 5ac6606e81)
When it happens
Trigger: Thrown at packages/@n8n/instance-ai/src/tools/attachments/parse-file.tool.ts:266 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12).
Data as JSON: /api/errors/25a81f2c553d5a6e.
Report an issue: GitHub.