Hi All,
I generated an XML string to be passed to ProcessBatchData function. The XML string looks like -
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<ows:Batch OnError=\"Return\">
<Method ID=\"Shadra, Himangi1\">
<SetList>d3106899-dd9d-485d-aa73-15a5c574483c</SetList>
<SetVar Name=\"ID\">New</SetVar>
<SetVar Name=\"Cmd\">Save</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#ContentType\">Task</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Title\">Task -4</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Order\">400</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#FileLeafRef\">4_.000</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#MetaInfo\"></SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Predecessors\"></SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Priority\">(2) Normal</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Status\">Not Started</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Body\"><div></div></SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#StartDate\">2/1/2012 12:00:00 AM</SetVar>
<SetVar Name=\"urn:schemas-microsoft-com:office:office#Assigned To\">Shadra, Himangi</SetVar>
</Method> </ows:Batch>
The batch output is –
<Results><Result ID=\"Shadra, Himangi1\" Code=\"-2147352571\">\r\n<ErrorText>The operation failed because an unexpected error occurred. (Result Code: 0x80020005)</ErrorText></Result></Results>
The exception returned doesn’t give any idea on the problem. I checked SharePoint logs too; there is no helpful information in log 14. It just says - - - Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: Cannot complete this action. Please try again.
Any help in this is really appreciated.
Thanks.