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 11.13.20.01.0 and later
Information in this document applies to any platform.

Goal

On : 11.13.20.01.0 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)


 

Solution

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
Goal
Solution


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