Question 2 Replies 35 Views × Close popover Paulina Velez (apvelez) Anthem Pega Developer Advisor Anthem US View Profile Send Message apvelez Member since 2019 4 posts Anthem Posted: January 31, 2021 Last activity: February 1, 2021 Posted: 31 Jan 2021 8:03 EST Last activity: 1 Feb 2021 14:41 EST Ecxeption when retrieving Work Page errors Pega 7.1.8 I'm trying to capture error messages from a page into a string parameter, but I always get the following error: java.lang.ClassCastException: com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl cannot be cast to java.lang.String I have tried the following method which always result in a java exception: @(Pega-ProCom:ProcessEngineStatus).getErrorMessages(tools, pyWorkPage) When I look at the function definition, the return type is string and I'm trying to store the returned value into a string parameter with no success. my pyWorkPage inherits from a class that inherits from the Work- class. Param.ErrorMessages = @(Pega-ProCom:ProcessEngineStatus).getErrorMessages(tools, pyWorkPage) What am I doing wrong? ***Edited by Moderator: Pooja Gadige to add platform capability tag*** Pega Platform 7.1.8 Enterprise Application Development Case Management Healthcare and Life Sciences System Architect × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Posted: 2 months ago Posted: 1 Feb 2021 0:24 EST × Close popover Prakash Deep Rai (PrakashDeep) Aaseya IT Services Pvt LTD Prakash Deep Rai Aaseya IT Services Pvt LTD IN View Profile Send Message PrakashDeep Aaseya IT Services Pvt LTD replied to apvelez @apvelez Hi, Try passing pyWorkPage as a string. Like below. Param.ErrorMessages = @(Pega-ProCom:ProcessEngineStatus).getErrorMessages(tools, "pyWorkPage") Posted: 2 months ago Posted: 1 Feb 2021 14:41 EST × Close popover Paulina Velez (apvelez) Anthem Pega Developer Advisor Anthem US View Profile Send Message apvelez Anthem replied to PrakashDeep I have tried this, but I get the following error: ** Error: Clipboard page 'CAREFileServicePage' does not inherit from the class Code-ProcessOutput My class for the page is AGP-FW-CAREFW-Data-FileMessage. This class inherits from Work- I also applied direct inheritance for class AGP-FW-CAREFW- to inherit from Code-ProcessOutput I still have the same issue.