# Problem in node ‘Read/Write Files from Disk‘

**URL:** <https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350>\
**Category:** Questions\
**Tags:** write-binary-file\
**Created:** [February 10, 2026, 5:43pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350 "2026-02-10T17:43:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anouar\_Hichri](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anouar_hichri/32/158489_2.png) [@Anouar\_Hichri](https://community.n8n.io/u/Anouar_Hichri)\
**Post date:** [February 10, 2026, 5:43pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/1 "2026-02-10T17:43:31Z")

</div>

## Describe the problem/error/question

i have a problem in using the node 'Read/write Files from disk

## Share the output returned by the last node

The file was created but its identity does not match and cannot be written.///  
{  
“errorMessage”: “The file was created but its identity does not match and cannot be written.”,  
“errorDetails”: {  
“rawErrorMessage”: [  
“The file was created but its identity does not match and cannot be written.”  
]  
},  
“n8nDetails”: {  
“nodeName”: “Read/Write Files from Disk”,  
“nodeType”: “n8n-nodes-base.readWriteFile”,  
“nodeVersion”: 1.1,  
“operation”: “write”,  
“itemIndex”: 0,  
“time”: “2/10/2026, 6:36:49 PM”,  
“n8nVersion”: “2.6.3 (Self Hosted)”,  
“binaryDataMode”: “filesystem”,  
“stackTrace”: [  
“NodeApiError: The file was created but its identity does not match and cannot be written.”,  
" at ExecuteContext.execute (C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-nodes-base\nodes\Files\ReadWriteFile\actions\write.operation.ts:130:10)“,  
" at ExecuteContext.execute (C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-nodes-base\nodes\Files\ReadWriteFile\ReadWriteFile.node.ts:69:17)”,  
" at WorkflowExecute.executeNode (C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-core\src\execution-engine\workflow-execute.ts:1069:8)“,  
" at WorkflowExecute.runNode (C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-core\src\execution-engine\workflow-execute.ts:1250:11)”,  
" at C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-core\src\execution-engine\workflow-execute.ts:1685:27",  
" at C:\Users\hichr\AppData\Local\nvm\v22.12.0\node\_modules\n8n\node\_modules\n8n-core\src\execution-engine\workflow-execute.ts:2328:11"  
]  
}  
}

version: 2.6.3  
running n8n via npm on windows 11

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [February 10, 2026, 5:49pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/2 "2026-02-10T17:49:09Z")

</div>

Hello @Anouar_Hichri,

> [@Anouar\_Hichri](#):
>
> The file was created but its identity does not match and cannot be written.///

> [@Anouar\_Hichri](#):
>
> running n8n via npm on windows 11

This issue has been discussed recently, and it appears to be a known problem with n8n installed via npm on Windows 11,

You can find more details here:

> [@Unable to read/write file in local system](http://community.n8n.io/t/unable-to-read-write-file-in-local-system/257185):
>
> When trying to write/read files on local machine drive - I am getting ‘The file has changed and cannot be written.’ error. What is the error message (if any)? The file has changed and cannot be written. Please share your workflow Share the output returned by the last node [{ “data”: “test” }] Information on your n8n setup n8n version: 2.4.6 Database (default: SQLite): SQLite n8n EXECUTIONS\_PROCESS setting (default: own, main): default: own, main Running n8n via (Docker, npm, n8n cloud,…

> [@Windows 11 (no Docker) — Read/Write Files from Disk: “file is not writable” / “identity does not match” (n8n v2.6.4)](http://community.n8n.io/t/windows-11-no-docker-read-write-files-from-disk-file-is-not-writable-identity-does-not-match-n8n-v2-6-4/262931/4):
>
> This is similar to: probably a Windows permissions issue confused , to save yourself the headache, just go with Docker installation..

For now, the safest approach is to install and run n8n using Docker.

---

<div class="post-metadata">

**Author:** ![Anshul\_Namdev](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anshul_namdev/32/178229_2.png) [@Anshul\_Namdev](https://community.n8n.io/u/Anshul_Namdev)\
**Post date:** [February 10, 2026, 5:50pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/3 "2026-02-10T17:50:44Z")

</div>

Hi @Anouar_Hichri Welcome!  
I think you are trying to write a file into a `N8N_RESTRICT_FILE_ACCESS_TO`, please consider reading this:

> **[Set default value for N8N\_RESTRICT\_FILE\_ACCESS\_TO - n8n v2.0 breaking changes |...](https://docs.n8n.io/2-0-breaking-changes/#set-default-value-for-n8n_restrict_file_access_to)**
>
> n8n v2.0 has been released, and with it came some important changes. This document highlights breaking changes and actions you should take to prepare for the transition. These updates improve security, simplify configuration, and remove legacy...

And @mohamed3nan said this is a known issue so reading the conversation provided by him might help.

---

<div class="post-metadata">

**Author:** ![Anouar\_Hichri](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anouar_hichri/32/158489_2.png) [@Anouar\_Hichri](https://community.n8n.io/u/Anouar_Hichri)\
**Post date:** [February 10, 2026, 5:50pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/4 "2026-02-10T17:50:51Z")

</div>

Thank you @mohamed3nan

---

<div class="post-metadata">

**Author:** ![Anouar\_Hichri](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anouar_hichri/32/158489_2.png) [@Anouar\_Hichri](https://community.n8n.io/u/Anouar_Hichri)\
**Post date:** [February 10, 2026, 5:56pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/5 "2026-02-10T17:56:17Z")

</div>

@Anshul_Namdev i have tried several solutions but none of them worked anyways thanks for replying guys

---

<div class="post-metadata">

**Author:** ![Touk](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/touk/32/158316_2.png) [@Touk](https://community.n8n.io/u/Touk)\
**Post date:** [February 10, 2026, 6:44pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/6 "2026-02-10T18:44:29Z")

</div>

Hi @Anouar_Hichri,

I had the same issue.

On Windows, the .env file is not always correctly loaded, and N8N\_RESTRICT\_FILE\_ACCESS\_TO may not be detected even if other variables are working.

As a temporary workaround, running n8n with Docker solved the problem for me. Environment variables were then correctly applied.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Anouar\_Hichri](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anouar_hichri/32/158489_2.png) [@Anouar\_Hichri](https://community.n8n.io/u/Anouar_Hichri)\
**Post date:** [February 11, 2026, 10:19am UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/7 "2026-02-11T10:19:50Z")

</div>

@Touk Thank you i will use Docker instead

---

<div class="post-metadata">

**Author:** ![Anouar\_Hichri](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anouar_hichri/32/158489_2.png) [@Anouar\_Hichri](https://community.n8n.io/u/Anouar_Hichri)\
**Post date:** [February 11, 2026, 1:25pm UTC](https://community.n8n.io/t/problem-in-node-read-write-files-from-disk/263350/8 "2026-02-11T13:25:37Z")

</div>

@Touk hey brother i tried docker instead but it still the same issue can you tell me how you solved the problem?
