Error on Page-Copy after Apply-Parse-XML

We need to perform a Page-Copy after applying a parse XML. Although the Parse XML appears to execute correctly, we get the following error when the Page-Copy is called:

2021-02-19 12:19:49,768 [ttp-/0.0.0.0:8443-11] [  STANDARD] [                    ] [         BP:01.03.24] (      internal.mgmt.Executable) ERROR bpcls.uat.ro.cre.insim.biz|10.98.65.89 [email protected] - Exception 
com.pega.pegarules.pub.clipboard.InvalidParameterException: cannot be null.  Details: Invalid value for aValue passed to com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.add() 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyBase.add(ClipboardPropertyBase.java:2447) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyBase.add(ClipboardPropertyBase.java:2442) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyBase.add(ClipboardPropertyBase.java:2438) 
	at com.pega.pegarules.priv.integration.xml.ParseXMLSAXRuleWrapper.prPutAll(ParseXMLSAXRuleWrapper.java:3183) 
	at com.pega.pegarules.priv.integration.xml.ParseXMLSAXRuleWrapper.prPutAll(ParseXMLSAXRuleWrapper.java:3130) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAll(ClipboardPageImpl.java:2963) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAll(ClipboardPageImpl.java:2840) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAllAndReconcileRefProps(ClipboardPageImpl.java:2808) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPageBase.putAll(ClipboardPageBase.java:1167) 
	at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAll(ClipboardPageImpl.java:482) 
	at com.pegarules.generated.activity.sh_action_loadt7979_old_5c4df00c4c21918c02ac07f045cef639.step5_3_circum0(sh_action_loadt7979_old_5c4df00c4c21918c02ac07f045cef639.java:758)

Can you help us understand what seems to be the issue?

Commenting out the Page-Copy method call makes the activity run successfully, but trying to access from clipboard the page on which Apply-Parse-XML was called results in the following error:

Thread Lock Message

InvalidParameter cannot be null aValue com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.add()

with no additional error in the logs.

We’re using Pega 7.1.8

Any help would be appreciated.

@ioana.paraschiv

Have you tried to validate the page? Anything inconsistent on your data before the Page-Copy?

@MarcLasserre_GCS I have verified the page contents, there is no issue. If instead of Page-Copy we create the target page and copy the properties individually using Property-Set, we have no error either, and the page content is exactly what is expected.

Hi all,

Although the problem description doesn’t seem similar, I tried the solution proposed for this problem: Apply-Parse-Xml method not working | Support Center and it worked.

In our case, the Apply-Parse-XML method doesn’t fail and produces the expected result, but leaves the page in an inconsistent state, which causes errors when trying to execute the Page-Copy method (or when trying to review the page in Clipboard).

The solution was to create the following DSS:

Purpose : SwitchToOldAssembler
Owning Ruleset : Pega-IntegrationEngine
Value : true