I am trying to insert a list of task records on a case using Node.js.
I am getting this error after inserting 4-5 records. I am doing this as a bulk operation.
UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record.
conn1.sobject("Task").create(TaskRecords, function(err, rets) {
if (err ) { console.log(err); }
for (var i=0; i < rets.length; i++) {
if (rets[i].success) {
console.log("Created record id : " + rets[i].id);
}
}
});