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 does not fire as expected

SA-40527

Summary



User has configured a pagelist in the repeating grid of the section and that pagelist property was made as the source property for the declare index for that class. Sometimes, the declare index is not triggered and the data is not written to the index table. 


Error Messages



Declare index is not triggered.


Steps to Reproduce



1. Configure a repeating grid with source as a page list property. 



2. Configure a declare index for that particular class which has the page list property as source context of declare index. 



3. When the flow action which includes the above section is submitted, then observe that the declare index is triggered or not.


ROOT CAUSE & 

Resolution

The reported behavior is very sporadic and hence below is the suggested solution which ensures that all indexes on the work object are populated correctly. 

In the flow action of the assignment which does the "Save" of the "ActivityList" pagelist, configure a pre-processing activity as below.



That is,Setting pzReindex to True will do a force re-indexing and the existing index values are ignored. 

Before the pzReIndex is configured below are the index increments observed in tracer:



After pzreindex is configured in pre-processing activity of the flow action, below are the observed index increments which are proper.

Published October 8, 2020

Was this useful?

100% 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