HRESULT 0x80040E14 When Calling SPListItem.Update

Posted On // Leave a Comment
Problem:
This is snippet code causes error HRESULT 0x80040E14 when calling SPListItem.Update method
SPList docApprovalList = _web.Lists[List.DocumentApprovalList];
SPListItem itemUpdate = docApprovalList.GetItemById(documentApprovalListObj.Id);
//itemUpdate[SPBuiltInFieldId._Identifier] = documentApprovalListObj.Id;
itemUpdate["ID"] = documentApprovalListObj.Id;
itemUpdate["Status"] = documentApprovalListObj.Status;
itemUpdate.Update();
documentApprovalListObj is my business object which has an attribute Id is a SharePoint List Field ID {1d22ea11-1e32-424e-89ab-9fedbadb6ce1}
Solve:
DO NOT change or re-assign value of field ID of list item

0 comments :

Post a Comment