1
웹 서비스를 사용하여 Sharepoint 업데이트 목록을 작성했습니다. 네트워크 자격 증명을 사용하여 원격 서버에 액세스하고 있습니다. 여기 일괄 업데이트 (오류 코드 0x81020016)
mylist.Credentials = new NetworkCredential(_username, _password, _domain);
내 innerXml 코드 : 불행히도
StringBuilder innerXml = new StringBuilder();
innerXml.AppendFormat("<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + id + "</Field>" +
"<Field Name='Title'>" + title + "</Field>" +
"<Field Name='CostCTRShortText'>" + CostCTRShortText + "</Field>" +
"<Field Name='ActTyp'>" + ActTyp + "</Field>" +
"<Field Name='Employee'>" + Employee + "</Field>" +
"<Field Name='Price'>" + Price + "</Field>" +
"<Field Name='ITECCategory'>" + ITECCategory + "</Field>" +
"<Field Name='ServicePrice'>" + ServicePrice + "</Field>"
);
innerXml.AppendLine("</Method>");
내가 오류에 geting하고 때 업데이트 :
<Result ID="1,Update" xmlns="http://schemas.microsoft.com/sharepoint/soap/"><ErrorCode>0x81020016</ErrorCode><ErrorText>Item does not exist
The page you selected contains an item that does not exist. It may have been deleted by another user.</ErrorText></Result>
이 내용은 필자가 원격 서버에서 목록 항목을 업데이트 할 때 발생한다 . 동일한 코드가 작동하고 예상대로 로컬 사이트의 목록 항목을 업데이트합니다.
도와주세요.
존재하지 않는 목록 항목을 업데이트하려고한다는 오류 메시지가 표시됩니다. 참조하고있는 ID가 실제로 원격 서버의 목록에 있는지 다시 확인 했습니까? – CBono