Support Article
Using FormatDateToString with "fx" button hangs design view
SA-15741
Summary
When creating a Report Definition, attempt to format a Date or Time column results in an exception when using the FormatDateToString function from ruleset PegaGOV:07-12-01. Once this happens the browser becomes unresponsive and it is required to log out and back in again to address the issue.
Error Messages
2015-10-19 20:18:42,879 [ttp-bio-8080-exec-79] [TABTHREAD0] [ your_ruleset:01.01.01] (ngineinterface.service.HttpAPI) ERROR your_server|127.0.0.1 pegasupport - 127.0.0.1: com.pega.pegarules.pub.PRRuntimeError
com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:706)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:461)
. . .
Caused by: java.lang.NumberFormatException: For input string: "Date"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at com.pegarules.generated.activity.ra_action_pzpopulatepatterntext_4369abfe03d8d9114eb8021fd8e848bc.step7_circum0(ra_action_pzpopulatepatterntext_4369abfe03d8d9114eb8021fd8e848bc.java:513)
. . .
Steps to Reproduce
- Create a Report Definition with a DateTime column.
- Select the (fx) button on that column and select FormatDateToString.
- Observe the error.
Root Cause
The function alias for FormatDateToString was incorrect.
Resolution
Apply HFix-24321.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.