Question
Endeavour Energy
AU
Last activity: 26 Nov 2018 13:28 EST
Declare Index not working properly
Hi All,
I have a declare Index which writes data of pagelist( structure is .testpage.reasons()) to index table.
Each time when reason new page is added/updated , it should create a row in index table. but only .testpage.reasons(1) value is getting indexed not others(ie .testpage.reasons(2))
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Endeavour Energy
AU
Hi All,
I did Obj-Save without write now in trigger activity. It worked
Pegasystems Inc.
FR
Hello,
What product version are you running? Maybe you can try to force reindex
Endeavour Energy
AU
7.1.7 is the version.
Endeavour Energy
AU
When i write a test activity and append the pages with commit, the entries for each page is getting created in declare index table.
In process, iam adding the each page of that list on declare trigger rule for a work object.On clipboard/Workpage is having the appended pages.
But declare index table is not having the records except the first page.
Updated: 5 Sep 2018 5:18 EDT
Pegasystems Inc.
FR
Ah a trigger. Maybe this is because triggers do not perform commit:
Endeavour Energy
AU
But entry for the first page instance is happening and also these added pages are being committed to WorkPage.( Havent performed any commit explicitly).
Declare trigger runs immediately
Endeavour Energy
AU
Accepted Solution
Endeavour Energy
AU
Hi All,
I did Obj-Save without write now in trigger activity. It worked
Aaseya IT Services Pvt.Ltd
IL
Hi Sowjanya,
Whenever the property referred in the Declare Index rule is updated, then automatically Declare Index will be triggered and it will immediately writes the data to the Index table mapped with the Index-Class. No need of explicitly having Obj-Save Write Now. As and when the property in that pagelist gets updated, Declare Index fires.