Question

2
Replies
183
Views
Close popover
Yuri Pinto (yurispinto)
Tata Consultancy Services

Tata Consultancy Services
BR
yurispinto Member since 2018 4 posts
Tata Consultancy Services
Posted: August 16, 2018
Last activity: August 17, 2018
Closed

Error when running function

Hi,

We are trying to call function inside a default value expression without success, getting this error:

Problem appending stream null
com.pega.pegarules.pub.PRRuntimeException: Section 'SearchCriteria' execution error on page 'pyDisplayHarness' of class 'BRD-Data-Portal'. : The reference @(Pega-RULES:BusinessCalendar).addDays(@(Pega-RULES:DateTime).CurrentDateTime(),-15,false,Grecorian) is not valid. Reason: unexpected character '@' at position 0, expected start of name or a dot
at com.pegarules.generated.html_section.ra_stream_searchcriteria_ca0bff8e6b4a03e8180555e20d453d42.execute(ra_stream_searchcriteria_ca0bff8e6b4a03e8180555e20d453d42.java:234)

For testing, I've created a section with just a Text Input, using @(Pega-RULES:DateTime).CurrentDateTime() as Default Value and I still getting this same kind of error. I've tried to regenerate this function/library but without success. Also tried to test another function from another library, same problem.

It used to works before, but it stopped recently. We're running Pega 7.2.2.

Any help would be highly appreciated.

Thanks,

Yuri Silva

Pega Platform Low-Code App Development
Moderation Team has archived post