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
- Write an activity to loop through a list of embedded pages.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.