Symptom
When the retention time for DRTM Workflow Purge Objects for active employees is maintained as 999, the purge summary shows workflows out of the Retention Period as "To be Purged" and purge job is deleting all the workflows till latest date from the system for active employees.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactors Employee Central
- SAP SuccessFactors HCM Suite
Reproducing the Issue
- Navigate to Manage Data.
- Create New DRTM Workflow Purge Objects
- Maintain Retention Time for active employees as 999.
- Go to Data Retention Management.
- Create New Purge Request
- Select DRTM Workflow Purge
- Upload list of users, and approvers name.
- Check Preview Report and see that Workflows outside of Purge Retention Time appear as "TO BE PURGED"
- Approve the purge request and check the result.
- You can see that all the workflows got deleted.
Cause
This is a known defect because of Date Format.
The system's date format is DD-MM-YY, so let's say Today date is 1st Dec 2022. When system is calculating Retention time, 2022 - 999 which is equal to 1023, as date format is YY, system take 23 from 1023, which make retention date as 1st Dec 2023. Because of this all the latest workflows till date will be purged.
Resolution
There is an issue about workflow retention cut date calculation and Engineering team is planning to fix it in H2505.
As a workaround you can maintain retention time as small number like 20 or 50 so that latest workflows will be not be affected.
Please do not set the retention period to more than 50 years.
See Also
Keywords
ECT-245395, workflow purge, drtm workflow, retention time, retention period, 999, active, purge date, purge time, workflow, ECT-156701 , KBA , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , Problem