Script function WEEKDAY_XX accepts an empty string "" or a single blank " " as its date argument and returns "??" instead of raising a runtime error
search cancel

Script function WEEKDAY_XX accepts an empty string "" or a single blank " " as its date argument and returns "??" instead of raising a runtime error

book

Article ID: 452182

calendar_today

Updated On:

Products

Automic Automation

Issue/Introduction

WEEKDAY_XX accepts an empty string "" or a single blank " " as its date argument and returns "??" instead of raising a runtime error. "??" is not among the documented return values(MO/DI/MI/DO/FR/SA/SO).

Expected: consistent validation of the date argument regardless of whether it is blank or non-blank-but-invalid.

Actual: blank input is silently accepted and returns an undocumented value; non-blank invalid input is rejected.

Script to reproduce:

:SET &RESULT# = WEEKDAY_XX("")
:PRINT "WEEKDAY_XX with an empty string: '&RESULT#'"

:SET &RESULT# = WEEKDAY_XX(" ") :PRINT "WEEKDAY_XX with a single blank: '&RESULT#'"

Excerpt from the Job report

2026-08-06 22:45:52 - U00020408 WEEKDAY_XX with an empty string: '??'
2026-08-06 22:45:52 - U00020408 WEEKDAY_XX with a single blank: '??'

Environment

Release: v24.x v26.x 

Component: Automation Engine

Cause

DE210242

Resolution

Update to a fix version listed below or a newer version if available.

Fix version:

Component(s): Automation.Engine 

Automation.Engine TBA - TBA