Copy folder activity Error

Current folder path is in Watch panel and getting issue while Copying it to other location. Copy folder is placed inside folder in folder activity.

hi @shashank_dullu ,
I think there was a change in the path when you ran the process
Please make sure these 2 paths are correct and there are absolutely no changes when copying
regards,

I am moving the files from this folders


To the one selected

I see in the activity copy folder you are using the current folder
and move it into its subfolder, right?

Hi @shashank_dullu

Can you please check the output path’s stored in the variable whether it is exactly printing or not?

Regards

Yes Sort of copy the Files into another location

file or folder?
please clear your requirement
Could you please share your source
I will check for you
my understanding in here, you need copy current folder to other folder
that’s right?

regards,

From screenshots - Files starting 294460 and So on i will take the files/Copy the files


And then After copying the files I will paste those file inside inside the Highlighted folder below and after copying Zip the folder as you can see in the last Folder

You shouldn’t use + to build a path. Use Path.Combine:

Path.Combine(str_path,StudyID + “_” + tst)

I think what’s happening is you’re expecting it to rename the folder as it copies it (ie create the destination folder), but that isn’t how it works. It copies the folder with the same name, to the destination folder. So if you have a folder named “test” and you copy it to “C:\temp\newfolder” then “C:\temp\newfolder” has to already exist and the result will be the folder is copied to “C:\temp\newfolder\test”

@vrdabberu - output path is available and currect

could you please share your source or folder case from your “Downloading file” or we can get a quick meeting
I think it is similar my screenshot, if all path correct, we can copy then paste them
regards,

Hi @shashank_dullu

can you send the screenshot of the output you are getting from this str_Path+StudyiD+"_"+tst

Regards


IN watch panel you can see the input path(From).
And Output path (To) :- "C:\Users\dullus\Documents\UiPath#FinalRave2_Code\Distribution_Medidata Rave2\Data\Downloading_files\BO28984_267592 CHUC Unidade I X Fundaç o A.ö. Brüder Câncer Hospital Sao Jeronimo "

IN watch panel you can see the input path(From).
And Output path (To) :- "C:\Users\dullus\Documents\UiPath#FinalRave2_Code\Distribution_Medidata Rave2\Data\Downloading_files\BO28984_267592 CHUC Unidade I X Fundaç o A.ö. Brüder Câncer Hospital Sao Jeronimo "

Hi @shashank_dullu

The copy folder does not allow you to change the name so if you want to copy the folder then please make sure the output folder path where you are sending should be the existed one.

please check the below for better understanding.


In the above image the AmazonConnect-master folder is already existed and the 676065 is moved into the AmazonConnect-master successfully with the same name.

Regards

Hi @vrdabberu - both the path exists as above this step two folder where move third folder is failing becuase of Characters in the name - CHUC Unidade I X Fundaç o A.ö. Brüder Câncer Hospital Sao Jeronimo .Can we connect for this

Hi @shashank_dullu

Yes sure we can connect.

Regards