Support Article
Declare Index does not delete data from index table
SA-11718
Summary
You have a Declare Index rule that does not delete data from the index table if a Page is removed from the related Page List.
Adding a Page works fine and inserts an entry to the index table.
Error Messages
Not Applicable
Steps to Reproduce
- Create a Declare Index rule in Class A (which should not be the Class of the top-level Page at run time) for the source Page context of Class B.
- At runtime remove a Page from the Page List of Class B.
- Review the table that the Declare Index points to.
Root Cause
A software use or operation error whereby the Declare Index rule is created in Class A, but the removal of Pages from the Page List is done when the top-level Page is of Class C. That difference in Class results in the indexes not being deleted.
Resolution
Perform the following local-change:
Save As (Copy) the Declare Index rule in a top-level page of Class C with the source Page context Class as B. Then whenever the pyWorkPage is saved, the corresponding indices will be updated.
Published February 7, 2019 - 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.