Question

1
Replies
40
Views
Vamsi.Thatavarthi Member since 2014 35 posts
Hcl Technologies
Posted: September 30, 2020
Last activity: October 7, 2020

PegaUnit When rule - Property * was of mode Page List while ClipboardPropertyImpl.setValueOver was expecting a String or Page mode

Hi All,

When I execute a PegaUnit test case written for a when rule which references Pagelist property, even though the test case shows success, there is an exception logged in Pegarules log as below.

Caused by: com.pega.pegarules.pub.clipboard.WrongModeException: The property *** was of mode Page List while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.setValueOverride(Object) was expecting a String or Page mode. Details: (none) Post creating test case for a when rule referring a PageList property, I see that in assertion, a text box is displayed for Pagelist properties as well. It seems PegaUnit is considering it as a string property. Not sure why.

PFA, complete exception log.

Also, have attached screenshot of the assertion. InnerErrors is a pagelist property.

Thanks.

***Edited by Moderator: Pallavi to update Support Case details***
Pega Platform 8.2.1 DevOps Financial Services Senior System Architect SR Created
Share this page LinkedIn