Month: December 2016

“The request message is too big. The server does not allow messages larger than 2097152 bytes.” error

Change the message limit to 2GB

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$settings = $contentService.ClientRequestServiceSettings
$settings.MaxReceivedMessageSize = 2147483647
$settings.MaxParseMessageSize = 2147483647
$contentService.Update()

Reset the settings

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$settings = $contentService.ClientRequestServiceSettings
$settings.MaxReceivedMessageSize = 0
$settings.MaxParseMessageSize = 0
$contentService.Update()