# Transfer Files (table) Bug

**URL:** <https://forum.knime.com/t/transfer-files-table-bug/67184>\
**Category:** KNIME Analytics Platform\
**Created:** [May 18, 2023, 9:47am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184 "2023-05-18T09:47:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeatherPikairos](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@HeatherPikairos](https://forum.knime.com/u/HeatherPikairos)\
**Post date:** [May 18, 2023, 9:47am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/1 "2023-05-18T09:47:18Z")

</div>

Hello everyone 🙂

I’m trying to transfer a list of KNIME workflows from their original destinations in a KNIME workspace into one folder in the workspace using the -Transfer Files (table)- node, however it fails on execution.

![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/7/e76ccc3de0ad3796609327439a3bae463a880ba6.png)

When I check the destination folder, I can see that all the sub folders of the workflow and their files get transferred but the files within the root directory eg. “workflow.svg” do not.

Workflow can be found here:

> **[20230516 Pikairos Transfer Files Bug – heatherpikairos](https://hub.knime.com/heatherpikairos/spaces/Public/latest/Forum%20Questions/20230516%20Pikairos%20Transfer%20Files%20Bug~PFzJi9mmruKkwFZa)**
>
> Transfer a list of KNIME Workflows from their locations in the KNIME workspace into a new folder in the KNIME workspace

Any suggestions to overcome this issue? Perhaps its a bug?

Thanks a lot,  
Heather

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 18, 2023, 10:59am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/2 "2023-05-18T10:59:32Z")

</div>

@HeatherPikairos could it be an option to zip the workflows, copy the zip file and unzip them? Like this:

> [@Copy/Move Files Node](https://forum.knime.com/t/copy-move-files-node/29412/15):
>
> @zedleb I created and example where the KNIME workflow (or workflow group) is being zipped into a file with a current timestamp. And can later be restored to a (separate) folder. [image] This restore can either be automated also or you could do it manually if you need it. [image] Please note you will have to configure the Path variables and workflow names to your needs. I use local paths that will be created dynamically.

---

<div class="post-metadata">

**Author:** ![HeatherPikairos](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@HeatherPikairos](https://forum.knime.com/u/HeatherPikairos)\
**Post date:** [May 18, 2023, 11:48am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/3 "2023-05-18T11:48:28Z")

</div>

Hi @mlauber71

Thanks for your suggestion 🙂 We thought about this as well and it does work!

However, the Transfer Files node is not working as expected, so it would be good if it can be fixed. Maybe somebody from the KNIME team can comment?

Best wishes  
Heather

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 18, 2023, 12:09pm UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/4 "2023-05-18T12:09:47Z")

</div>

@HeatherPikairos glad it does work with ZIP. Maybe you could construct a full example so it would be possible to test and inspect the problem.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 18, 2023, 8:18pm UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/5 "2023-05-18T20:18:53Z")

</div>

@HeatherPikairos OK I think I know what is going on. The Transfer Files node would not copy the whole structure but would try to put all the single files into the same (top) traget folder - which will result in unwanted structures.

To solve this one would have to use absolute paths (otherwise the List/Files node would ‘recognize’ the workflows and not include them and their files it seems) to scan all files and folders and then replace the original (source) path part with the target path part …

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/5/d5fcb92ee90460260eb57d6769db725da4e89864.jpeg)

… and tell the Transfer node to use the individual target location:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/c/2c4eeceda8a66c7372f31ad3d27ab9c7369b0dca.jpeg)

Not sure if this is somewhat over-engineered 🙂 but it should work. You might have to refresh the KNIME Explorer once it ran.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/3/f33adf830380b25131af2f0919bb7612f3a49c24.png)

> **[How to transfer a whole structure of workflows from one path to another –...](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_transfer_workflows/kn_example_transfer_workflows~B8L3dwKse5ro3lw7)**
>
> How to transfer a whole structure of workflows from one path to another The other option would be to ZIP the workflows and un-zip them

[kn\_example\_transfer\_workflows.knar](https://forum.knime.com/uploads/short-url/onqHJ2XWbYNt08gx1wafMmqFfxu.knar) (118.9 KB)

---

<div class="post-metadata">

**Author:** ![HeatherPikairos](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@HeatherPikairos](https://forum.knime.com/u/HeatherPikairos)\
**Post date:** [May 19, 2023, 7:52am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/6 "2023-05-19T07:52:51Z")

</div>

Thanks @mlauber71 for working hard on this solution, its much appreciated. Also, sorry for not getting back to you yesterday with a more detailed workflow.

I’m going to take a look at your workflow now 🙂

Thanks again  
Heather

---

<div class="post-metadata">

**Author:** ![HeatherPikairos](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/a88e4f/32.png) [@HeatherPikairos](https://forum.knime.com/u/HeatherPikairos)\
**Post date:** [May 19, 2023, 8:31am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/7 "2023-05-19T08:31:24Z")

</div>

Hi again @mlauber71, I’ve looked at the solution and it works 🙂 So thank you very much for both of your suggestions (zipping and using the List Files/Folders), they are useful!

I still feel it would be nice for the Transfer Files node to be able to achieve this on its own though.

Best wishes  
Heather

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 19, 2023, 8:47am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/8 "2023-05-19T08:47:45Z")

</div>

> [@HeatherPikairos](#):
>
> I still feel it would be nice for the Transfer Files node to be able to achieve this on its own though.

Yes that would be nice. I have never though about the point that it would not transfer whole folder structures but ‘just’ put all files in a single folder or you would have to provide individual paths.

---

<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:** [August 17, 2023, 8:48am UTC](https://forum.knime.com/t/transfer-files-table-bug/67184/9 "2023-08-17T08:48:00Z")

</div>

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