Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Pega Value List Array to JSON string

SA-9222

Summary



We have built a PRPC REST CONNECTOR – our Work Class contains a ‘Value List’ as one of the Property Types.
When we call the “Connect-REST” method on our REST CONNECTOR – we receive an error – no attempt is made by PRPC to connect to the REST endpoint.

Error Messages



Status     fail
Message    The property ContextPage.Record.ITEMS(1) was of mode String while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getPageValue() was expecting Page mode. Details: (none)
Operator ID     [email protected]
Requestor ID    HE2420E4C9FB2F6CC53770E7B2E9EC7F9

Steps to Reproduce



The following steps demonstrate a minimal way to reproduce the issue:
 
Create two properties – one scalar of type ‘text’ (‘ID’ here) , the other should be of type ‘Value List’ (‘Items’ here).

 




Create a DATA TRANSFORM to populate the properties:

 
Test the Data Transform – it should result in a Page As followings:
 

 
Create a CONNECT REST rule – On the ‘Methods’ Tab – on one of the methods (‘POST’ used here) – specify ‘Map FROM’ as ‘JSON’ and ‘Map From Key’ to point to the outer-most property (‘.Record used here).
 

 
 
Create an ACTIVITY to call the CONNECT REST RULE:
 

 

 
Call the ACTIVITY: this will result in the error message:
 

 


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules.

Resolution



This issue does not occur in PRPC 7.1.7.

 
 
 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us