"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.