This error occurs when you try to edit People OR Group field in datasheet view.
Root cause:
Due to inappropriate declaration of site column \ column in list definition this error occurs
Solution:
1: $field = $newSite.RootWeb.Lists["ListName"].Fields.GetFieldByInternalName("FieldName")
2: $field.SchemaXml = $field.SchemaXml.Replace("<Field", "<Field List=""UserInfo"" ")
3: $field.Update()
If you have any questions you can reach out our SharePoint Consulting team here.
its very nice
ReplyDeleteWhere do I put this code?
ReplyDelete