Saturday, September 27, 2008

How do I delete/destroy a Documentum Lifecycle?

When attempting to delete/destroy a lifecycle you may get the following error:

[DM_POLICY_E_CANT_DESTROY]error: "Cannot destroy policy identified by
since its state is installed or currently referenced by
some sysobject."

To delete a lifecycle, first make sure that no documents in the docbase are referring to that Lifecycle. Run the following DQL to find out if there are any documents referring to the lifecycle:

select * from {object_type} where r_policy_id = '{lifecycle_object_id}'

If no documents are using or referring to the Lifecycle, then the most likely cause of this error is that the Lifecycle is still in an "Installed" state in the docbase. To uninstall the Lifecycle and destroy the lifecycle run the following API's:

uninstall,c,{lifecycle_id}
destroy,c,{lifecycle_id}

No comments: