Timesheet rules that can not be validated get disabled when submitting timesheets with no tasks
search cancel

Timesheet rules that can not be validated get disabled when submitting timesheets with no tasks

book

Article ID: 429695

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Timesheet rules that can not be validated get disabled when sibmitting timesheets with no tasks

STEPS TO REPRODUCE:

  1. MUX > Administration > Timesheets > Create a New Rule
    • Error message: You can not submit a future timesheet with a project
    • Timesheet Error Conditions >>> Time Period Start date > Current date
    • Time Entry Error Conditions >>> Where Investment > Name (Investment) Contains PR
  2. Enable the rule
  3. Classic Administration > Project Management > Timesheet Options > Modern UX Options
  4. Enable the Allow submission of timesheets with no tasks option
  5. Take any timesheet > Don't add any task and submit it

Expected Results: The timesheet to be submitted

Actual Results: 
You get the following error: This timesheet cannot be submitted due to errors. Please correct the items and resubmit.
Rule: [((timeperiod.start_date > dateMacroOffset("currentDateAndTime", 0)) && contains(inv.name, "PR", 1))] failed to parse at runtime. Rule will be disabled
AND
The timesheet rule gets disabled

Environment

Clarity 16.3.3 to 16.4.1

Cause

This is caused by DE182701

Resolution

This is fixed in Clarity 16.4.2

Additional Information

app-ca.log file registers the following:
ERROR 2026-02-17 02:52:09,721 [http-nio-1633-exec-291] service.TimesheetValidationService (clarity:myuser:mysession:timeadmin.saveTimesheetExit) (6deb1f3e-0f3c-40db-bfc8-c72ef9eec30e) Rule: [((timeperiod.start_date > dateMacroOffset("currentDateAndTime", 0)) && contains(inv.name, "PR", 1))]   failed to parse at runtime.  Rule will be disabled and marked invalid
ERROR 2026-02-17 02:52:09,725 [http-nio-1633-exec-291] service.TimesheetValidationService (clarity:myuser:mysession:timeadmin.saveTimesheetExit) (6deb1f3e-0f3c-40db-bfc8-c72ef9eec30e) 
java.lang.Exception: Rule: [((timeperiod.start_date > dateMacroOffset("currentDateAndTime", 0)) && contains(inv.name, "PR", 1))] failed to parse at runtime. Rule will be disabled.
at com.ca.clarity.timeadmin.service.TimesheetValidationBaseRule.evaluateExpression(TimesheetValidationBaseRule.java:1124)
at com.ca.clarity.timeadmin.service.TimesheetValidationBaseRule.loadVarsAndEvaluate(TimesheetValidationBaseRule.java:813)
at com.ca.clarity.timeadmin.service.TimesheetValidationStandardRule.validateTimeentry(TimesheetValidationStandardRule.java:118)