,

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

December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031