Hello, recently we experienced some trouble, caused by data transform which contains @(Pega-RULES:DateTime).FormatDateTime function. The problem was temporary and completely dissapeared after several days (maybe server reboot has resolved it).
In the DT we are using simple function combination @(Pega-RULES:DateTime).FormatDateTime(@(Pega-RULES:DateTime).CurrentDateTime(), "yyyy-MM-dd'T'HH:mm:ss.SSS", "GMT", "GMT") to set value to the text property. Currently this combination works fine at both test and production units. But for two days straight this error appeared in logs at one node, resulting in exception:
I've not seen such an exception before. Have you raised a Support Request with GCS to see if this is a known issue with Pega 7.1.6? Perhaps your JVM has been upgraded at the time the issue started happening?
In the absence of a fix from Pega GCS for your version of Pega, consider implementing your own Function rule that does date/time formatting which directly references the SimpleDateFormat implementation in whatever JVM you are using, instead of depending on the PRDateFormat implementation. It wouldn't be more than a few lines of Java, but you'd have to refactor everywhere in your app that calls @FormatDateTime to call your new Function.