Support Article
Validate rule with simple expression not working on Android
SA-46221
Summary
After attaching a Validate rule with a simple string expression to a flow action of an offline-enabled case, the Validate rules fails to execute on submitting the flow action. This issue occurs when the case is run on an Android mobile application with offline support.
Error Messages
pzevalharnessjson_13960501219.js!pzpega_ui_lib_provider_1191955478!pega_yui_13246724026!desktopwrap…:3232 Running validate: <ValidateRuleName> Test-Service-test-Work-Sign
pzevalharnessjson_13960501219.js!pzpega_ui_lib_provider_1191955478!pega_yui_13246724026!desktopwrap…:5768 Building validate: <ValidateRuleName> Test-Service-test-Work-Sign
pzevalharnessjson_13960501219.js!pzpega_ui_lib_provider_1191955478!pega_yui_13246724026!desktopwrap…:3232 Running function: * from Default.
pzevalharnessjson_13960501219.js!pzpega_ui_lib_provider_1191955478!pega_yui_13246724026!desktopwrap…:3248 p.o.rc:_get from cache failed for function, DEFAULT!*
pzevalharnessjson_13960501219.js!pzpega_ui_lib_provider_1191955478!pega_yui_13246724026!desktopwrap…:754 Failed to run validate. Failed to run function. Obtain model of function from cache failed!
Steps to Reproduce
- Create a Validate rule with the condition:
IF @length(.PropetyName)=0 Then Display Message Please Enter Name - Include this rule in the flow action.
- Enable Offline in the case.
- Run the flow and Click 'Submit' button without entering any data in the 'PropertyName' input field.
Root Cause
A defect in Pegasystems’ code or rules. The Validate rule depends on the Select function rules ported to JavaScript functions which are not available.
The below functions are ported to JavaScript and are usable in Validate rules in Offline mode:
- pega.functions.PageLibrary.pxPageListLengthCompare
- pega.functions.WorkUtilitiesLibrary.pxIsAttachmentOfCategoryInCase
Resolution
Apply HFix-38817.
Published December 26, 2017 - 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.