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

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

  1. Create a Report Definition with a DateTime column.
  2. Select the (fx) button on that column and select FormatDateToString.
  3. Observe the error.


Root Cause



The function alias for FormatDateToString was incorrect.

Resolution



Apply HFix-24321.
 

Published January 31, 2016 - 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