Dear All
I am updating file properties using Lists.asmx web service of Sharepoint Portal Server 2003.
The Lists.asmx is also available for Windows SharePoint
Services. I have tried on SharePoint Portal server as well
as Sharepoint Portal Services and Lists.asmx is available
at both. And I am getting the same error at both location.
Please suggest.
I am trying the example given in Sharepoint SDK, after executing the example I am receiving the error as â Invalid text value âMy Field Type is single line text
following is my code any pointer for this error is highly appreciated â
// Declare and initialize a variable for the Lists Web Service.
spps.Lists listService = new spps.Lists();
/* Authenticate the current user by passing their default
credentials to the Web Service from the system credential cache.*/
listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Set the Url property of the service for the path to a subsite.
listService.Url = "http://spps/_vti_bin/Lists.asmx";
//Create an XmlDocument object and construct a Batch element and its attributes.
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
System.Xml.XmlElement batchElement = doc.CreateElement("Batch");
/* Specify methods for the batch post using CAML. In each method include the ID of the item to update and the value to place in the specified column.*/
batchElement.InnerXml = "<Method ID='1' Cmd='Update'><Field Name='ID'>2</Field><Field Name='mycol'>ABCD</Field></Method>";
// Update list items.
System.Xml.XmlNode reElement =listService.UpdateListItems("DocumentLibrary", doc);
MessageBox.Show(this,reElement.OuterXml);
--------------------- ERROR I AM RECEIVING --------------------------
<Results xmlns="http://schemas.microsoft.com/sharepoint/soap/"><Result ID="1,Update"><ErrorCode>0x81020018</ErrorCode><ErrorText>Invalid text value
A text field contains invalid data. Please check the value and try again.</ErrorText>
-----------------------------------
Thanks in advance
----- Somesh (
Please Mail Me)