0

I am adding and updating item in SharePoint from excel but sometimes I get error in my get function:

net::ERR_INSUFFICIENT_RESOURCES

for some items and it get failed to update or add

function getEtoEVMDetailsByEtoEVMID(EtoEVMIDValue, Row) {
  var objHeaders = {
    type: "GET",
    headers: {
      "accept": "application/json;odata=verbose"
    },
    async: false,
    mode: 'cors',
    cache: 'no-cache',
    credentials: 'include'
  }
  fetch(_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('MasterList')/items?$filter=ExportID eq '" + EtoEVMIDValue + "'&$select=ID,ExportID", objHeaders)
    .then(function (response) {
      return response.json()
    })
    .then(function (json) {
      var results = json.d.results;
      if (results.length > 0) {
        for (i in results) {
          updateEtoEVMDetailsListItem(results[i].ID, Row);
        }
      }
      else {
        pp(Row)
        //alert('123');
      }
    })
    .catch(function (ex) {
      console.log("error");
    });
}
  • i am updating or adding more then 2000 items in one go is this may be the issue – kumar Oct 11 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.