Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Add a KYC type item in the Pega Client Lifecycle Management (CLM).
  2. Add an embedded section and add either a dropdown or a Text field.
  3. Mark this field as Mandatory.
  4. 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

  1. 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.




     
  2. 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 != ""


     
  3. 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



     
  4. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us