Support Article
Report unable to sort by integer sourced by declare expression
SA-64825
Summary
In a report definition, sort (ascending or descending) on an integer property does not work. Calculation of this integer property value is performed using a declare expression.
Error Messages
Not Applicable
Steps to Reproduce
- Create a property that is an integer.
- Calculate this property using a declare expression.
- Create a report definition Sort by this property.
- Display report definition in a section.
Root Cause
A report definition provided with a property attempts to find the column in the database that holds the property to execute it in SQL (not in Java). The report definition cannot directly filter records based on the expression defined in the PRPC layer.
For more information, refer to: https://community.pega.com/support/support-articles/sort-and-filter-not-working-property-declare-expression
Resolution
Here’s the explanation for the reported behavior:
Sorting by a declare expression is not supported due to how report definitions are executed.
Published October 23, 2018 - 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.