Cannot move a file when the File Exists Error!

Hi All,

@ppr, @supermanPunch, @Anil_G

I am getting this error when i am running my robot from Orchestrator, when running from Studio its working fine

Studio Snip

Orchestrator Snip

Regards
Jai

@Jai_Pande,

It’s happening when the same name file is already exist at the folder where you are trying to move the file.

Checkbox the property Overwrite this will overwrite the file already exists.

If you want to keep both the files, you can append timestamp to make the file name unique.

Thanks,
Ashok :slight_smile:

@ashokkarale,

I have checked the folder many times there isn’t any file at the time of Running the Automation, plus before the end of automation the delete file logic is implemented, also now its showing a different error

@Jai_Pande,

I would suggest to use Documents or any other folder to store temporary files instead of storing it in the project folder. When ran from Orchestrator, these files get’s created in .nuget folder which is inside user profile. This could result in access issues like moving/renaming/deleting restrictions.

Try changing the file path to another folder path.

Thanks,
Ashok :slight_smile:

1 Like

@ashokkarale,

Also in the Move file its asking for a relative path now, without adding folder to the project how this can be achieved?

Thanks!

@Jai_Pande,

Use Get Environment Folder activity to get the folder paths like MyDocuments, Desktop dynamically and pass the output to your move file activity.

This can give you all Special folders mentioned here:

Thanks,
Ashok :slight_smile:

Thanks it worked!
Instead of activity i used Expression!

Thanks!:slight_smile:

1 Like

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