Skip to main content
Kofax

Kofax TotalAgility - Date specified for runtime methods cannot be more than 5 years before or 5 years after the current year

Applies To

Kofax TotalAgility v7.3 and above

Scenario

When a new job is created manually or automatically, I get the following error: Date specified for runtime methods cannot be more than 5 years before or 5 years after the current year

Cause

The customer has the Business Calendar enabled in Settings -> Work Process.  This has a restriction of 5 years in the past or 5 years in the future.  Therefore, when we try to initialize a job with a date less than 5 years in the past, this error occurs.

Note, this normally occurs at the start of a new year.

Resolution

Change the design time date variable values in the process to be more recent date i.e. the current date time.