When a file is being uploaded to SharePoint from AgilePoint NX server, Client-side object model (CSOM) is used. If the file size is more than 2MB, by default it is unable to be uploaded to SharePoint 2013 libraries. The following message is thrown:
“The request message is too big. The server does not allow messages larger than 2097152 bytes.”
The default value to make a request through CSOM is 2MB if you have never paid attention to CSOM setting. There is a property called MaxReceivedMessageSize in SPWebService object that is adjustable through a Powershell command
Use a PowerShell script to increase the upload limit in SharePoint.
Format:
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = {Enter the file size in bytes} $ws.Update()
Example:
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 2147483647 $ws.Update()
More information about this can be obtained at following link
http://msdn.microsoft.com/en-us/library/office/ff599489(v=office.14).aspx
Please note that this is applicable for SharePoint OnPremises integration only. AgilePoint integration for Office 365 uses SharePoint REST API to upload file which does not have this restriction. Reason of not using REST API for SharePoint OnPremises is because we need to still support SharePoint 2010 as well and would not have made sense to maintain 2 code base for SharePoint OnPremises integration for same functionality.