Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Last activity: 30 Mar 2023 2:43 EDT
declare index on page list property
Hi Team,
I am getting errors to configure when rule in declare index indexing conditions. Below are the details.
Declare index created for page property saved properly and when rule also applied properly.
Declare index created for page list property (which is inside a page property) saved properly, but when added when rule in indexing conditions then declare index rule not saving and displaying syntax error for that page list property.
We are in Pega 7.1.7, did any one face this issue? Please update us.
Thanks,
Sridevi
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 30 Mar 2023 2:43 EDT
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Hi Carissa,
Thank you so much for the suggestion,HFix-20365 resolved the issue.
Best Regards,
Sridevi
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems
US
Please show some snapshots of:
- index rules main tab
- index rules pages and classes tab
- when rule
- the error message
- the page property rule
- the page list property rule
Thanks. /Eric
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Hi Eric,
Please find attached image with error, getting this error while saving index rule with when condition. But with out when condition its saved properly and worked fine. Negotiations is a pagelist property.
When rule contains just to verify the objclass of the Primary page, i just want to apply this indexing only for certain request types.
Thanks,
Sridevi
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Majority times we do see issues like this and try to get around by altering and trying few differnt things. I understand that without when rule, the syntax of 'Source page context' is fine and allowed you to save Declare Index. But to get around this, let's alter your source page context to .Contract.Negotiations() and try saving it. If at all you can save, create a case and see if the index instances are getting stored. If not we'll figure out another way to get it working.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Hi Govardhan,
I have tried different options to save it like .Contract.Negotiations() but its not saved with when rule. With out when rule index instances saved and updated properly.
Thanks,
Sridevi
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Ok. Can you please share the snapshot of when rule
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Updated: 30 Mar 2023 2:43 EDT
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
Hi Sridevi,
Can you check whether you have HFix-20365 installed? It addresses an error when trying to save a Declare Index rule with a source page context of .Page.PageList(). You may already have this installed since you did not get an error when saving the rule without the When condition.
Carissa
Accepted Solution
Updated: 30 Mar 2023 2:43 EDT
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Boardwalk Pipelines
US
Hi Carissa,
Thank you so much for the suggestion,HFix-20365 resolved the issue.
Best Regards,
Sridevi