Sage 300 ERP payroll 7.2 - error when printing a report

SOLVED

A client is trying to run an accrual report - see details below.

In Earnings/Deductions Summary

Accrual

Vacation

Current Balances

Employee 100 to Employee 9999

 

This produces a 39 page report that she can only print 37 pages of and she gets the following error message

 

“A day number must be between 1 and the number of days in the month

 

Details: errorKind

Error in File CPEDSAB1

Error in Fomula fmtCarryDateEnd:

‘if Not(is Null({CPEMPD,CARRYDATE})) And {CPDTLM.CATEGORY}=1

Then

 

A day number must be between 1 and the number of days in the month

 

Details: errorKind

Any thoughts or suggestions?