I am trying to save two tasks for the same user history. The first request always succeeds, but the second service request always returns this message in response:
Concurrency conflict: [An object has been changed since reading for an update in this context] - ConcurrencyConflictException: Changed since read on update: Object Class: com.f4tech.slm.domain.UserStory: ObjectID:
I use the JavaScript SDK to create a task. I do this twice:
Rally.data.ModelFactory.getModel({ type : 'Task', success : function(task) { var record = Ext.create(task, { Name : taskName, State : 'Defined', TaskIndex : 1, WorkProduct : workProductId, Owner : userIdsTeam[owner], SyncDevelopmentTasktoAccuRev : accuSync, Estimate: hours, TargetDeployment: targetDeployment, context: { project:'/project/' + currentProjectId, projectScopeDown: true }, }); record.save({ callback : afterSaveNewTaskCallback }); } });
Is there anything I can do to get rid of this error and successfully save two tasks?
source share