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

Forum Discussion

Akansh Gautam's avatar
Akansh Gautam
Explorer | Level 4
2 years ago

Shared Folder Limit on Team Account

Hi Team,
I am working on Team Account for development majorly on sharing folder and shared folders.

 

Code for sharing folder

try:
response = dbx_client.with_path_root(
path_root=pr
).sharing_share_folder(path=f"{path}", force_async=force_async)
if response.is_complete():
return response.get_complete()
return response
except DropboxException as e:
Logger.info(e)

Suddenly this api starts giving error, after some logs i found error (below)

 

re=dbx_client.with_path_root(path_root=pr).sharing_share_folder(path="/AppsTest/Cases/Beta/Demo_")
res res res <dropbox.dropbox_client.RouteErrorResult object at 0x7fa0116a9b80>
Error Log -----, deserialized_result ShareFolderError('other', None)
Error Log -----, user_message_text Your Dropbox account has reached the limit for shared folders.
Error Log -----, user_message_locale en

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/t2b/Documents/tc/venv/lib/python3.8/site-packages/dropbox/base.py", line 4911, in sharing_share_folder
    r = self.request(
  File "/home/t2b/Documents/tc/venv/lib/python3.8/site-packages/dropbox/dropbox_client.py", line 352, in request
    raise ApiError(res.request_id,
dropbox.exceptions.ApiError: ApiError('fbcc140666624171a803aaaed555ffeb', ShareFolderError('other', None))
 
 
After reading some discussion I found that I can create only 1500 shared folder inside a folder and 300000 for overall team account.
 
My questions:
 
1. Does base folder also included in count
example in my root folder the struture is /AppsTest/Cases.....
 
I am creating shared folder inside AppsTest (not able to create now)
 
2. Is there any api for shared folder count or any other workout to get exact number of count of shared folders in side root folder.
 
 
Please reply asap.
 
Thanks and Regards
 
  • 1. No, the count for this limit is only referring to shared folders, not unshared parent folders.

     

    2. The Dropbox API doesn't offer a way to just retrieve the current count with the Python SDK, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can use sharing_list_folders and sharing_list_folders_continue to list and count shared folders as needed however.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    1. No, the count for this limit is only referring to shared folders, not unshared parent folders.

     

    2. The Dropbox API doesn't offer a way to just retrieve the current count with the Python SDK, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can use sharing_list_folders and sharing_list_folders_continue to list and count shared folders as needed however.