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

FIRST aggregate in bucketed window is broken



FIRST aggregates do not provide the correct results when used in Sliding Time window together with Average aggregate.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create SlidingTimeWindow (2min) > AVG(A), FIRST(A)
  2. Insert {A=10,time=10:00}{A=11,time=10:01}{A=12,time=10:02}

    Verify the output: {AVG=11.5, FIRST=1} expected: {AVG=11.5,FIRST=11}

Root Cause

A defect in Pegasystems’ code or rules.
Incorrect implementation of FirstAggregatorHolder.substractAggregate which used the propertyIndex to obtain the aggregate value.


Update to Pega 8.1.3 patch release.


Published January 20, 2019 - Updated December 2, 2021

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