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

Validate error behavior incorrect

SA-106292

 

Summary

A Validate rule is configured to verify that all fields on the section are completed before submission. When the user selects Submit on the last step of the screen flow, the Validate rule is triggered and fails for the fields that are blank. However, the error that generates on pyworkpage for the specific fields, does not display on Pega Client for Windows. Hence, the user is unable to know what failed. The case is not submitted and stays in the user's worklist due to the submission failure . The user is unable to identify what to correct in order to progress the case in the flow.

Error Messages

Not Applicable

Steps to Reproduce

  1. Open Pega Client for Windows as an Inspector
  2. Click Submit at the end of the screenflow with a few required fields left blank on the Inspection form. Errors display on the Tracer and do not display on the User Interface 

Root Cause

An issue in the custom application code or rules. Expression evaluation which is not supported by Validate rules in Offline mode, is used by the user. In addition, the Validate rule used Call for each to reference other rules which is also not supported.

Resolution

Perform the following local-change:

  1. Use the Required checkbox or from StringLibrary length function (compare with 0) or equalsIgnoreCase (compare with empty string), instead of expression evaluation
  2. Open the list of supported Offline functions on Help under Offline Capability > Validate rule support in Offline mode.
    The documentation states that Call for Each is not supported by Validate rule in Offline mode. Not supported conditions are skipped by the Validate rule. Additionally, only direct validation of a single-value property is supported.

Published July 21, 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