,

SharePoint Exception: The request uses too many resources

SharePoint Exception: The request uses too many resources can occur if too many commands are executed while calling ExecuteQueryAsync function. Resolution is to up default resource boundaries for SP WebApp.


Get-SPWebApplication | %{$_.ClientCallableSettings}

This script outputs informations about resource boundaries for your SP WebApps on local server.

 


$webApp = Get-SPWebApplication "<SITEURL>"
$webApp.ClientCallableSettings.MaxObjectPaths = 2000
$webApp.ClientCallableSettings.MaxResourcesPerRequest = 50
$webApp.Update()

(Note: These settings are unavailable on SharePoint Online, so you must execute multiple queries with JSOM)


Leave a Reply

Your email address will not be published. Required fields are marked *

About me

I am web developer, tech enthusiast and fitness junkie 🙂

Calendar

June 2024
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930