Support Article

Not able reference parameterized data page in Correspondence

SA-18352

Summary



If a parameterized data page is referenced in a Correspondence rule then it does not work and fails at run time.

Error Messages



Section 'Test' execution error on page 'pyTempPage' of class 'your_class'. : The reference D_TestCorr[Value1].pyLabel is not valid. Reason: declare page parameters not supported by PropertyReference

Steps to Reproduce

  1. Create a data page with a parameter. ie D_TestCorr.
  2. Create a correspondence rule.
  3. Insert a property into the Correspondence rule created in step 2.
  4. Fill out the Property Parameter pop up accordingly (ie. Label = "D_TestCorr[Value1].pyLabel").
  5. Save the correspondence rule.
  6. Preview the correspondence rule.


Root Cause



Use parameterized data pages is not supported in correspondence rules. The PDN link below contains the help document with a list of non-UI rules from which parameterized data pages can be referenced. 
https://pdn.pega.com/sites/default/files/help_v719/procomhelpmain.htm#rule-/rule-declare-/rule-declare-pages/parameters.htm%3FTocPath%3DReference%7CRule%2520types%7CData%2520Pages%7C_____5
 

Resolution



Perform the following local-change:

Create a custom section and set the parameters, then execute the datapage.

example:
Section code:
<%
tools.getParameterPage().putString("EmployeeName", "Amanda Jones");
%>


Correspondence rule:


The declare page, in the above screen shot, is an out of the box one.
 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020


50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.