Support Article
Connect REST fails to map using property qualifier
SA-24904
Summary
Connect REST fails to map using property qualifier pzExternalName set to "preferences" for "WalletPreferences" property.
Trying to use pzExternalName due to existence of property "preferences" in base class as page rather than page list.
Error Messages
Caught exception: com.pega.pegarules.pub.PRException: Error mapping incoming response to .Test_Response: com.pega.pegarules.pub.clipboard.WrongModeException: The property TestPage.Test_Response.preferences was of mode Page while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getPageValue(int) was expecting Page List mode.
Steps to Reproduce
- Create a connect-rest rule and invoke service which returns preferences of type list in JSON object.
- Create a property name WalletPreferences and provide a qualifier pzExternalName with preferences.
Root Cause
A defect in Pegasystems’ code or rules. The pzExternalName property reference is not being used for embedded list.
Resolution
Remove the existing "preferences" property since pzExternalName is not remapping the external list name to the new name, as expected.
Published June 30, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.