I have a function which updates list items. I use fiddler 2 for tracking the traffic. When I stress test the function I get code=-2130575305, Microsoft.SharePoint.SPException error, and the error message text is
"Save Conflict. Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes."
I am using the cross-domain library and my query is
var url = appUrl + "/_api/SP.AppContextSite(@target)/Web/Lists/getByTitle('" + listName + "')/Items(" + itemId + ")/validateupdatelistitem?&@target='" + hostUrl + "'";
and the executor code is
"accept": "application/json; odata=verbose",
Is there a way to force SP to delay the attempt to update the item so that it doesn't throw a concurrency error? Or, what is the right approach to this problem?
Edit: I mentioned some additional information in my comment below. If anyone has any ideas they are going to be highly appreciated. Concurrency conflicts are probably managed easier on the server side, but I am looking to find out if anything can be done from the client side.