Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Report unable to sort by integer sourced by declare expression



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

  1. Create a property that is an integer.
  2. Calculate this property using a declare expression.
  3. Create a report definition Sort by this property.
  4. 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:


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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us