Question

How to transform a JSON Array to Code-Pega-List

I am using, ClipboardPage.adoptJSONArray, but fails with following exception

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} span.s1 {font-variant-ligatures: no-common-ligatures}

2019-03-06 11:04:49,532 [ttp-nio-8080-exec-91] [ STANDARD] [ ] [AEG_BaseDev:01.01.01] ( internal.mgmt.Executable) ERROR 127.0.0.1|127.0.0.1 abc@123.com - Exception

com.pega.pegarules.pub.clipboard.InvalidParameterException: invalid mode '?'. Only JavaObject, String, or Page is allowed. Details: Invalid value for aMode passed to com.pega.platform.clipboard.adapters.internal.LegacyPropertyAdapter.getValue(char)

at com.pega.platform.clipboard.adapters.internal.LegacyPropertyAdapter.getValue(LegacyPropertyAdapter.java:999) ~[clipboard.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.mimic(ClipboardPropertyImpl.java:1534) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putCopy(ClipboardPageImpl.java:3156) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAll(ClipboardPageImpl.java:2948) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAll(ClipboardPageImpl.java:2595) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.putAllAndReconcileRefProps(ClipboardPageImpl.java:2562) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageBase.replace(ClipboardPageBase.java:435) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.replace(ClipboardPageImpl.java:108) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageBase.replace(ClipboardPageBase.java:1464) ~[prprivate.jar:?]

at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.replace(ClipboardPageImpl.java:108) ~[prprivate.jar:?]

at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_7a0ac17a006fc1a32ec6d786a4c6154e.step5_circum0(ra_action_pyrunrecordexecute_7a0ac17a006fc1a32ec6d786a4c6154e.java:484) ~[?:?]

at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_7a0ac17a006fc1a32ec6d786a4c6154e.perform(ra_action_pyrunrecordexecute_7a0ac17a006fc1a32ec6d786a4c6154e.java:147) ~[?:?]

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3421) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10794) ~[prprivate.jar:?]

at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.step11_circum0(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:1012) ~[?:?]

at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.perform(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:246) ~[?:?]

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3421) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:484) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3467) ~[prprivate.jar:?]

at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:417) ~[prenginext.jar:?]

at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) ~[?:?]

***Edited by Moderator: Lochan to mask proprietary information***

Comments

Keep up to date on this post and subscribe to comments

March 19, 2019 - 12:53am

Anyone knows how to fix it?

Pega
July 15, 2019 - 4:02pm

You don't show your line of code which is calling the adopJSONarray method.  Can you please show same?

July 16, 2019 - 1:38am

Can you post the complete JSON and the clipboard structure you are trying to map to?