// guides · n8n error index

n8n Compression node not working: zip, unzip, file_0 and invalid zip data, 42 runs

Fix the n8n Compression node: one zip per item instead of one zip, files lost to duplicate names, file_0 instead of data after unzip, "File extension not found", "Unsupported archive format", "invalid zip data", and .gz vs .tar.gz. 42 real runs on n8n 2.43.7.

Updated 2026-10-24 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. File Name is required, the extension is not

    Compress with File Name left empty did not even start: The 'Compression' node has issues: - Parameter "File Name" is required. A File Name without an extension is fine when you make the zip: export still came out as application/zip with the extension zip, and unzipping it later in n8n worked. The input JSON is kept on the item, but the original files are replaced by the archive: after zipping data and att, only the zip was left in data.

  2. Several files in one zip: list the binary fields

    To put two files of the same item into one zip, list their binary field names separated by commas. data, att (the spaces were trimmed) gave one a.zip with report.csv and note.txt. A name that is not on the item failed with The item has no binary field 'file' [item 0], and an item with only JSON failed with This operation expects the node's input data to contain a binary file 'data', but none was found [item 0]. See n8n binary data not found for where the file went.

  3. Three items gave three zips: aggregate them first

    The node works per item. Three items, each with one CSV in data, gave three separate a.zip files, one CSV in each, with a green run. The fix we ran: an Aggregate node with All Item Data and the option Include Binaries turned on. It gave ONE item with the binary fields data, data_1 and data_2. Compression with Binary Fields data,data_1,data_2 then made one zip with r1.csv, r2.csv and r3.csv. With only data in the list the zip held just r1.csv, still green. More on Aggregate: n8n Split Out, Aggregate and Summarize.

  4. Duplicate file names silently lose files

    Two binary fields that are both called file.csv gave a zip with ONE file.csv, holding the content of the last field. The same happened after Aggregate with two items that each had report.csv: one entry in the zip, green run, data gone. Give every file a unique name before you zip. A file with no file name at all went into the zip as an entry literally called undefined.

  5. After unzip the files are in file_0, not data

    Decompress put the files in file_0, file_1, file_2. So an Extract From File right after it, left on its default field data, failed with The item has no binary field 'data' [item 0]. Two fixes: set the Extract From File input field to file_0, or set Output Prefix to data on the Compression node. We ran the second one: the files came out as data0, data1, data2 (no underscore) and Extract From File reading data0 returned the CSV rows. CSV problems after that: n8n Extract From File (CSV) not working.

  6. All unzipped files stay in one item

    A zip with three files gave one item with file_0 to file_2, not three items, and two input zips gave two items with three files each. The node does not split files into items, so a node that should process each file sees only one item (splitting needs a Code node, which we did not run). Folder paths were dropped (notes/readme.txt came out as readme.txt), folder entries and __MACOSX entries were skipped, and an accented name like Résumé été.txt was kept. The input JSON stayed on the item.

  7. "File extension not found", "Unsupported archive format", "invalid zip data"

    Decompress decides the format from the file extension. A file named download, or one with no name, failed with File extension not found for binary data data: set a file name with the right extension first. .rar and .7z failed with Unsupported archive format ".rar" for binary data data and the note The Decompress operation supports the following formats: zip, gzip, tar, tar.gz and tgz. An uppercase ARCHIVE.ZIP worked. Random bytes, or an HTML error page saved as export.zip, failed with invalid zip data. That last one is what you get when an HTTP Request downloads a login or 403 page instead of the file: check the size and MIME type of what came back, see n8n HTTP Request node errors.

  8. gzip, tar and tar.gz: the name decides what happens

    Compress with gzip made one .gz per field: report.csv became report.csv.gz (application/gzip), and two fields came out as data and data1. A File Name of backup.gz still gave backup.csv.gz. Node v1 named it report.gzip in the field data0. Tar made a.tar (3.07 kB for two tiny files) and Tar (Gzip) made a.tar.gz (152 B). On the way back, report.csv.gz gave report.csv, but report.gz gave a guessed report.txt. A tar.gz archive named backup.gz was only gunzipped, into backup.tar (10.2 kB), not unpacked; named .tar.gz or .tgz it unpacked to a.txt and b.json.

  9. Green runs that did nothing

    An empty zip unzipped with success and no files at all, so the next node got an item with no binary. A zip inside a zip came out as inner.zip, still zipped: Decompress goes one level only, so add a second Compression node for the inner one (we did not run this). With On Error set to continue (regular output), a bad zip gave {"error":"invalid zip data"} and the file was gone from the item. Node v1 decompressed exactly like v1.1.

What we ran

On 24 October 2026 we ran 42 executions of the Compression node v1.1 (two on v1) on self-hosted n8n 2.43.7 with n8n execute: a Manual Trigger, a Code node with test files built with Python zipfile, gzip and tarfile, the Compression node and a Code node that read the real archive bytes with getBinaryDataBuffer. 31 runs succeeded and 11 failed. Every value below is copied from those runs.

SetupResult
Compress zip, File Name emptyNot started: Parameter "File Name" is required.
Compress zip, File Name export.zipexport.zip 140 B, input JSON kept
Compress zip, File Name exportexport, application/zip, extension zip
Zip of data, attOne a.zip with report.csv and note.txt (247 B)
Zip of field file (not on the item)Error The item has no binary field 'file' [item 0]
Zip of an item with JSON onlyError binary file 'data', but none was found [item 0]
3 items, one CSV each3 items, 3 separate a.zip files
Aggregate, All Item Data, Include Binaries1 item, binary data, data_1, data_2
Aggregate, then zip of dataZip with r1.csv only, green
Aggregate, then zip of data,data_1,data_2One zip with r1.csv, r2.csv, r3.csv (352 B)
Aggregate of 2 items both named report.csv, then zipZip with one report.csv
Zip of 2 fields both named file.csvZip with one file.csv, last content wins
Zip of a file with no file nameEntry named undefined
Gzip v1.1, one fieldreport.csv.gz 40 B, application/gzip
Gzip v1.1, two fieldsdata report.csv.gz, data1 note.txt.gz
Gzip v1.1, File Name backup.gzbackup.csv.gz
Gzip v1data0 report.gzip
Tar, two filesa.tar 3.07 kB, application/x-tar
Tar (Gzip), two filesa.tar.gz 152 B, application/gzip
Zip, then Decompressfile_0 report.csv, file_1 note.txt
Zip named export, then Decompressfile_0 report.csv
Decompress zip with a folder, __MACOSX and an accented namefile_0 to file_2: report.csv, readme.txt, Résumé été.txt
Decompress ARCHIVE.ZIPSame 3 files
Decompress download (no extension)Error File extension not found for binary data data
Decompress a file with no nameSame error
Decompress a.rarError Unsupported archive format ".rar"
Decompress a.7zError Unsupported archive format ".7z"
Decompress random bytes as a.zipError invalid zip data
Decompress an HTML page saved as export.zipError invalid zip data
Decompress report.csv.gzfile_0 report.csv (text/csv)
Decompress report.gzfile_0 report.txt (text/plain)
Decompress b.tar.gza.txt and b.json
Decompress b.tgza.txt and b.json
Decompress a tar.gz named backup.gzbackup.tar 10.2 kB, not unpacked
Decompress, then Extract From File on dataError The item has no binary field 'data' [item 0]
Decompress with Output Prefix data, then Extract on data0CSV rows returned
Decompress field attachment_0 (not on the item)Error The item has no binary field 'attachment_0' [item 0]
Decompress an empty zipSuccess, no binary
Decompress a zip inside a zipfile_0 inner.zip, still zipped
Decompress 2 items with a zip each2 items, 3 files each
Decompress a bad zip, On Error continue{"error":"invalid zip data"}, file gone
Decompress on node v1Same as v1.1

Quick checklist

Good to know

What we didn't test

FAQ

How do I zip multiple items into one zip file in n8n?

The Compression node makes one zip per item. Aggregate the items first with All Item Data and Include Binaries, then list every binary field (data,data_1,data_2) in the Compression node. In our run that gave one zip with all three files.

Why is there no binary field data after unzip in n8n?

Decompress outputs the files as file_0, file_1 and so on. Point the next node to file_0, or set Output Prefix to data to get data0, data1.

What does "File extension not found for binary data data" mean in n8n?

Decompress picks the format from the file name, and the file had no extension. Give it a name ending in .zip, .gz, .tar, .tar.gz or .tgz first.

Can n8n unzip .rar or .7z files?

No. The Compression node failed with Unsupported archive format and lists zip, gzip, tar, tar.gz and tgz as the supported formats.

Why do I get "invalid zip data" in n8n?

The file is not a real zip. In our runs random bytes and an HTML page saved as export.zip both gave this error; it usually means an HTTP Request saved an error or login page.

Why are files missing from my n8n zip?

Two files had the same name, so only one entry was kept, with the last content. Or only data was listed in Binary Fields. Rename the files and list every field.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.