<?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: Error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error/m-p/731543#M32334</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you're experiencing similar behavior as described in &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-When-using-Batch-Operation/td-p/730149" target="_self"&gt;this post&lt;/A&gt;, only with a different method/type.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The recommendation here would be similar: call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isSingleUser()" target="_self"&gt;FileLockContent.isSingleUser&lt;/A&gt; first, to confirm whether that lock is held by a single user. Only if that resolves to true, then calling&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#getSingleUserValue()" target="_self"&gt;FileLockContent.getSingleUserValue&lt;/A&gt;&amp;nbsp;will get you that lock's information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the specific error you provided though, it seems like the lock's information you are attempting to access is unlocked. In which case, you'd want to add logic to your implementation to also check&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isUnlocked()" target="_self"&gt;FileLockContent.isUnlocked&lt;/A&gt;&amp;nbsp;and/or&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isOther()" target="_self"&gt;FileLockContent.isOther&lt;/A&gt; and process the information accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 15:37:28 GMT</pubDate>
    <dc:creator>DB-Des</dc:creator>
    <dc:date>2023-11-27T15:37:28Z</dc:date>
    <item>
      <title>Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error/m-p/730985#M32329</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hello!&amp;nbsp;&lt;BR /&gt;When I used this API to perform operation&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;https://api.dropboxapi.com/2/files/get_file_lock_batch&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;It show this error&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;Cannot convert to JSON, detail: Invalid tag: required Tag.SINGLE_USER, but was Tag.UNLOCKED (through reference chain: com.dropbox.core.v2.files.LockFileBatchResult["entries"]-&amp;gt;java.util.ArrayList[0]-&amp;gt;com.dropbox.core.v2.files.LockFileResultEntry["successValue"]-&amp;gt;com.dropbox.core.v2.files.LockFileResult["lock"]-&amp;gt;com.dropbox.core.v2.files.FileLock["content"]-&amp;gt;com.dropbox.core.v2.files.FileLockContent["singleUserValue"])&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;how can I resolve this problem&lt;BR /&gt;please&amp;nbsp;help me to resolve this problem&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 17:08:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error/m-p/730985#M32329</guid>
      <dc:creator>Adi4</dc:creator>
      <dc:date>2023-11-21T17:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error/m-p/731543#M32334</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you're experiencing similar behavior as described in &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-When-using-Batch-Operation/td-p/730149" target="_self"&gt;this post&lt;/A&gt;, only with a different method/type.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The recommendation here would be similar: call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isSingleUser()" target="_self"&gt;FileLockContent.isSingleUser&lt;/A&gt; first, to confirm whether that lock is held by a single user. Only if that resolves to true, then calling&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#getSingleUserValue()" target="_self"&gt;FileLockContent.getSingleUserValue&lt;/A&gt;&amp;nbsp;will get you that lock's information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the specific error you provided though, it seems like the lock's information you are attempting to access is unlocked. In which case, you'd want to add logic to your implementation to also check&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isUnlocked()" target="_self"&gt;FileLockContent.isUnlocked&lt;/A&gt;&amp;nbsp;and/or&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/com/dropbox/core/v2/files/FileLockContent.html#isOther()" target="_self"&gt;FileLockContent.isOther&lt;/A&gt; and process the information accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:37:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error/m-p/731543#M32334</guid>
      <dc:creator>DB-Des</dc:creator>
      <dc:date>2023-11-27T15:37:28Z</dc:date>
    </item>
  </channel>
</rss>

