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

Declare-index rule producing two records instead of one

SA-21707

Summary



Two different deferred-saves generate a "WRITE INDEX" event in the tracer. Two index class records are produced when only one is expected.

Error Messages



Not Applicable

Steps to Reproduce



Include a deferred-save to produce a WRITE INDEX event in Work-.SaveAttachment, and another one in RecalculateAndSave activity.

Root Cause



Having two "WRITE INDEX" events is normal, and one can be expected each time a deferred-save is performed if property is changed that is mentioned on a declare-index rule.  However, the multiple "WRITE INDEX" events should get coalesced by the system into one record in the index table, but two different pages, each containing the same object, were being used as the step page.

Resolution



Use the same work page throughout the transaction rather than using a second page.

Published April 4, 2016 - 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