<?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 The method files().saveUrlCheckJobStatus(&amp;quot;asyncJobId&amp;quot;) returns FAILED after sharing folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201554#M9506</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using dropbox-core-sdk-2.1.2.jar in our application and created a full dropbox app to work with dropbox API. This is my code used to save an url to a dropbox path and check whether the save&amp;nbsp;url is completed yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;. Saves a url to a dropbox path&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1. SaveUrlResult result = getDropboxClient().files().saveUrl(path, url);
2. // returns either SaveUrlResult.Tag.ASYNC_JOB_ID or SaveUrlResult.Tag.COMPLETE
3. // Given that dropbox path=/Delivery/ClientFolder/Subfolder/blahblah/test.jpg&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Step 2&lt;/STRONG&gt;. Check the save url job of an asyncJobId to see if the file saving&amp;nbsp;from a url has been completed&amp;nbsp;yet.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;4. SaveUrlJobStatus saveUrlJobStatus = getDropboxClient().files()
.saveUrlCheckJobStatus(asyncJobId);

5. LOG.trace("saveUrlJobStatus: {}", saveUrlJobStatus.tag().name());

6. if (SaveUrlJobStatus.Tag.FAILED.equals(saveUrlJobStatus.tag())) {
7.     LOG.error("saveUrlError: {}", saveUrlJobStatus.getFailedValue());
4. }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The above code segment seems to work as expected. I can see this from the output logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;saveUrlJobStatus: COMPLETE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I then go to dropbox and share the folder /Delivery/ClientFolder to our client so that they could sync the folder to their dropbox account. After doing so, the&amp;nbsp;method&amp;nbsp;saveUrlCheckJobStatus() always returns FAILED for any asyncJobId.&lt;/P&gt;&lt;PRE&gt;saveUrlJobStatus: FAILED
saveUrlError: NOT_FOUND

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this happens after sharing folder?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;**********&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;*****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked into dropbox API java docs and it mentions that "The file where the URL is saved to no longer exists." (below) that seems not to suggest any idea to fix. Same error when doing the above 2 steps using API explorer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public final class SaveUrlError {
    /**
     * Discriminating tag type for {@link SaveUrlError}.
     */
    public enum Tag {
       ... 
        /**
         * The file where the URL is saved to no longer exists.
         */
        NOT_FOUND,
...
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, tried&amp;nbsp;removing the unshare but still does not work after having the problem. Only until I delete the folder "ClientFolder" and it works again but we need to share folder to our client to sync files after uploading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any idea that would be very much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:26:56 GMT</pubDate>
    <dc:creator>chiennt</dc:creator>
    <dc:date>2019-05-29T09:26:56Z</dc:date>
    <item>
      <title>The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201554#M9506</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using dropbox-core-sdk-2.1.2.jar in our application and created a full dropbox app to work with dropbox API. This is my code used to save an url to a dropbox path and check whether the save&amp;nbsp;url is completed yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;. Saves a url to a dropbox path&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1. SaveUrlResult result = getDropboxClient().files().saveUrl(path, url);
2. // returns either SaveUrlResult.Tag.ASYNC_JOB_ID or SaveUrlResult.Tag.COMPLETE
3. // Given that dropbox path=/Delivery/ClientFolder/Subfolder/blahblah/test.jpg&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Step 2&lt;/STRONG&gt;. Check the save url job of an asyncJobId to see if the file saving&amp;nbsp;from a url has been completed&amp;nbsp;yet.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;4. SaveUrlJobStatus saveUrlJobStatus = getDropboxClient().files()
.saveUrlCheckJobStatus(asyncJobId);

5. LOG.trace("saveUrlJobStatus: {}", saveUrlJobStatus.tag().name());

6. if (SaveUrlJobStatus.Tag.FAILED.equals(saveUrlJobStatus.tag())) {
7.     LOG.error("saveUrlError: {}", saveUrlJobStatus.getFailedValue());
4. }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The above code segment seems to work as expected. I can see this from the output logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;saveUrlJobStatus: COMPLETE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I then go to dropbox and share the folder /Delivery/ClientFolder to our client so that they could sync the folder to their dropbox account. After doing so, the&amp;nbsp;method&amp;nbsp;saveUrlCheckJobStatus() always returns FAILED for any asyncJobId.&lt;/P&gt;&lt;PRE&gt;saveUrlJobStatus: FAILED
saveUrlError: NOT_FOUND

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this happens after sharing folder?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;**********&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;**********&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;*****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked into dropbox API java docs and it mentions that "The file where the URL is saved to no longer exists." (below) that seems not to suggest any idea to fix. Same error when doing the above 2 steps using API explorer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public final class SaveUrlError {
    /**
     * Discriminating tag type for {@link SaveUrlError}.
     */
    public enum Tag {
       ... 
        /**
         * The file where the URL is saved to no longer exists.
         */
        NOT_FOUND,
...
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, tried&amp;nbsp;removing the unshare but still does not work after having the problem. Only until I delete the folder "ClientFolder" and it works again but we need to share folder to our client to sync files after uploading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any idea that would be very much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201554#M9506</guid>
      <dc:creator>chiennt</dc:creator>
      <dc:date>2019-05-29T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing fo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201604#M9511</link>
      <description>Thanks for the detailed report! We're looking into it.</description>
      <pubDate>Wed, 11 Jan 2017 15:51:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201604#M9511</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-11T15:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing fo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201981#M9566</link>
      <description>This should be fixed now.</description>
      <pubDate>Fri, 13 Jan 2017 18:11:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/The-method-files-saveUrlCheckJobStatus-quot-asyncJobId-quot/m-p/201981#M9566</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-13T18:11:05Z</dc:date>
    </item>
  </channel>
</rss>

