# CSV Writer bug? Doesn't accept drop folder variable?!

**URL:** <https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446>\
**Category:** KNIME Analytics Platform\
**Created:** [March 6, 2014, 12:25pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446 "2014-03-06T12:25:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SOH979](https://forum-cdn.knime.com/user_avatar/forum.knime.com/soh979/32/2277_2.png) [@SOH979](https://forum.knime.com/u/SOH979)\
**Post date:** [March 6, 2014, 12:25pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/1 "2014-03-06T12:25:53Z")

</div>

CSV Writer bug? Doesn't accept drop folder variable?!

Error message is:

Execute failed: Unable to create directory for specified output file: D:\knime\_2.9.0\file:\D:\KnimeWS\WFTest\CSV%20Writer%20(%2320)\drop

Looks like the file path is not constructed properly?

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [March 6, 2014, 1:51pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/2 "2014-03-06T13:51:13Z")

</div>

The flow variable for the drop folder is a URL and not a file path. Most writer nodes cannot write to URLs but only to files.

---

<div class="post-metadata">

**Author:** ![SOH979](https://forum-cdn.knime.com/user_avatar/forum.knime.com/soh979/32/2277_2.png) [@SOH979](https://forum.knime.com/u/SOH979)\
**Post date:** [March 12, 2014, 1:08pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/3 "2014-03-12T13:08:01Z")

</div>

So what is the best method to create a temp file for download - assuming the workflow might run via the web portal as well as running on the local PC?

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [March 12, 2014, 1:13pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/4 "2014-03-12T13:13:29Z")

</div>

If you want to create a temporary file, use the "Create Temp Dir" node. It outputs a path (not URL) to the temporary directory and you can also specify variables to files inside the temp directory in the dialog. Just make sure to not save the workflow with this node executed. Otherwise it will not create a new directory upon the next execution.

---

<div class="post-metadata">

**Author:** ![SOH979](https://forum-cdn.knime.com/user_avatar/forum.knime.com/soh979/32/2277_2.png) [@SOH979](https://forum.knime.com/u/SOH979)\
**Post date:** [March 12, 2014, 2:46pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/5 "2014-03-12T14:46:37Z")

</div>

OK, I will try out the Create Temp Dir node.

How does one handle the deletion of the tem directories and files?

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [March 12, 2014, 6:08pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/6 "2014-03-12T18:08:47Z")

</div>

They are deleted when (or shortly after) the workflow is closed.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:19pm UTC](https://forum.knime.com/t/csv-writer-bug-doesnt-accept-drop-folder-variable/3446/7 "2023-06-23T20:19:12Z")

</div>

Closed on June 23, 2023, 8:19pm UTC


