Creating a sweep for retention date changes
You can configure and run a retention update sweep job in the Administration Console for Content Platform Engine to update retention for unexpired Automation Document Processing documents so that the Clean utility can complete successfully.
About this task
The CPDS Cleanup process fails when it tries to delete Automation Document Processing documents in Content Platform Engine and the document's retention period has not yet expired. While this is the intended behavior, the unexpired retention period prevents the cleanup endpoint from successfully completing in an authoring environment.
{"errors":[{"action":"Ask your system administrator to review the error and check the Content Project Deployment
server error log files.","errorId":500,"explanation":
"The server reported an unspecified error."}],"status":{"code":500,"message":"Internal Runtime Server Error::com.filenet.api.exception.EngineRuntimeException
FNRCC0011 Content Engine could not delete or move content because the retention period for the item has not expired.
Current time: 1/5/21 10:31 PM; Retention time: 2/3/22 10:07 PM.","messageId":"FNRDD0501E"}}
Return Code=500
The retention date of the documents is set by the Doc Processing event handler according to the retention that was set in the Document Processing Designer.
To solve this problem, you can use the Administration Console for Content Platform Engine to create a sweep job. You set up the sweep to update unexpired retention settings. This change enables the Clean process to complete.
Procedure
To create the sweep job in the Administration Console for Content Platform Engine: