My Oracle Support Banner

Creating Variable With DATE() Function Ends In Error --> Value Of Year Must Be Greater Than 0 (Doc ID 2650638.1)

Last updated on MARCH 19, 2020

Applies to:

Oracle Fusion Sales Cloud Service - Version and later
Information in this document applies to any platform.


On : version, Leads, Sales Campaigns

The usage of the below groovy script ends in error message  >>  java.lang.IllegalArgumentException : value of year must be greater than 0

def creationDate = itemMap.get(0).get('CreationDate')
def year = year(creationDate)
def month = month(creationDate)
def day = day(creationDate)
def newcreationDate = date(year,month,day)



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.