Online Training On SharePoint
                      

Wednesday 20 May 2009

Error while inserting the data in SharePoint list through WebServices

I was working on a requirement where we need to insert huge amount of data (more than 2500 records) in SharePoint list using WebServices. For this purpose a we were creating CAML query dynamically which was doing this task. Earlier when the number of record which needs to be inserted were less approach was working fine without error. But when we tried with 2500 records it started failing with the following message

"Unexpected Failure: Entire batch aborted, no items affected. Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."

This error occours if the size of the CAML Query increases beyond a point. To fix this issue I started sending the data in small chunk so the size of CAML query created is small. This has fixed this issue.

No comments:

Related Posts with Thumbnails