Question

Is there any option available to expire/remove node level data page if any error while loading data page.

Is there any option available to expire/remove node level data page if any error while loading data page.

If there is any exception/service unavailable empty data page is getting created and not able to load actual data if service is available after 5 min.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
July 19, 2016 - 10:26am

Hi Swaroop,

I have implemented below approach to flush error/empty datepage

Create standard agent runs for every 30 sec and manually created one instances of XYZ data class with data page name along with parameters.and tried to que the same recod/instance to standard agents which runs for every 30 sec to flush the datapage with parameters.

Hope this helps you and let me the approach that you have implemented.

Thanks,

Maheswar Reddy B

Comments

Keep up to date on this post and subscribe to comments

October 13, 2015 - 10:45am

There doesn't appear to be any specific option to do this on the data page rule form. However, you should be able to achieve this by having the activity/data transform that's loading your page to evaluate any errors and doing a page-remove/remove when they exist. Or in the Data Page rule form has a field for running a Post load processing activity that you could write to check for errors and remove the page when they exist.

I think the latter option is probably your best bet.

Thanks.

B.

Brendan | Community Moderator | Pegasystems Inc.

October 14, 2015 - 6:12am
Response to BrendanHoran_GCS

Brendan Horan Manually i am able to Expire/Remove the data page in Activity or Data transform where i am trying to refer the data data page, but unable to implement same logic in Post load processing Activity or Load activity.

I have tried to remove Data page in post load process through simple Page-Remove/@(Pega-RULES:DeclarePages).ExpireDeclarativePage(tools,D_DataPageName)/Java code, but the page is not getting removed.

@(Pega-RULES:DeclarePages).ExpireDeclarativePage(tools, D_DataPageName) returns false if i used in load or post load processing activity and also i have seen below note in PDN article i.e., (Do not attempt to reference the currently loading data page from within the response data transform. This method does not work and can cause errors when you try to load the data page.)

October 14, 2015 - 6:21am
Response to BrendanHoran_GCS

In our application we are using "Copy data from a data page" data access option available for single page / page list properties. Because of this we are looking for solution that deleted/expire the error data page automatically.

Pega
October 25, 2015 - 11:40am
Response to Maheswar_Reddy_B

could you please try calling Rule-Declare-Pages.FlushDeclarativePage at post load processing if data page fails to load/run expected data and share your observations/thoughts, Thank you!

also please refer: https://pdn.pega.com/data-management/data-page-error-handling

November 3, 2015 - 1:38pm

We have tried many options to remove data pages in post load processing Activity, but couldn't succeed. For time being I am expiring/removing data pages by using standard agent.

June 1, 2016 - 11:07am

Hi Mahesh,

Have you found any solution for this?

We have the same issue in our application (we are on 7.1.7). When the source is not available, an empty Data page is getting created and getting cached. This gets only refreshed after the configured Refresh Interval is reached. We tried Page-Remove in Post load processing and also tried calling FlushDeclarativePage activity but nothing worked. Still a blank data page is getting created.

Regards,

Swaroop

Pega
June 2, 2016 - 1:28pm
Response to Swaroop244

RULE-UTILITY-FUNCTION DECLAREPAGES PZDELETEALLINSTANCESOFDECLARATIVEPAGE be of use?

July 19, 2016 - 10:26am
Response to Swaroop244

Hi Swaroop,

I have implemented below approach to flush error/empty datepage

Create standard agent runs for every 30 sec and manually created one instances of XYZ data class with data page name along with parameters.and tried to que the same recod/instance to standard agents which runs for every 30 sec to flush the datapage with parameters.

Hope this helps you and let me the approach that you have implemented.

Thanks,

Maheswar Reddy B