This project has moved. For the latest updates, please go here.

Error after UpdateListItems - The file has been modified by SHAREPOINT\system on 18 Feb 2014 12:00:13 -080

Feb 18, 2014 at 9:15 PM
Hi, when I put the updatelistitems in $(document).ready() in editform of document library, I always get
the error like

__ _"The file has been modified by SHAREPOINT\system on 18 Feb 2014 12:00:13 -0800" ___

it prevents clicking "Save" button to continue - but there is no errors - the field get updated.
so could anybody help to disable this error message and let the save button go?
many thanks!

the below is the code:
     operation: "UpdateListItems",
     async: false,
     batchCmd: "Update",
    listName: "MyList",
    ID: MyItemID,
    valuepairs: [[FieldName, FieldValues]],  
    completefunc: function (xData, Status){
    if(Status != 'success'){
                         //show error message here
Feb 18, 2014 at 9:57 PM
I'm not sure what you're trying to do. Are you replacing the default form with your own?

Feb 19, 2014 at 12:56 PM
I have a document library (sharepoint server 2013 + sharepoint designer 2013), which can be uploaded documents. I created a column (AssignedCustomers) with multiple choice (checkboxs) for customers so that when a document gets uploaded, user can pick up the customers for the document. but the column [AssignedCustomers) is populated dynamically from another list (I also use spservice to query another a list) and populate the checkboxlist by using Jquery. I put them in document.ready of editform.aspx:
  1. using spservice query another list get available customers;
  2. manipulate checkbox lists by replacing default values with the values from step 1 - using JQuery on client side on DOM/HTML;
  3. update the list by using spervice(UpdateListItems) to update the list for the document just uploaded with the values from step 1;
  4. in PreSaveAction, using spservice (UpdateListItems) to update the list based on the selection on checkboxlist.
the document finally uploaded and the AssignedCustomers column can be assigned correct values with no issues. the only thing is the error ""The file has been modified by SHAREPOINT\system on 18 Feb 2014 12:00:13 -0800" when click "Save" button will appear on the bottom of editform or a popup window. if I click "cancel" button or close the popup window, the document can still be uploaded successfully.
so I am wondering how to disable this error message when calling spservice or there is another way doing that.

Thanks for looking at this post and hopefully there are helps here.
Feb 19, 2014 at 1:41 PM
You can't add arbitrary values to the checkbox column because of the form digest. Basically, the form digest stores the "state" of things when the form loads. If you add customer values that aren't part of the data that comes with the form, you'll get errors.