web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Invalid data has been used ...

Invalid data has been used to update the list item. The field you are trying to update may be read only.

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

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.

Comments

*This post is locked for comments