Version: eXtendFiles 1.7.0 and above
Audience: NetSuite Administrator, Microsoft 365 Administrator
Problem
When authenticating eXtendFiles to your Microsoft OneDrive/SharePoint backend storage, you may encounter one of these error messages:
- An error occurred while authenticating due to - Unable to find site by name "yoursitename"
- An error occurred while authenticating due to - The resource could not be found.
Cause
"Unable to find site by name" error can occur due to:
- The SharePoint site was recently created and isn't yet available in the SharePoint API (takes approximately one hour)
- You don't have sufficient permissions to access the site
- The site name doesn't exist or was typed incorrectly
- The site is not shared properly
"The resource could not be found" error can occur due to:
- The folder name contains spaces (SharePoint folders used with eXtendFiles should not contain spaces)
- You don't have permissions to access the specified folder
- The folder path was typed incorrectly or doesn't exist
Solution
For "Unable to find site by name" errors:
- If you recently created the SharePoint site, wait approximately one hour for it to become available in the SharePoint API
- Verify that the site name is entered correctly in the SharePoint Site Name field
- Confirm you have proper permissions to access the site. When authenticating eXtendFiles to your Microsoft OneDrive/SharePoint backend storage, a Microsoft 365 Global Administrator account should be used
- Ensure External Sharing is enabled for your SharePoint site
For "The resource could not be found" errors:
- Ensure your folder name does not contain spaces. Use formats like "MyFolder" or "My-Folder" instead of "My Folder"
- Verify the folder path is entered correctly in the Directory Path field
- Confirm you have proper permissions to access the site. When authenticating eXtendFiles to your Microsoft OneDrive/SharePoint backend storage, a Microsoft 365 Global Administrator account should be used
- Confirm you have proper permissions to access the folder
- Try creating a new folder with a simple name (without spaces) and use that in your configuration
- Verify that External Sharing is properly configured by testing file upload and sharing in your SharePoint folder
For both error types, consult the Microsoft documentation on enabling External Sharing to ensure your SharePoint environment is properly configured.