cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Through error in Copy File Operation

Through error in Copy File Operation

Adi4
Explorer | Level 3

Hello!
I perform copy operation like this:
FROM_PATH = /sure/copyfile
TO_PATH = /sure/automat

sure is main folder inside sure there are two file copyfile and automat. In copyfile has a pic that I want to copy in automat, automat is empty but it trough this error.

Exception in 2/files/copy_v2: {".tag":"to","to":{".tag":"conflict","conflict":"folder"}}
Reason:
Snap failed unexpectedly and did not provide any reason
Hide Details...
SnapCompletionService
com.dropbox.core.v2.files.RelocationErrorException: Exception in 2/files/copy_v2: {".tag":"to","to":{".tag":"conflict","conflict":"folder"}}
 
When I change the of TO_PATH like  /sure/[Different name]  then it work and make new file and copy file in [Different name]
How I removed this error and why it through this error when their is nothing duplicate in receiving file.
Thank You!
1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

@Adi4 As Здравко said, your destination path should include the destination file name as well, not just the parent folder.

 

So for example, it sounds like what you actually want is something like this instead:

TO_PATH = /sure/automat/copyfile

View solution in original post

3 Replies 3

Здравко
Legendary | Level 20

Hi @Adi4,

The behaviour, you described, is something normal (strange would be different one). When you copy something (either file or folder) the destination should not exist! It will be created on copying. When destination exists (folder in particular case), the error you're receiving is something normal. If you want to copy the contained file, better point it both in source and destination path. :winking_face: If, by any chance, multiple files have to be copied, use batch version of 'copy'.

Hope this helps.

Greg-DB
Dropbox Staff

@Adi4 As Здравко said, your destination path should include the destination file name as well, not just the parent folder.

 

So for example, it sounds like what you actually want is something like this instead:

TO_PATH = /sure/automat/copyfile

Adi4
Explorer | Level 3

Thank You !!

Need more support?