Question

5
Replies
1100
Views
Dinesh Kumar Dhanasekaran (DineshKumarD9112)
Accenture

Accenture
IN
DineshKumarD9112 Member since 2017 21 posts
Accenture
Posted: October 28, 2019
Last activity: November 12, 2019
Posted: 28 Oct 2019 10:38 EDT
Last activity: 12 Nov 2019 2:50 EST
Closed
Solved

Reg mapping JSON Array List from Rest API Response to Pega Value List Property

The Pega PRPC version used is 8.2.1

We are Calling the REST API using Connect REST from Pega PRPC 8.2.1, in the response we receive the below conditions json array, we have mapped the below JSON Array to a value list as it is only single value elements inside the json array. snippets below,

"conditions":[
"condition text 1",
"condition text 2"
]
When this mapping is done, pega throws an error like below,
WrongModeException conditions(1) was of mode String while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getPageValue() was expecting Page mode
The same works when conditions property is created with page list type.
Is it recommended to create conditions property as pagelist for the mapping to be successful or is there an hotfix for this?
***Edited by Moderator Marissa to update platform capability tags****
Pega Platform Low-Code App Development Data Integration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.