DML Error during update query n1ql

To update document we need to read first and update. In mean time some one might be modified or document might locked. You need to retry as suggested here Concurrent Updates - DML Error