Distinct the errors and only increment startDate when needed
Distinct the errors and only increment startDate when needed