Tuesday, September 22, 2009

UpdateListItems is not saving data into sharepoint list

Possible reasons are:
1. Your view does not have a column which is used in Field list in CAML query ("" + userId + "" UserId is not a part of the view which is used in ViewName attaribute.
Like in batchElement.SetAttribute("ViewName", “Default View”); userId is not part of default view)
2. Check the date fields, if it has default value set, than it will be failed. Or if it has not a proper format than it will be failed.

No comments:

Post a Comment