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");
});
}