You have created a field with type “User” and use it in a list using this fragment in the elements-file:

<Field Name=”Datenowner”
       ID=”{A8422F43-8A0F-4b5e-8E1D-CBB7DBF8D937}”
       DisplayName=”$Resources:SPO,FieldDatenowner;”
       StaticName=”Datenowner”
       Type=”User”
       UserSelectionMode=”0″
       Group=”$Resources:SPO,FieldGroup;”
       SourceID=”
http://schemas.microsoft.com/sharepoint/v3″ /> When editing list items in the standard forms, everything works fine. But, when you enter data into this field using the datasheet, you get an error 0x80070057.

image

This issue could be solved by adding two lines in the elements-file and the schema.xml of the list template:

<Field Name=”Datenowner”
       ID=”{A8422F43-8A0F-4b5e-8E1D-CBB7DBF8D937}”
       DisplayName=”$Resources:SPO,FieldDatenowner;”
       StaticName=”Datenowner”
       Type=”User”
       List=”UserInfo”
       UserSelectionMode=”0″
       UserSelectionScope=”0″
       Group=”$Resources:SPO,FieldGroup;”
       SourceID=”
http://schemas.microsoft.com/sharepoint/v3″ /> After adding the List- and the UserSelectionScope-Attribute, editing in the datasheet works without any errors.

Advertisements