I have a List Item and I wanted to delete it. It's nothing special at all, but it fails.
I have two lists, Company and Company Contacts. Each Company have 0...n contacts. A company can't be deleted as long it has 1 or more contacts. So thats why I have set the RelationshipDeleteBehavior to "Restricted".
Here the field definition:
<Field
Description=""
DisplayName="Lieferant"
Group="Phonebook"
ID="{8c6fe81d-0ac2-45cc-b14f-592855c16c77}"
Name="Supplier"
List="Lists/Suppliers"
Indexed="TRUE"
ReadOnly="FALSE"
Required="TRUE"
StaticName="Supplier"
EnforceUniqueValues="FALSE"
UnlimitedLengthInDocumentLibrary="FALSE"
ShowField="Title"
ShowInDisplayForm="TRUE"
ShowInEditForm="TRUE"
ShowInNewForm="TRUE"
RelationshipDeleteBehavior="Restrict"
Type="Lookup" />
If I want to delete a company it fails all the time. It doesn't depend on if it has contacts or not. The Log tells me that I following failure:
LockManager: A Web Lock should have been taken here
How could I resolve this failure? I am using SharePoint 2010 SP1.