Support Article
"This Item is mandatory" validation error appears incorrectly
SA-89797
Summary
User has configured a few Know Your Customer (KYC) items as Required. On submitting the flow, a Validation icon with the text 'This Item is mandatory' displays despite providing a value for the property. This occurs for properties that use embedded sections.
Error Messages
This Item is mandatory
Steps to Reproduce
- Add a KYC type item in the Pega Client Lifecycle Management (CLM).
- Add an embedded section and add either a dropdown or a Text field.
- Mark this field as Mandatory.
- Submit the request. Verify in the Review screen. Observe the error icon.
Root Cause
A defect in the KYC item configuration and Pegasystems’ code or rules.
Resolution
- Mark the Required condition to Always for the complex item in the KYC type. Do not mark the control in the Edit Section as Mandatory.
- In the KYC type, navigate to Complex item configuration > Add IsComplete condition
to verify that the input value in the embedded section control is not empty.
.G_IndividualAlternateNames(1).pyFullName != ""
- Navigate to the Edit section of the Complex item and add a Refresh-Other section action event.
- Add Target as Other Section.
- Update the Class to PegaKYC-Data-Item
- Set the Section as ComplexItemDisplay.
- In the Activity section, update it with the out-of-the-box ProcessResponse activity and pass the Complex Property parameter with the Complex property for which user is configuring the Edit section
- Apply HFix-56894 (this modifies the Visibility conditions in the ComplexItemDisplay section).
For Icon 1:
Existing condition: (.Response == '') && (.IsMandatory == 'true') && (IsCaseSubmitted)
To be modified to: (.IsComplete !='true') && (.IsMandatory == 'true') && (IsCaseSubmitted)
For Icon 2:
Existing condition: (.Response != '') && (.DocRef=='true') && (.DocCount<=0) && (.IsMandatory == 'true') && (IsCaseSubmitted)
To be modified to: (.IsComplete !='true')&& (.DocRef=='true') && (.DocCount<=0) && (.IsMandatory == 'true') && (IsCaseSubmitted)
Published March 25, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.