I have created a custom list definition with one lookup field
<
Field
ID="{865CD714-7DF6-4F65-9DBC-5FE910B10BC5}"
Name="CompanyName"
DisplayName="Company
Name"
Group="Custom
contents"
Description="Select
Company"
Type="Lookup"
ShowField="CompanyName"
Required="FALSE"
FieldRef="CompanyName"
List="Lists/LookupListDefinition-ListInstance1"
ReadOnly="FALSE"></Field>
<nativehr>0x80070057</nativehr><nativestack></nativestack>Invalid data has been used to update the list item. The field you are trying to update may be read only.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
My solution is
perfectly get deployed on site. I can see the list instance created on site its also appears on quicklaunch. When i am trying to add the item into the custom list using UI then i am getting the input form correctly i can see the lookup values in dropdown
list but when i click on save button then its give me an error as mention above.
For debugging purpose i have created the event reciver class for list item adding event.
In that i have check the column status and
View Complete Post