Support Article

Internal error while copying page

SA-30662

Summary



User has implemented a series of multi-level embedded page properties which establish a reference to a data page.

The following error is generated from the RecalculateAndSave activity when populating a reference property and submitting the item.
 


Error Messages



** internal error while copying page: The reference pyWorkPage.ProductLines is not valid. Reason: Cannot modify value of Reference Property without first linking it to another property using Property-Ref: code: <none> SQLState: <none> Message: <none>

** The reference pyWorkPage.ProductLines is not valid. Reason: Cannot modify value of Reference Property without first linking it to another property using Property-Ref


Steps to Reproduce

  1. Create a case type with property A that is configured to 'Refer to a data page'. There should be another embedded property that is configured to 'Refer to a data page'. Suppose B belongs to A. 
  2. As work items proceed, populate property A and then B. Use the Property-Ref method to populate property B.
  3. Save the page. 
 

Root Cause



An issue in the custom application code.

Property B under property A is defined as a reference property and established a reference to pyWorkPage.A.Lines(Health).

This corrupts the reference property behavior.

This piece of code works under Pega 6 but not in Pega 7 as the validations have been enhanced to capture this fault. 

 

Resolution



Perform the following local-change:

Change the reference of property B from pyWorkPage.A.Lines(Health) to D_DataPage.Lines(Health). 

Published November 22, 2016 - Updated December 5, 2016

Have a question? Get answers now.

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