SharePoint Online: Fix “The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested” Error in PowerShell

Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. Root Cause: You must load the object before you are trying to retrieve its properties! Solution: Here is how the problem can be resolved #Load SharePoint…

Read more

SharePoint Online: Fix “The remote server returned an error: (403) Forbidden.” Error in PowerShell

Error: Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error: (403) Forbidden.” in PowerShell scripts for SharePoint Online. Troubleshooting Checklist for 403 forbidden in SharePoint Online PowerShell: Follow this checklist to resolve Executequery 403 forbidden error in SharePoint Online PowerShell: You may have provided the credentials of another tenant,…

Read more

Excel Web Access Web Part Missing in SharePoint Online?

Problem:  Excel Web Access Web Part Missing in SharePoint Online Solution: Excel Web Access is available only in SharePoint Enterprise edition (and in Office 365, It’s only available on the Enterprise Plans E3 and E4).If you are using Enterprise edition, make sure you have “Enterprise Site Collection Features” enabled. Here is how…

Read more

Content Editor, Script Editor Web Part Missing in SharePoint Online?

Problem: Content Editor WebPart in SharePoint Online is Missing! Fix SharePoint Online Content Editor web part missing Issue: In Modern SharePoint Online sites (E.g. Group sites, Communication Sites), Self-serviced sites, and in Root site, custom scripting is disabled by default! So, how to get a content editor web part in SharePoint Online?…

Read more

Fix SharePoint Online “The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.” in PowerShell

Problem: When trying to get list items from a SharePoint Online list through PowerShell, got this error message:Exception calling “ExecuteQuery” with “0” argument(s): “The attempted operation is prohibited because it  exceeds the list view threshold enforced by the administrator.”At line:26 char:5+     $Ctx.ExecuteQuery()+     ~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException    + FullyQualifiedErrorId…

Read more

SharePoint Online: “Save Site as Template” Link Missing? Here is How to Enable!

Problem: “Save Site as Template” option missing in SharePoint Online! The “Save Site as Template” option will not be available on Office 365 group connected sites and Communication sites! However, there is one another reason why you don’t see “Save site as Template” link under site settings: Custom script disabled! How to…

Read more

Fix “Sorry, You don’t have access” Access Denied Error on Save Site as Template in SharePoint Online

Problem: Getting “Sorry, You don’t have access” access denied error when trying to save site as template in SharePoint Online site from URL: https://crescent.sharepoint.com/_layouts/15/savetmpl.aspx Solution: To fix this problem, we need to enable custom scripts. Here is how to fix the access denied error on Save Site as Template. Login to SharePoint…

Read more

SharePoint Online: Access Denied Error on Navigation Settings

Problem: When trying to change the navigation settings of a SharePoint Online site, got access denied error.  Access Required: Sorry, you don’t have access. I’m sure, I am a Global Admin in Office 365, and Site Collection Administrator for that particular site collection. Tried the PowerShell way and got the similar error:…

Read more

Export-SPWeb: <nativehr>0x80070057</nativehr><nativestack></nativestack> Error

Problem: When trying to export a List from SharePoint 2016 site, got this error message “Export-SPWeb: <nativehr>0x80070057</nativehr><nativestack></nativestack>” Export-SPWeb http://intranet.crescent.com/ -ItemUrl “Lists/Projects” -path “C:\Projects.cmp” Solution: In the ItemUrl Parameter, You must include a leading slash! E.g. Instead of -ItemUrl “Lists/Projects” You must enter “-ItemUrl “/Lists/Projects” E.g.  Export-SPWeb http://intranet.crescent.com/ -ItemUrl “/Lists/Projects” -path “C:\Projects.cmp”

Read more