You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
EvgeniyCatito
9 months agoExplorer | Level 4
Started to get PathRootErrorException
Hey,
I work with Dropbox Java SDK latest, and have a running app. Since recently I started to get PathRootErrorException
sdkClient.asAdmin().withPathRoot(PathRoot.root(teamNamespace))
.files()
.listFolderGetLatestCursorBuilder("")
.withRecursive(true)
.start().getCursor();
When trying to call this method. listFolderGetLatestCursorBuilder
Exception looks like:
- Greg-DBDropbox Staff
This should indicate that the value you're sending in withPathRoot, in this case the teamNamespace variable value, is incorrect for the connected account.
Note that the root for an account can change, e.g., due to team changes, so the app will need to be able to catch and handle this error. The error contains the current correct values for reference, or you can retrieve them the same way you would have originally.
Please refer to the following resources for more information:
- EvgeniyCatitoExplorer | Level 4
Thank you!
Do I understand right, that starting this change : https://dropbox.tech/developers/api-updates-to-better-support-team-spaces
there is no one root for all teams, but each team has their own root? Is there a way to get a cursor for the whole org?
Regards,Evgeniy
- iNeilDropbox Engineer
Hi EvgeniyCatito,
On teams with the updated team space, there is not a single shared root; each team member has their own root, and so there is not a way to get a single cursor for the entire team.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,912 PostsLatest Activity: 3 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!