June 13, 2013

Datasheet view error 0x80070057

Problem:
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.

2 comments: