Move File is not working

I wanted that when robot start it create a new folder of current date and then move the old files .form an Input folder to that new created folder. So that when user has to download new files It get an empty folder.

I’m getting issue that I can not write the output of folder name into MovieFile activity.

I read this artical. .

which says I need to add full file path… but how can i add full path when i don’t know the folder of date (as it changes) im gona get next???

PLUS

I tried like this as well…

and it gives med this error… that it can not move file as it already exist… but the new folder is empty.

Hi @Ellen,

Thanks for reaching out.

If you are getting a file that already exists you can use the checkbox to overwrite the existing file.

Regards,
@Vinit_Kawle

1 Like

Hi @Ellen ,

Can you try giving input of ‘varMoveFiles’ in Move Files at ‘Destination resource’ as below
image
Instead of giving it To
image

Hope it works.

Happy Automation,
@Vinit_Kawle

2 Likes

Hi @Ellen

in To Field is expected folder path, in first picture you pass FileSystemLocalItem and in the second you pass a Text

Change To Field to use this expression. LocalPath return the full path for the created folder

varMoveFiles.LocalPath
2 Likes

Your solutions worked and I also tried @Vinit_Kawle solution. Both worked. So thanks for the big help.
cheers.

1 Like

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