We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

EvgeniyCatito's avatar
EvgeniyCatito
Explorer | Level 4
7 months ago

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-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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: