Page 1 of 1
Copy file to multiple folders and move it to a "Processed Files" at the end
Posted: Sun May 11, 2025 11:26 pm
by LCA
Hi
I'm working in a workflow where I need to deliver a file to multiple folders and then move the original file to a "processed folder". The problem is that I can't garantee the sequence of the processes and if I mark "Move instead of Copy" in one of the deliveries, other processes can fail because of the original file had been moved.
How can I solve this situation?
Thanks
Conrado
Re: Copy file to multiple folders and move it to a "Processed Files" at the end
Posted: Mon May 12, 2025 11:34 am
by momocampo
Hi Conrado,
You can use a hold node to synchronize all your branches. This will allow you to move your original file without any issue at the end of your workflow.
So put a hold node like this :
hope it helps.
Cheers.
Re: Copy file to multiple folders and move it to a "Processed Files" at the end
Posted: Mon May 12, 2025 5:34 pm
by emcodem
This explains why benjamins approach will end up with 2 failed and 1 success jobs
viewtopic.php?p=3565#p3565
3 branches try to move original file but only one can succeed, the hold and sync option in this case is not 3 in 1 out but 3 in 3 out - even when it looks different on the GUI.
This is one way to handle the situation without errors:
https://www.ffastrans.com/frm/forum/vie ... 3&start=10
Re: Copy file to multiple folders and move it to a "Processed Files" at the end
Posted: Tue May 13, 2025 10:19 am
by momocampo
Yeahhh Emcodem, you are right, i'm sorry i answered too quickly...But once i do it before you
Another way might be to use a hold function to pause the branch with the process taking the longest time.
Anyway, your solution is really more complicated but maybe there is no other way.
Thanks to you Emcodem
Re: Copy file to multiple folders and move it to a "Processed Files" at the end
Posted: Fri May 16, 2025 1:32 am
by LCA
It was a little more complicated than I expected.
Great Job.
Thanks