CurrentDate and ToDateTime functions do not work correctly
CurrentDate and ToDateTime functions are not working correctly in Java 1.7. The functions @(Pega-RULES:DateTime).CurrentDate("YYYYMMDD", pxRequestor.pyDefaultTimeZone), toDateTime(), and pxCreateDateTime Control return Null. This works in Java 1.6.
com.pega.pegarules.pub.clipboard.InvalidValueException: String was not a datetime "20180907T081428"
Steps to Reproduce
Write an activity using the CurrentDate and ToDateTime Rule-Utility-Functions.
An issue in the custom application code or rules.
The use of 'YYYYMMDD' as a Date format is not supported. This stopped working with third-party Java update.
Perform either of the following local-changes:
- Replace all occurrences of 'YYYYMMDD' with 'yyyyMMdd'
- Create custom versions of CurrentDate and ToDateTime to scan for the incorrect format and replace with the correct format.
0% found this useful