We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

FarSol's avatar
FarSol
New member | Level 2
6 years ago

App developer

I'd like to use copy_batch function to copy some files from a folder to another folder. Even though the code looks fine, I receive the "In Progress" result. When I checked the app developer instructi...
  • Greg-DB's avatar
    Greg-DB
    6 years ago

    You can check what the specific returned error means in the documentation:

    https://www.dropbox.com/developers/documentation/http/documentation#files-copy_batch-check

    For instance, click on 'RelocationBatchV2Result', and so on, to drill down to the relevant error. 

    In this case, for 'Error.entries.failure.relocation_error.to.conflict.folder', that means "Couldn't write to the target path because there was something in the way.", and specifically, "There's a folder in the way.".

    That is to say, the copy failed because there was already a folder at the "to_path" you specified as the destination for the copy operation. 

    Are you trying to copy the item into the folder you specified? Note that when configuring the copy job, you should specify the full path where you want to put the copy, not just the parent folder. For example, to copy a file named "test.txt" into an existing folder named "Folder", the "to_path" would be "/Folder/test.txt", not just "/Folder".