Question

2
Replies
177
Views
yurispinto Member since 2018 4 posts
Tata Consultancy Services
Posted: 2 years ago
Last activity: 2 years 1 month ago
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
Share this page LinkedIn