Issue
Custom validation error messages are not displayed when data objects are edited via a landing page or savable Data Page in applications using the Constellation UI.
Symptoms and Impact
The following generic error is returned when data objects are configured with the Edit Validate rule:
The following generic error is returned when data objects are configured with the savable Data Page validation:
Steps to reproduce
To reproduce this error, follow the below steps:
- Create an editable list view with Data Page as the source in your Constellation application:
- Enable Edit, Delete, and Create and add to list options in the list view:
- Add the list view to a landing page in the Constellation portal
- Edit or add a new data record with an invalid value
Root Cause
Pega’s existing DX API response only supports generic, and not custom validation error messages.
Solution
To resolve this error:
- Update to Pega Platform 23.1.3, see Pega Platform™ 23.1.3 Patch Resolved Issues.
- Update to Pega Platform 24.2, see Pega Platform 24.2 Resolved Issues.
- Configure custom validations using the savable Data Page option.
References
Enabling CRUD operations for list-based landing pages