When editing a specific scheduled job instance properties, we get a system error. As a result, we are unable to view the scheduled run times or refresh the frequency of the job.
"ERROR System error. Contact system administrator."
The app-ca.log shows the following error message.
ERROR 2021-03-24 16:27:26,281 [http-nio-8080-exec-16] niku.xql2 (clarity:myuser:mysession:nmc.jobProperties)
Internal Processing exception
java.lang.Exception: Failure while evaluating "toDaysOfWeek(@START_DATE,@DAYS_OF_WEEK)"
in expression "{toDaysOfWeek(@START_DATE,@DAYS_OF_WEEK)}" error: Invalid expression toDaysOfWeek(@START_DATE,@DAYS_OF_WEEK):
For input string: "1-5"
Steps to Reproduce:
Expected Results:
The scheduled job is displayed with the specified schedule settings.
Actual Results:
"ERROR System error. Contact system administrator." is displayed and the specified schedule is not displayed.
Any supported Clarity release
This is working as designed.
Clarity does not support the full UNIX crontab syntax, just a selective set.
If creating a new job instance with the invalid crontab entry, the error will appear.
If updating an existing job instance, the job instance can be updated, therefore the workaround is to change the definition from the "-" notation to the comma-listed notation.
If the crontab entry looks like the one below, you will get the error:
0 2 * * 1-5
Change the crontab entry to a format like the one below::
0 2 * * 1,2,3,4,5