I am getting the following error when trying to check in the checked out document. It was working fine earlier till the retention was not working. Currently its fixed and a retention policy is applied to the document. I already have the write access to the document still I am unable to checkin.
I tried to check it in as a new version, however that also not seems to be working.
After sometime and understanding the whole retention policy thing, I got to understand the reason for the error.
Retention is meant to keep a document from editing or deletion for certain period of time(depends on configured duration for the retention policy applied on it). So even someone have write or delete access, the document or the object still can not be deleted or edited.
If it is really needed to edit the document, the only way is to do is by first removing the retention policy from the document(which I dont think can be done easily) so its better to plan in advance.