Fix “The requested operation is part of an experimental feature that is not supported in the current environment.” Error

Problem: When trying to run a PowerShell cmdlet, I got this error message: “The requested operation is part of an experimental feature that is not supported in the current environment.” SharePoint shows this error if a new feature is not yet rolled out for your tenant. Solution: Set the release preference in…

Read more

Fix “Cannot contact web site ‘https://tenant-admin.sharepoint.com/’ or the web site does not support SharePoint Online credentials. The response status code is ‘Unauthorized'” Error

Problem: When trying to connect to SharePoint Online through PowerShell script, I got this error message “Cannot contact web site ‘https://crescent-admin.sharepoint.com/’ or the web site does not support SharePoint Online credentials. The response status code is ‘Unauthorized’” I tried running a CSOM script and got an error: “Exception calling “ExecuteQuery” with “0”…

Read more

Connect-PnPOnline : The term ‘Connect-PnPOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Problem: When trying to run a PowerShell script for SharePoint Online, I got this error message:“Connect-PnPOnline : The term ‘Connect-PnPOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is…

Read more

SharePoint Online: URL Length Limitation of 218 Characters in Excel Files

Problem: When trying to open a Microsoft Excel file stored in a SharePoint Online document library, I got this error message: We couldn’t open that file. rename the file to use a shorter name or copy it to a different folder with a shorter path. We faced similar issues like: “Sorry, we…

Read more

SharePoint Online: Fix “The remote server returned an error (401) Unauthorized” Error in PowerShell

Problem: Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error (401) Unauthorized.” Error in SharePoint Online PowerShell script. Troubleshooting Checklist: Here are the various root causes and solutions for the remote server returned an error 401 unauthorized in SharePoint Online: 1. Is your URL Correct? You’ll get the same…

Read more

Fix “Connect-AzureAD : The term ‘Connect-AzureAD’ is not recognized as the name of a cmdlet, function, script file, or operable program.” Error

Problem: When trying to connect to Azure AD from PowerShell, using: “Connect-AzureAD” cmdlet, received an error: “Connect-AzureAD: The term ‘Connect-AzureAD’ is not recognized as the name of a cmdlet, function, script file, or operable program.” Solution for Connect-AzureAD not recognized Issue: Install the Azure AD Module! Open PowerShell as an administrator, Enter:…

Read more

Fix: “The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature” Error on Content Organizer

Problem: I need to enable ‘content organizer’ in the site feature. However, when I tried activating the “Content Organizer” feature from SharePoint Online site features page, I got an error message: The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature ‘FeatureDefinition/15/0c8a9a47-22a9-4798-82f1-00e62a96006e’ (ID: ‘0c8a9a47-22a9-4798-82f1-00e62a96006e’). Hidden features cannot be…

Read more

Fix “List cannot be deleted while on hold or retention policy” Error on SharePoint Online

Problem: When trying to delete a document library in SharePoint Online, it gave an error message: “list cannot be deleted while on hold or retention policy.” Solution: As the error message says: List cannot be deleted while on hold or retention policy. This error is due to the site being under hold or…

Read more