Support Article
OOTB Round to digits function is not working as epxpected
SA-29551
Summary
User using round(...) function in expression builder. While validating the expression, they are getting the alert error message on screen.
Error Messages
Expression is not valid. Error messages are shown below.
Invalid Expression or reference: No suitable instance found
[seeking]
@(Pega-RULES:ExpressionEvaluators).round(double,int)
[candidate function are]
@(Pega-RULES:ExpressionEvaluators).round(BigDecimal,void)
@(Pega-RULES:ExpressionEvaluators).round(void,void)
Steps to Reproduce
- Open any declare expression > Expression Builder
- Select All from library and select round(...) from function
- Give the input values for numericArg (BigDecimal) & places (Number)
- Insert > Validate
Root Cause
A defect in Pegasystems’ code or rules. The round function parameters type "Number"(Java type) doesn't support with our engine.
Resolution
Apply HFIX-30101
In expresion builder, use pzRound(...) function instead of round(...) function.
Published October 27, 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.