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

Page-Remove not working as expected in activity loop

SA-21365

Summary



An activity is configured to loop through a list of embedded pages and perform a Page-Remove if the preconditions are met. The activity completes without any errors but the embedded page is not removed.


Error Messages



Not Applicable
 

Steps to Reproduce

  1. Write an activity to loop through a list of embedded pages.
  2. Use a Page-Remove step to remove the embedded page if a precondition is met.


Root Cause



An issue in the custom application code or rules. The issue can occur when removing the page associated with the loop iterator.

Resolution

Perform the following local-change: call a separate activity in place of the Page-Remove and then copy the temporary list back when the loop is complete.

See this related Support Article for additional information.
https://pdn.pega.com/support-articles/pageremove-not-working-properly-pagelist

Published March 25, 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.

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