This project has moved and is read-only. For the latest updates, please go here.

Error when using UpdateListItems commans

Jan 20, 2011 at 11:43 AM
Edited Jan 20, 2011 at 11:45 AM


I have a problem when using the UpdateListItems command. The error is: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

First, here my code:

function updateLOG(StatusText, ID, SiteURL) {
 var ret;
  url: SiteURL,
  operation: "UpdateListItems",
  async: false,
  listName: "LOG",
  batchCmd: "Update",
  valuepairs: [["status", StatusText]],
  ID: ID,
  completefunc: function(xData, Status) {
ret = Status;

 return ret;

I already checked if the list LOG exists. Also the SiteURL is correct (it contains the url to the SharePoint web where the list lives).

Strange thing is, I use a GetListItems command on the SAME LIST before this function is called and this works without a problem! Code looks liks this:

    webURL: SiteURL,
    operation: "GetListItems",
    async: false,
    listName: "LOG",
    CAMLViewFields: "<ViewFields><FieldRef Name='verantwortlicher' /></ViewFields>",
    CAMLQuery: "<Query><Where><Eq><FieldRef Name='ID' /><Value Type='Text'>" + ID + "</Value></Eq></Where></Query>",
    completefunc: function (xData, Status) {
     $(xData.responseXML).find("[nodeName=z:row]").each(function() {
      Verantwortlicher = $(this).attr("ows_verantwortlicher");

I hope you guys can help me out. Thanks a lot.

Greez, Mark

Jan 20, 2011 at 11:51 AM
Mark: I'm hoping this is a simple one. In your call to UpdateListItems, you have 'url' for the option, and it should be 'webURL'. M.
Jan 20, 2011 at 11:55 AM

Oh man, I'm such a dummy :)

Thanks a lot!

Jan 20, 2011 at 11:59 AM
No problem! M.