Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Last activity: 4 Oct 2018 13:54 EDT
Validation message in clipboard page but not displayed to user
Hello,
I am using Pega 7.2.1 and my validation rule error message is showing up in the clipboard page where the invalid property is located (page= order). However, no error message is displayed to the user/the user is not rerouted back to the incorrect form so the case just continues like normal. How do I make the message show to the user and not just the clipboard page?
I have attached screenshots of the clipboard page with the error message and the validation rule.
Isabella
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Hello Rincy,
I finally got it to work! I set my pages up from the start of the case using pySetFieldDefaults (which made a pyWorkPage.Order page), so then once I validated the property within the .Order page the message would automatically send to pyWorkPage which would be displayed to the user. Since I was validating within pyWorkPage I did not have to use a Pages & Classes reference tab, just entered .Order.Property in the Property field in the Validation tab. Thank you for the suggestions!
Isabella
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CA
Hi
Have you traced the validation conditions..? It should trace Page-Set Messages in the trace.
Thanks
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
How do you trace the validation conditions? Using the Tracer during form submission?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CA
Yes. So the logic is that if pyWorkPage has messages as seen in clipboard, then it should not allow the submit action on flow action to move the screne forward. The fact that screen moved on to next screen means the messages were cleared.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/5e1df259-88ec-40db-aa4a-a5b27280a5f7.jpg?itok=ChGegHBG)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/5e1df259-88ec-40db-aa4a-a5b27280a5f7.jpg?itok=ChGegHBG)
Pegasystems Inc.
US
Hi Isabella,
is your application launched using User Portal, Manager Portal or Dev Portal?
Does the UI (eg. Harness) displayed to user have an error section in it?
Where is your "Page-Set-Messages" added? PostActivity or PreActivity?
Thanks,
Susan
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Susan,
The application is being launched in Dev portal. The UI does not show an error message but a message appears in the clipboard page where the invalid property is found.
I did not use a Page-Set-Messages method, I was not sure about how to integrate that with a Validation condition.
Isabella
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
Pegasystems Inc.
IN
Hello Isabella,
Thanks for posting your query on PSC.
From the provided screenshots, I see you are using Pega 7.2.1 and referring the message is appearing in the clipboard page - order. I assume you are using activity which is called at post activity of the flow action. If yes, in the activity, when you call the Page-Set-Messages method, instead of referring the order page try to refer the pyWorkPage (configuring the same under Pages and Classes with the data class of order page). This should help you see the messages in the UI.
Regards,
Rincy
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Rincy,
I actually went into the Validation tab of the flow action to insert validation conditions instead of using an activity. Should I be using an activity instead?
Isabella
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
Pegasystems Inc.
IN
Hello Isabella,
Thanks for the update.
Could you try using activity and update me if it helps.
Regards,
Rincy
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Hello Rincy,
I finally got it to work! I set my pages up from the start of the case using pySetFieldDefaults (which made a pyWorkPage.Order page), so then once I validated the property within the .Order page the message would automatically send to pyWorkPage which would be displayed to the user. Since I was validating within pyWorkPage I did not have to use a Pages & Classes reference tab, just entered .Order.Property in the Property field in the Validation tab. Thank you for the suggestions!
Isabella
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689952000/d60743e7-ee25-42bd-ae6e-5e09b950efd7.jpg?itok=42aT1ehP)
Pegasystems Inc.
IN
Hello Isabella,
I am glad it worked for you.
And, thanks for sharing the resolution which will help other PSC members. :)
Have a great day!!
Cheers,
Rincy
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tech Mahindra
CA
Hi,
I am also facing the same problem. Can you please share the screenshot of your implementation of pySetFieldDefaults and validation rfule.
Thanks in advance.
![](https://accounts.pega.com/sites/default/files/pega-user-image/209/REG-209263.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/209/REG-209263.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi,
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
srcLogic
US
Hello everyone,
Thank you for the replies! I am not using an activity, just a validation, which evaluates the page after submission. Since I am not using an activity, I did not include a Page-Set-Messages method, just the validation function as shown in the shot. There is no Page-Set option for the validation. Should I be using an activity instead?
Isabella