n8n-io/n8n · error
Attachment exceeds maximum size of 10.0 MB (got ${actualByte
Error message
Attachment exceeds maximum size of 10.0 MB (got ${actualBytes}) What it means
Error "Attachment exceeds maximum size of 10.0 MB (got ${actualBytes})" thrown in n8n-io/n8n.
Source
Thrown at packages/@n8n/instance-ai/src/tools/attachments/parse-file.tool.ts:141
return (
inputFormat ??
toOutputFormat(attachment && detectFormat(attachment.fileName, attachment.mimeType))
);
}
function emptyTabularFields() {
return {
columns: [],
rows: [],
totalRows: 0,
returnedRows: 0,
};
}
function extractPlainTextContent(attachment: AttachmentInfo) {
const decoded = Buffer.from(attachment.data, 'base64');
if (decoded.length > MAX_DECODED_SIZE_BYTES) {
throw new Error(formatSizeLimitMessage(decoded.length));
}
const content = decoded.toString('utf-8').trim();
if (!content) {
throw new Error(`"${attachment.fileName}" contains no extractable text.`);
}
if (content.length > MAX_RESULT_CHARS) {
return { content: content.slice(0, MAX_RESULT_CHARS), truncated: true };
}
return { content, truncated: false };
}
export function createParseFileTool(context: InstanceAiContext) {
return new Tool('parse-file')
.description(
'Parse parseable user attachments from the current message. ' +View on GitHub (pinned to 5ac6606e81)
When it happens
Trigger: Thrown at packages/@n8n/instance-ai/src/tools/attachments/parse-file.tool.ts:141 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/decc173ee8c7d8c0.
Report an issue: GitHub.