Error Messages/40867

Error Message Examples

Unrecognized value to the «dateUnit» parameter in Function Sequence: 'hr'
Possible values are: 'Y', 'Q', 'M', 'WD', 'D', 'h', 'm', 's'

Cause

You have passed an unrecognized value as the dateUnit parameter to the Sequence function. DateUnit parameter can be specified to generate a sequence of dates, and the accepted values to the parameter are:

'Y' : Years
'Q' : Quarters
'M' : Months
'WD': Weekdays
'D' : Days
'h' : Hours
'm' : Minutes
's' : Seconds

The following code creates a date sequence from 1-Jan-2009 to 31-Dec-2010 with a step of 4 months.

Sequence( MakeDate(2009,1,1), MakeDate(2010,12,31), 4, dateUnit:"M" )
Result: [ 1-Jan-2009, 1-May-2009, 1-Sep-2009, 1-Jan-2010, 1-May-2010, 1-Sep-2010 ]

Please click on the following link to learn more about the optional dateUnit parameter.

Remedies

Correct the dateUnit parameter passed to the Sequence function to a recognized value given above.



You are not allowed to post comments.

Comments
<comments />