Close popover
John Lordo (JohnLordo)
Eventus Solutions Group
Senior Architect
Eventus Solutions Group
JohnLordo Member since 2020 3 posts
Eventus Solutions Group
Posted: March 24, 2021
Last activity: April 6, 2021

Issue with Savable Data Page: Data save options When rule - unexpected behavior

Hello all,

please find a summary of my issue here and screenshots of all relevant rules, tracer and clipboard pages further below.


In which context is the when rule of a data save option evaluated?


I am experiencing unexpected behavior with savable datapages that have multiple save options. I am aware that each save option's when rule is evaluated and when true then the save option is performed (thus allowing us to perform multiple save options in a single datapage-save operation).

The documentation on this is not explaining in detail in which context the when rules are evaluated in. My assumption was that it is the datapage itself but that does not seem to be the case:

The primary question is: in which context is the when rule of a data save option evaluated?

If the answer to that is not the data page itself, then my follow up question would be how to write a when rules that evaluates a datapage save option based on the data on the datapage at the point in time when the datapage-save operation is called?


Here is what I am experiencing in this scenario (screenshots further below).

There's an OOTB flow calling datapage-save for the D_Contact_Details datapage.

We have specialized this data page to have multiple Data save options, which trigger based on when rules named UpdateExternalContactSOR and WriteToPegaContactSOR.

In Tracer we see these rules executed in the context of a page named =unnamed=.

The first data save option, which uses the UpdateExternalContactSOR When rule evaluates to false in tracer. That is because it checks certain fields to have certain values but the =unnamed= page is completely empty.

If that When rule would have been executed in the context of the datapage itself, it would have evaluated to true and executed the save option.

I am looking for a way to execute that save option, but only if certain fields on the datapage have certain values and have a when rule for that. Is there a way to achieve this and is it expected that data save option when rules are evaluated in an empty =unnamed= page context?

Thank you for your support!


Flow rule


data page rule

Tracer screenshot

unnamed page


values on data page

***Edited by Moderator Marissa to update Support Case Details***
Pega Customer Service 8.5 Pega Platform 8.5.2 Data Integration Case Management Lead System Architect Support Case Created