<?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 Re: invalid_revision error while restoring file version through api in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574561#M2358</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt; Yes, as Здравко mentioned, please share the relevant code. It would be useful if you show both where/how you're get the revision value, as well as where/how you're using it. It may also be helpful for troubleshooting purposes to print out the value itself.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 18:06:15 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-01-31T18:06:15Z</dc:date>
    <item>
      <title>invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/560452#M2250</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to restore file to an older versi&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Screenshot 2021-11-25 101146.jpg" style="width: 427px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26322i3B5BF68BF562832B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-11-25 101146.jpg" alt="Screenshot 2021-11-25 101146.jpg" /&gt;&lt;/span&gt;on through API but it throws the error as shown in the picture.&lt;BR /&gt;What can be best solution to use through API ?&lt;BR /&gt;&lt;BR /&gt;Hope for the quick reply.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Aman&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:04:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/560452#M2250</guid>
      <dc:creator>AmanSingh</dc:creator>
      <dc:date>2021-11-30T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/560784#M2253</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-restore" target="_self"&gt;The /2/files/restore endpoint&lt;/A&gt; is the right way to restore a previous version of a file. An 'invalid_revision' error like that should indicate that the value you supplied in the "rev" parameter isn't usable though, e.g., it's not an actual revision value, or it refers to a version that cannot be restored (e.g., because it doesn't exist anymore).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If something's not working as expected/documented, I'll be happy to look into it, but I'd need some more information. In that case, reply with:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/LI&gt;
&lt;LI&gt;the full text of any error or unexpected output&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 26 Nov 2021 22:05:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/560784#M2253</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-11-26T22:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574429#M2355</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Actually I am trying to restore a deleted file through this API.&lt;BR /&gt;But its showing this "&lt;SPAN&gt;invalid_revision&lt;/SPAN&gt;" error.&lt;BR /&gt;Also the file I am trying to restore is deleted within 30 days. (2-3 days before)&lt;BR /&gt;&lt;BR /&gt;What can be the reason, anything to help here?&lt;BR /&gt;&lt;BR /&gt;I am using Dropbox Java SDK v4.0.1&lt;BR /&gt;Error message I am getting -&amp;nbsp;Exception in 2/files/restore: "invalid_revision"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 08:32:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574429#M2355</guid>
      <dc:creator>AmanSingh</dc:creator>
      <dc:date>2022-01-31T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574501#M2356</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;Error message I am getting -&amp;nbsp;Exception in 2/files/restore: "invalid_revision"&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How and where did you get the revision from, that gets refused here as an invalid?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Can you describe exact steps or, as &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; has mentioned above, share some code snippet reproducing the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 14:22:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574501#M2356</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-01-31T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574561#M2358</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt; Yes, as Здравко mentioned, please share the relevant code. It would be useful if you show both where/how you're get the revision value, as well as where/how you're using it. It may also be helpful for troubleshooting purposes to print out the value itself.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 18:06:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574561#M2358</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-31T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574604#M2362</link>
      <description>Hi,&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Using Dropbox Java SDK v4.0.1 for development. I am trying to restore deleted files using -&lt;BR /&gt;&lt;BR /&gt;files().restore(path, rev)&lt;BR /&gt;But its throwing an error "invalid_revision".&lt;BR /&gt;I am getting path from metadata for deleted file in listFolder() with includeDeleted = true.&lt;BR /&gt;And I am getting rev from listRevisions() for the file. Getting the latest revision from that list.&lt;BR /&gt;&lt;BR /&gt;Is this API correct to do this task or is there anything to help ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Aman</description>
      <pubDate>Mon, 31 Jan 2022 20:25:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574604#M2362</guid>
      <dc:creator>AmanSingh</dc:creator>
      <dc:date>2022-01-31T20:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574621#M2363</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt; The listFolder/listFolderContinue methods are the right way to list the contents of a folder, the listRevisions method is the right way to list the versions of a file, and the restore method is the right way to restore a deleted file. I just gave these a try myself and they are working properly for me. If it's not working for you, please share the rest of the relevant code and output so we can take a look at what's not working for you specifically. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 21:57:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574621#M2363</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-31T21:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574678#M2364</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information.&lt;BR /&gt;&lt;BR /&gt;So, that's my sample code -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;String path = &lt;SPAN&gt;"/testaman6.dwg"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;List&amp;lt;FileMetadata&amp;gt; revisions = &lt;SPAN&gt;new &lt;/SPAN&gt;AWSXRayDbxClientV2(api&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;xRay&lt;/SPAN&gt;).files().listRevisions(path).getEntries()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;String rev = revisions.get(&lt;SPAN&gt;0&lt;/SPAN&gt;).getRev()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;AWSXRayDbxClientV2(api&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;xRay&lt;/SPAN&gt;).files().restore(path&lt;SPAN&gt;, &lt;/SPAN&gt;rev)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Inputs for restore function -&amp;nbsp;&lt;BR /&gt;path -&amp;nbsp;/testaman6.dwg&lt;/P&gt;&lt;P&gt;rev -&amp;nbsp;015d183052af6b300000002296c5930&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error I am getting -&amp;nbsp;&lt;/STRONG&gt;Exception in 2/files/restore: "invalid_revision"&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 04:56:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574678#M2364</guid>
      <dc:creator>AmanSingh</dc:creator>
      <dc:date>2022-02-01T04:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574809#M2365</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1422621"&gt;@AmanSingh&lt;/a&gt; Thanks! That code itself looks fine, so it sounds like there's something specific to your account/files relevant here. Could you please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; and share the entire output you get from 'new AWSXRayDbxClientV2(api, xRay).files().listRevisions(path)' itself? That should help us investigate internally. Thanks in advance and apologies for the bother.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 18:02:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574809#M2365</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-01T18:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: invalid_revision error while restoring file version through api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574951#M2367</link>
      <description>&lt;P&gt;Thanks for the information.&lt;BR /&gt;&lt;BR /&gt;I have raised a ticket for this -&amp;nbsp;&lt;A href="https://www.dropbox.com/support/ticket/15701428" target="_blank"&gt;https://www.dropbox.com/support/ticket/15701428&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope for a quick response.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 08:09:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/invalid-revision-error-while-restoring-file-version-through-api/m-p/574951#M2367</guid>
      <dc:creator>AmanSingh</dc:creator>
      <dc:date>2022-02-02T08:09:16Z</dc:date>
    </item>
  </channel>
</rss>

