Symptom
I am trying to give permission to a role to generate a particular document template. I am able to select the template in "Manage Document Generation Templates" and save it. However, once I save it, I am not able to see the permission. Hence, permission is not given. I have tried multiple times to give this permission to this role, however, it goes missing after save.
Environment
SAP SuccessFactors - Employee Central - Document Generation
Reproducing the Issue
1. Go to "Manage Permission Roles" > open role name [Permission Role]
2. Select category "Manage Document Generation Templates".
3. Select only [TemplateID] template id and save the permission role.
4. reopen the permission role [Permission Role]
5. notice that the access to [TemplateId] template didn't save.
Cause
he affected template does not have its corresponding permission entry in the instance.
The permission entry would have been deleted when there was a new record inserted in the template and then later it was deleted.
This causes the deletion of the permission entry while the template still remains in the instance.
Using Document Generation Template objects as effective dated objects is not at all recommended and can cause issues like this.
Resolution
There are two possible solutions to this issue.
Solution 1
- Make sure that the template has only one record.
- Change the category of the template to any other category other than Print Forms or Document Generation and then save it.
- Change the category of the template back to its original category.
- Use the template to assign the permission
Solution 2
- Make sure that the template has only one record.
- Create a copy of the template.
- Delete the original template
- [Optional] Update the template id, name, and locale of the copy so that it is exactly identical to the original in every way
- Use the newly created copy to assign the permission
Keywords
Unable to save permission for Document Generation Template, permission not getting saved. , KBA , LOD-SF-EC-RBP , Roles & Permissions (EC Core only) , LOD-SF-EC-DOC , Document Generation , Problem