// guides · n8n error index

n8n binary data not found? Fix 'none was found' and 'no binary field', 25 tests

Why n8n says a node expects a binary file 'data' but none was found, or the item has no binary field: a wrong field name, Edit Fields or a Code node dropping the file, reading binary in Code, and Access to the file is not allowed. Exact messages and fixes from 25 real runs on n8n 2.43.7.

Updated 2026-10-19 · 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. Open the input of the failing node

    Click the node that shows the error, open its input and switch to the Binary tab. If there's no file there, the problem is earlier in the workflow. If there is one, note its field name (usually data).

  2. Match the field name

    Nodes that read files ask for an input binary field, data by default. If the file arrives under another name, n8n says The item has no binary field 'data'. Type the real name, such as file or attachment_0.

  3. Find the node that dropped the file

    Walk back one node at a time. In our tests Edit Fields dropped it unless Include Other Input Fields was on, and a Code node dropped it unless it returned binary: item.binary. Both still ran green.

  4. Read file content the right way in Code

    Use await this.helpers.getBinaryDataBuffer(0, 'data'). The data string on the item can be just a storage reference (filesystem-v2), so decoding it as base64 gives garbage.

  5. Check the allowed folder for files on disk

    If Read/Write Files from Disk says Access to the file is not allowed., put the file in ~/.n8n-files or set N8N_RESTRICT_FILE_ACCESS_TO to your folder, then run the node again.

Every binary data error we triggered

On 19 October 2026 we ran 25 workflows on n8n 2.43.7. Most download a small CSV with an HTTP Request node (Response Format: File), pass it through one node, then read it with Extract From File. Each row is one or two runs.

What we didWhat n8n showedFix
Code node made plain JSON items, then Extract From FileThis operation expects the node's input data to contain a binary file 'data', but none was found [item 0]The item never had a file. Only nodes that download or read files make binary data: HTTP Request with Response Format File, Read/Write Files from Disk, an email attachment, or Convert to File.
HTTP Request saved the file as file, Extract From File asked for dataThe item has no binary field 'data' [item 0], hint: Check that the parameter where you specified the input binary field name is correctPut the real name in Input Binary Field (here file). With that one change it read both CSV rows. Email nodes often call it attachment_0.
Edit Fields (Set) v3.5 between download and extract, defaultsEdit Fields output only {"source":"shop"}, the file was gone, then the same none was found errorTurn on Include Other Input Fields. With it on, the file came through and the extract worked.
Edit Fields v3.5, Include Other Input Fields on plus the Strip Binary Data optionFile dropped again, same errorLeave Strip Binary Data off if a later node needs the file.
Old Edit Fields v3.3, defaultsFile dropped, same errorOn v3.3 and older add the option Include Binary Data; that kept it in our run.
Code node returned { json: {...} } per itemCode ran fine, the next node had no file, same errorReturn the binary too: { json: {...}, binary: item.binary }. That one change fixed it.
Code node decoded binary.data.data as base64Got the string filesystem-v2 and garbage after decoding, not the CSVn8n keeps files on disk and leaves only a reference in the item. Read the content with await this.helpers.getBinaryDataBuffer(0, 'data'); that returned the full CSV text.
Code node asked getBinaryDataBuffer for a field that doesn't existThe execution failed with an empty error, {}, and no message, even inside try/catchCheck the names first: Object.keys($input.first().binary || {}) returned ["data"] in our run.
Read/Write Files from Disk, write to /tmp/... or read /tmp/...Access to the file is not allowed. on bothIn n8n 2.43.7 these nodes only reach ~/.n8n-files by default (the config default for N8N_RESTRICT_FILE_ACCESS_TO). Use that folder, or set N8N_RESTRICT_FILE_ACCESS_TO to your folder; both worked.
Read a file name that doesn't existNo file(s) found, No file matching the selector "..." foundCheck the path and that it's inside the allowed folder. In Docker it's the path inside the container.

The usual cause: a node in the middle dropped the file

Binary data travels on the item next to the JSON, under a field name, normally data. The download worked in every one of our failing runs. What broke it was the node between the download and the node that needed the file: Edit Fields with its default settings, or a Code node that built new items. Both ran green and only the next node failed. So when you see none was found, open the input of the failing node, check the Binary tab, and walk back one node at a time until you find where the file disappears.

In a Code node, keep the file explicitly:

// Code node (Run Once for All Items): change the JSON, keep the file
return $input.all().map(item => ({
  json: { ...item.json, checked: true },
  binary: item.binary,          // without this line the file is gone
}));

Reading a file inside a Code node

Don't decode binary.data.data yourself. With the default storage in n8n 2.x it isn't the file: in our run it was the text filesystem-v2, and the real file sat on disk. The helper returns the actual bytes:

// Code node: read the file's content as text
const buf = await this.helpers.getBinaryDataBuffer(0, 'data'); // item 0, field 'data'
return [{ json: { text: buf.toString('utf8') } }];

// Which binary fields does the item have?
return [{ json: { fields: Object.keys($input.first().binary || {}) } }];

Our item showed fileName: items.csv, mimeType: text/csv and fileSize: 27 B. To go the other way, from JSON rows to a file, use Convert to File: our two rows became one item with a data file named File.csv.

Files on disk: Access to the file is not allowed

Read/Write Files from Disk refused both a write and a read in /tmp. A write to ~/.n8n-files worked with no settings, and so did /tmp once we set N8N_RESTRICT_FILE_ACCESS_TO:

# Read/Write Files from Disk outside ~/.n8n-files (n8n 2.x)
N8N_RESTRICT_FILE_ACCESS_TO=/data/files          # several: /data/in;/data/out

# Docker: mount the folder too
volumes:
  - ./files:/home/node/.n8n-files

Good to know

What we didn't test

Set up fields with Edit Fields and the rest of your data vanished too? See n8n Edit Fields (Set) node not working (29 real runs).

FAQ

What does "This operation expects the node's input data to contain a binary file 'data', but none was found" mean in n8n?

The item reaching that node has no file at all. Either no earlier node made one (only downloads, file reads, email attachments and Convert to File do), or a node in between dropped it. In our tests Edit Fields with default settings and a Code node returning only json both dropped the file without an error of their own.

What does "The item has no binary field 'data'" mean?

The item has a file, but under a different name than the node expects. Open the input's Binary tab to see the real field name, for example file or attachment_0, and enter it in the node's Input Binary Field.

Why does n8n Edit Fields (Set) remove my binary data?

Edit Fields v3.4 and later keep the file only when Include Other Input Fields is on and Strip Binary Data is off. Older v3.3 needs the Include Binary Data option. With defaults, our file disappeared.

How do I read a binary file in an n8n Code node?

Use await this.helpers.getBinaryDataBuffer(itemIndex, 'data'), which returns a Buffer, then for example buf.toString('utf8'). Don't decode item.binary.data.data: in n8n 2.x it can be a reference such as filesystem-v2 instead of the file content.

Why does Read/Write Files from Disk say "Access to the file is not allowed"?

In n8n 2.43.7 the node can only use ~/.n8n-files by default. Move the file there or set N8N_RESTRICT_FILE_ACCESS_TO to the folders you need (separate several with ;). In Docker, mount that folder into the container too.

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.