Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

IllegalArgumentException invalid year value

SA-11548

Summary



You see IllegalArgumentException in the logfiles. Upon research, it appears the issue is related to the formatting of a date file with the following Function: @(Pega-RULES:DateTime).CurrentDate('YYYYMMDDTHHMMSS.QQQ', 'GMT').

Error Messages



javax.ejb.EJBException: nested exception is: java.lang.IllegalArgumentException: Invalid year value

Steps to Reproduce



Enter data in the UI and continue through the flow.

Root Cause



The root cause of this problem is a defect in customer application code/rules. The date format string had incorrect case for some of the date components. 'Y' should be 'y'.

Resolution



This issue is resolved through the following local change:  The date format string was dropped.  Use of the correct Java date format string would have worked too.

Published July 6, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us