Sumit Deshmukh

Sumit Deshmukh

  • NA
  • 4.5k
  • 950.5k

Exception handling in batch command (SPWeb.ProcessBatchData

Jun 4 2015 3:37 AM

Hello All,

I am adding the items of excel sheet in the custom list. I'm getting the whole data in the data table and then processing it using SPWeb.ProcessBatchData(string Value). In that if there is any unsuccessful entry of item then I'm continue from the next item using this command "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ows:Batch OnError=\"Continue\">{0}</ows:Batch>" At the same time I want to log the unsuccessful item in another list. But I'm unable to fetch the ID or any information of that particular item.

Is there any way to find those unsuccessful items and update corresponding ID in another list.