System Error editing scheduled job properties
search cancel

System Error editing scheduled job properties

book

Article ID: 211333

calendar_today

Updated On:

Products

Clarity FedRAMP Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

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: 

  1. Go to 'HOME' > 'Reports and Jobs' and open 'Jobs' tab. 
  2. Open a certain job and click the 'Set Recurrence' link.
  3. Click the radio button next to 'Use Unix Crontab entry format' and specify the schedule that contains "-" in the fifth attribute. E.g. " "0 2 * * 1-5".
  4. Specify required fields and click 'Submit' button.
  5. Open the created scheduled job.

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. 

Environment

Any supported Clarity release

Cause

This is working as designed.

Clarity does not support the full UNIX crontab syntax, just a selective set.

  • Clarity does not support "-" or "/" as Cron operators.
  • Clarity supports "," as a separator for days of week.

Resolution

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