Version: eXtendFiles 1.6.5 and above
Audience: Administrator
Applicable Storage: Microsoft SharePoint/OneDrive

Problem

When attempting to upload a file using eXtendFiles, an error message similar to the example below is displayed:
Failed to upload file: filename.txt. Failed to fetch file URL although your file is uploaded. Error Message: {
  "code": "notSupported",
  "message": "You cannot break inheritance for this item because there are too many items with unique permissions in this list.",
  "innerError": {
    "code": "uniqueScopesExceeded",
    "date": "20XX-XX-XXTXX:XX:XX",
    "request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }
}
Ticket - Id: Root = 1 - xxxxxxxx - xxxxxxxxxxxxxxxxxxxxxxxx

This error is due to a SharePoint limitation where a maximum of 50,000 files can be shared within a folder/sub-folder.

You can’t share this item because too many items have already been shared in this library

There is a limit of 50,000 items that can be shared within a folder and any sub-folders.

The next section presents various options for working around this limitation.

Solution

Option 1

You'll have to create a new SharePoint site and point eXtendFiles to that new site to get it back up and running. Note: Microsoft 365 SharePoint Admin permissions required.

  1. Create a new SharePoint site in your Microsoft 365.

  2. Create a new folder in the new site for use with eXtendFiles.

  3. Set the permissions to allow the appropriate users to access the new SharePoint site.

  4. Add the new eXtendTech Site Name (SharePoint site name) and eXtendTech Directory Path (SharePoint folder name) on the eXtendFiles Setup screen and authenticate with SharePoint. Note: It may take 30-60 minutes for the new SharePoint site to be available for connection in Microsoft's SharePoint API. It is recommended to attempt connection to SharePoint at least 60 minutes after the new site has been created.


See Configure eXtendFiles for Storage with Microsoft OneDrive/SharePoint for more information on configuring the eXtendFiles Setup screen with updated SharePoint/OneDrive information.

Option 2

If file sharing is not required for most files, if "User based file upload" is not being used, and the maxed-out item limit has been resolved by creating a new SharePoint site, the "Do not make file public" preference can be used to set files as private by default in SharePoint/OneDrive. Microsoft's 50,000 item limit applies only to files that are set as shared. Users within your SharePoint/OneDrive can still access the files when they are not shared, and shared links can be generated from within NetSuite for those who do not have SharePoint access. This option will slow down the rate at which you reach Microsoft's 50,000 shared item limit, but when the limit is reached, Option 1 will be necessary for future uploads.
Image Placeholder

Option 3

If file sharing is not required for most files, consider using the "User based file upload" preference to set files as private in SharePoint/OneDrive by default after resolving the maxed-out item limit by creating a new SharePoint site. Microsoft's 50,000 item limit applies exclusively to files that are set as shared. Users within your SharePoint/OneDrive will still be able to access the files when they are not shared. If a user has access to NetSuite but NOT access to SharePoint and needs to view files, Option 2 is recommended. This option will slow down the rate at which you reach Microsoft's 50,000 shared item limit, but when the limit is reached, Option 1 will be necessary for future uploads.
Image Placeholder

Option 4

If it is not feasible to continually perform Option 1, and if Option 2 and Option 3 are not possible, the best solution may be to switch to a different backend storage provider where file sharing limitations do not exist. Since eXtendFiles can connect to many different backend storage providers, there are several supported options where this type of sharing limitation does not exist.

Frequently Asked Questions

What causes the error message when uploading a file with eXtendFiles?

The error message occurs when attempting to upload a file using eXtendFiles when the Microsoft SharePoint maximum of 50,000 shared files within a folder/sub-folder has been reached.

Are there any workarounds for the SharePoint file sharing limitation?

Yes, there are several workarounds for the SharePoint file sharing limitation. These include creating a new SharePoint site and pointing eXtendFiles to that site, using the "Do not make file public" preference to set files as private by default, and switching to a different backend storage provider where file sharing limitations aren't present.

What is the "User based file upload" preference in SharePoint/OneDrive?

The "User based file upload" preference in eXtendFiles allows files to be set as private by default. This can be useful for avoiding the SharePoint file sharing limitation if file sharing is not required for most files.

Are there any limitations to the SharePoint file sharing workaround options?

Some of the SharePoint file sharing workaround options, such as creating a new SharePoint site, require Microsoft 365 SharePoint Admin permissions. Additionally, switching to a different backend storage provider may not be feasible for all organizations.

What happens to my existing files when connecting eXtendFiles to another SharePoint site?

The shared links from the original site will remain accessible as long as the corresponding folder or files are not deleted or moved in SharePoint. Older links will continue to function, and new eXtendFiles uploads will add files to the new SharePoint site.