# Unknown Error when Appending CSV File

**URL:** <https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505>\
**Category:** General\
**Created:** [10 February 2020 15:34 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505 "2020-02-10T15:34:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KBleth](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@KBleth](https://discourse.nodered.org/u/KBleth)\
**Post date:** [10 February 2020 15:34 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/1 "2020-02-10T15:34:13Z")

</div>

Any help with this would be appreciated!

I have created a flow that connects to a maintenance sensor and receives data through a wireless gateway node. I had no issue creating a CSV node that pulled the individual variables from the sensor and appending them to a CSV file. After leaving for the weekend, I returned and was met with about 10% of the data I anticipated, along with the following errors:  
"failed to append to file: Error: UNKNOWN: unknown error, write"  
"failed to append to file: Error [ERR\_STREAM\_DESTROYED]: Cannot call write after a stream was destroyed"

I can not find anything on this anywhere and am not sure what to change or which stetting should be altered to work around this.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 February 2020 15:52 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/2 "2020-02-10T15:52:25Z")

</div>

Is the csv file on the same machine as node-red or is remote? If local is it on a built in disk or a removable device?  
What OS are you running under?

---

<div class="post-metadata">

**Author:** ![KBleth](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@KBleth](https://discourse.nodered.org/u/KBleth)\
**Post date:** [10 February 2020 16:00 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/3 "2020-02-10T16:00:10Z")

</div>

I am running on Windows 10. The csv file that I encountered the initial error was remote, but I have since received the same error running the csv node on both a local file and the remote file. The local file is running on the built in disk as well.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 February 2020 16:02 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/4 "2020-02-10T16:02:37Z")

</div>

Sorry, can't help with a Windows issue. Hopefully someone with Windows knowledge will help.

---

<div class="post-metadata">

**Author:** ![KBleth](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@KBleth](https://discourse.nodered.org/u/KBleth)\
**Post date:** [10 February 2020 16:03 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/5 "2020-02-10T16:03:06Z")

</div>

Thanks for the input anyway. Much appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 April 2020 16:03 UTC](https://discourse.nodered.org/t/unknown-error-when-appending-csv-file/21505/6 "2020-04-10T16:03:09Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
