Symptom
Error "You cannot create or change Employee Times outside of the access period" in the following scenarios:
Approving a time off Cancellation workflow
Declining a Time Off workflow Request
Environment
Successfactors - Employee Central Time off
Reproducing the Issue
- Give Manager "View" permission to employee time object
- Navigate to employee's time off page
- Create a leave request
- Approver Declines the leave - error appears
- If Manager approves the leave, and user navigates back to the employee's time off page and cancels the leave
- On approving the workflow of this leave cancellation, error will appear "You cannot create or change Employee Times outside of the access period" while approving a leave cancellation workflow pops up.
Cause
This is a known issue which the engineering have fixed in a Patch scheduled for 21st July
Resolution
Engineering team have fixed this in the 1808 release, and a patch has been targeted for the 21st July.
Before the patch fix, the validation error occurs if the user does not have employee time edit permissions, even if no blocking is defined.
A workflow approver should not need to have these permissions. Therefore with the patch fix, we will skip that validation check in the same way its done already when changing the absence via import or recalc.
In the end, from workflow approval screen, the absence can only be approved / declined, but no "real" changes are done, so edit permissions should be needed.
Workarounds:
Make sure the user approving the leave has the following permissions (assuming the employee time object is set to Secured):
- View and Edit permission for Employee Time Object
Behaviour after the Patch:
- Time Management Configuration field Respect RBP in UI set to YES (=default settings)
- Approver does not have Employee Time edit permission
Scenario 1
Employee Request Time off
Approver is able to approve Time Off for this request
Employee goes and cancels the approved request. A cancellation workflow gets created for approver.
Approver is able to Approve the Cancelled Workflow.
Scenario 2
Employee Request Time off
Approver is able to decline Time Off for this request
Scenario 3
Employee Request Time off
Approver is able to approve Time Off for this request
Employee goes and cancels the approved request. A cancellation workflow gets created for approver.
Approver is able to Decline the Cancelled Workflow.
Keywords
You cannot create or change Employee Times outside of the access period while approving a leave cancellation workflow Time off Workflow Leave cancellation Approve TIM-6316 PTCH-28197 , KBA , LOD-SF-EC-TIM , Time Off , Problem