Sunday, November 20, 2011

How to unlock an object in Documentum

When a user makes a checkout on a sysobject (opens to edit), Documentum automatically applies a lock on the object, preventing other users from modifying it. Only the lock owner or a superuser can unlock the object by making a checkin or cancel the checkout. As sometimes users forget to unlock documents, you might need to do this as a superuser.
You can unlock an object in 2 ways:

DQL:
update dm_document object set r_lock_owner='', set r_lock_machine='', set r_lock_date=date('nulldate') where r_object_id='[OBJECT_ID]'
API:
unlock,c,[OBJECT_ID],F
The last argument is a boolean flag specifying if a mail notification will be sent to the lock owner.

7 comments:

  1. DQL command doesn't work

    ReplyDelete
    Replies
    1. You're right, forgot about the date field. I've updated the query:
      update dm_document object set r_lock_owner='', set r_lock_machine='', set r_lock_date=date('nulldate') where r_object_id='[OBJECT_ID]'

      Delete
  2. Thanks for the information. The information you provided is very helpful for Documentum Learners. https://mindmajix.com/documentum-training

    ReplyDelete
  3. Is it mandatory to give the machine name?

    ReplyDelete
  4. Инстраграмм остается самой популярной площадкой для продвижения собственного бизнеса. Но, как показывает практика, люди гораздо чаще подписываются на профили в каких уже достаточное количество подписчиков. В случае если заниматься продвижение своими силами, потратить на это можно очень немало времени, потому гораздо лучше обратиться к специалистам из Krutiminst.ru подробнее https://sovetushka.forum2x2.ru/t16166-topic

    ReplyDelete