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.

PegaRules-Exception.txt (11.2 KB)

SR INC-146849 created for this issue.

@Vamsi.Thatavarthi hi, did you get this solved? I’m also facing the same

@vaspoz Hi were you able to get this resolved on your end? I have the same issue. Please share your fix. Thanks

While reviewing the associated incident INC-146849, this was resolved by upgrading to 8.4 as this was corrected in that version by adding features to drop the columns.

If you are also having this issue, it is recommended to upgrade to at least version 8.4.