In sharepoint when trying to update a list I am getting the error:
0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields.
The Caml that is being created is:
<Batch PreCalc='TRUE' OnError='Continue'>
<Method ID='1' Cmd='Update'>
<Field Name='ID'>4</Field>
<Field Name='Flagged'>False</Field>
</Method>
</Batch>
When I run the Caml from U2U it works fine and the field updates. When I debug my code in VS I get the error above.
The code creating and calling the Batch is below:
var ws = new com.freud.intranet.lists.Lists {
Url = WebServiceHelper.wsContactsList,
Credentials = WebServiceHelper.AdminCredentials
};
var batch = "<Batch PreCalc='TRUE' OnError='Continue'><Method ID='1' cmd='Update'><Field Name='ID'>" + contactID
+ "</Field><Field Name='Flagged'>" + flag + "</Field></Method></Batch>";
var document = new XmlDocument();
var stringReader = new StringReader(batch);
var xmlReader = XmlReader.Create(stringReader);
var node = document.ReadNode(xmlReader);
ws.UpdateListItems("Master Contact Joining Table", node);
Why would the caml work in U2U and not in VS?
From Googling the problem could be because I am not using the intrnal names however it does run in U2U which is why I am confused.