<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic com.dropbox.core.v2.files.RelocationErrorException in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-v2-files-RelocationErrorException/m-p/259359#M15074</link>
    <description>&lt;P&gt;Hello Group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a simple copy/move of one of my files from one folder to another:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SOURCE FOR EXAMPLE:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/my_pictures_and_videos/01 dump yard/aarav (hridansh)/test.jpg&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DESTINATION FOR EXAMPLE:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/my_pictures_and_videos/diya/photos/&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code that I am writing for the same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);&lt;BR /&gt;client.files.copyV2("/my_pictures_and_videos/01 dump yard/aarav (hridansh)/test.jpg","/my_pictures_and_videos/diya/photos/");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I have verified the paths every thing is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception I am getting is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" com.dropbox.core.v2.files.RelocationErrorException: Exception in 2/files/copy_v2: {".tag":"from_lookup","from_lookup":{".tag":"malformed_path","malformed_path":null}}
	at com.dropbox.core.v2.files.DbxUserFilesRequests.copyV2(DbxUserFilesRequests.java:510)
	at com.dropbox.core.v2.files.DbxUserFilesRequests.copyV2(DbxUserFilesRequests.java:533)
	at org.polymath.dropbox.test.ConnectivityTest.main(ConnectivityTest.java:32)&lt;/PRE&gt;&lt;P&gt;Also the code does work for very simple paths like /getting start.pdf which is root to another file in the same&amp;nbsp;directory&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:16:17 GMT</pubDate>
    <dc:creator>rshahec</dc:creator>
    <dc:date>2019-05-29T09:16:17Z</dc:date>
    <item>
      <title>com.dropbox.core.v2.files.RelocationErrorException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-v2-files-RelocationErrorException/m-p/259359#M15074</link>
      <description>&lt;P&gt;Hello Group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a simple copy/move of one of my files from one folder to another:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SOURCE FOR EXAMPLE:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/my_pictures_and_videos/01 dump yard/aarav (hridansh)/test.jpg&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DESTINATION FOR EXAMPLE:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/my_pictures_and_videos/diya/photos/&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code that I am writing for the same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);&lt;BR /&gt;client.files.copyV2("/my_pictures_and_videos/01 dump yard/aarav (hridansh)/test.jpg","/my_pictures_and_videos/diya/photos/");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I have verified the paths every thing is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception I am getting is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" com.dropbox.core.v2.files.RelocationErrorException: Exception in 2/files/copy_v2: {".tag":"from_lookup","from_lookup":{".tag":"malformed_path","malformed_path":null}}
	at com.dropbox.core.v2.files.DbxUserFilesRequests.copyV2(DbxUserFilesRequests.java:510)
	at com.dropbox.core.v2.files.DbxUserFilesRequests.copyV2(DbxUserFilesRequests.java:533)
	at org.polymath.dropbox.test.ConnectivityTest.main(ConnectivityTest.java:32)&lt;/PRE&gt;&lt;P&gt;Also the code does work for very simple paths like /getting start.pdf which is root to another file in the same&amp;nbsp;directory&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-v2-files-RelocationErrorException/m-p/259359#M15074</guid>
      <dc:creator>rshahec</dc:creator>
      <dc:date>2019-05-29T09:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: com.dropbox.core.v2.files.RelocationErrorException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-v2-files-RelocationErrorException/m-p/259483#M15085</link>
      <description>Is that the exact code you're running? Running that, I get `malformed_path` on your `to_lookup`, not `from_lookup`. (Perhaps you reversed them when simplifying the code for posting here?)&lt;BR /&gt;&lt;BR /&gt;Anyway, your `to_lookup` value is malformed. It ends in a "/". It shouldn't end in "/", and should instead include the full path where you want to copy the file to, include file name. (In your sample, it looks like you're including the path to the desired parent folder.)</description>
      <pubDate>Mon, 08 Jan 2018 17:59:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-v2-files-RelocationErrorException/m-p/259483#M15085</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-08T17:59:11Z</dc:date>
    </item>
  </channel>
</rss>

