Support Article
Unable to save declare expression for data page of type list
SA-86297
Summary
Unable to save a declare expression when a data page of type List is referenced for the Sum aggregate option in the Declare Expression rule.
Error Messages
Invalid expression or reference: error Final expression D_myDataPage.pxResults().Price (integer/double) can't be converted into the desired type (ClipboardProperty Collection)
Steps to Reproduce
- Create a data page of type List. Ensure the data page results have either an integer or a decimal property (D_myDataPage.pxResults(1).Price).
- Create a declare expression on the GrandPrice of equivalent type [Integer or Decimal] property.
- Use the Sum Of method in the declare expression to aggregate the Price value in the pxResults.Set GrandPrice = Sum Of D_myDataPage.pxResults().Price
- Save the rule.
Root Cause
A defect in Pegasystems’ code or rules
Resolution
Apply HFix-55695.
Published August 15, 2019 - 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.