"Start and end dates not in a valid Payroll Period, cannot calculate Income Tax"

I’m having a problem with ERPNext not calculating any payroll taxes. I created payroll periods and then tried to run payroll with a start and end date exactly equal to the payroll period I just created, but I’m getting this error message. Any ideas?

Hi Did you get any solution ?

Yes. I was thinking about payroll periods incorrectly. In ERPNext, a payroll period is the year, not the specific payroll period within the month. For example, we run payroll fortnightly, so our 2023 payroll period is 25/12/2022 - 23/12/2023.