Invalid data has been used to update the list item. The field you are trying to update may be read only.
Views (170)
I got this error while updating an splistitem. It was coming while trying to update “Person or Group” type column.
This is the correct way to update the column of type “Person or Group”.
itemApprovalAssignment["Title"] = txtTitle.Text.Trim();
itemApprovalAssignment["Assign_x0020_To"] = oweb.EnsureUser(peAssignTo.CommaSeparatedAccounts);
i.e. to use EnsureUser method.
Bye..
Filed under: MOSS, SharePoint Tagged: SharePoint
This was originally posted here.

Like
Report
*This post is locked for comments