How to Resolve - No Roster Period Violations issue
Possible root cause for this issue -This issue generally occurs when EmployeeRoster records are missing for any particular crew for the rosterperiod violation is occurring
Step-by-step guide to Investigate and Fixing this issue
Look for the rosterperiodid for which violation is occurring using the below script
select * from dbo.rosterperiod
Look for the employeeid for which violation is occurring using the below script
select * from dbo.employee where empcode='XYZ'
Check if there are employeeroster records for the period in question
select * from employeeroster where employeeid='ABC' and rosterperiodid>='X'
If you find those missing, you need to drop the employeeroster and rosterperiod records from the time its missing for any particular employee using the below scripts
delete from dbo.employeeroster where rosterperiodid>'X' delete from rosterperiod where id>'X'
Go to UI > Configure > Employee > Employee Rosters > Roster Period Definition and Click on Generate Roster Period button (highlighted in yellow below)
It will prompt below window with the records missing the Roster Periods, and HIT SAVE. This would re-create the records in EmployeeRoster table
Verify the same using the below script
select * from employeeroster where employeeid='ABC' and rosterperiodid>='X'
Related articles