リストを更新しようとするとsharepointでエラーが発生します:
0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields.
作成中の Caml は次のとおりです。
<Batch PreCalc='TRUE' OnError='Continue'>
<Method ID='1' Cmd='Update'>
<Field Name='ID'>4</Field>
<Field Name='Flagged'>False</Field>
</Method>
</Batch>
U2U から Caml を実行すると、正常に動作し、フィールドが更新されます。VS でコードをデバッグすると、上記のエラーが発生します。
バッチを作成して呼び出すコードは次のとおりです。
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);
caml が VS ではなく U2U で機能するのはなぜですか?
グーグルでは、内部名を使用していないために問題が発生する可能性がありますが、U2Uで実行されるため、混乱しています。