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
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