Support Article
Unable to localize PropertyRequired message for validations
SA-26067
Summary
Using an out-of-the-box required validation in a validate rule, ignores the message defined here. "This field may not be blank" appears at runtime, despite hard coding as given below.

Error Messages
Not Applicable
Steps to Reproduce
Try to localize "required" validation.
Root Cause
This is working by design. This message is not intended to be customized according to https://pdn.pega.com/sites/default/files/help_v718/procomhelpmain.htm#rule-/rule-obj-/rule-obj-validate/validate.htm
Resolution
Perform the following local-change:
Override the source message rule, which supplies the canned "This field may not be blank."
Clicking Save As in a relevant PropertyRequired message rule will result in the error given below.

Follow the steps given below to resolve this error:
- Perform a private checkout of pyRefToFocusKey.
- Remove the pxUseSourceValidate validate rule from the property and save it.
- Save As PropertyRequired to localize it to the requirements.
- Remove the private checkout to pyRefToFocusKey.
Published July 28, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.