Support Article
IndeterminateConditionalException on submitting invalid date
SA-45267
Summary
IndeterminateConditionalException on submitting a form containing an invalid date format.
Error Messages
Caught exception: com.pega.pegarules.pub.runtime.IndeterminateConditionalException: ** PropertyValueInvalid null .pegaToBigDecimal() Invalid number/date format (was *8/28/20171)
com.pega.pegarules.priv.FUAUtil.activityPreTranIndeterminateConditionalCheck(FUAUtil.java:442)
com.pegarules.generated.validate.ra_action_validate_5d34f98c40794361c6ae75f2f2854eb2.step22_circum0(ra_action_validate_5d34f98c40794361c6ae75f2f2854eb2.java:1654)
Steps to Reproduce
- Add pxDateTime control with text entry enabled in a section.
- Add pxButton with on Click Refresh Other Section Run Activity action.
- Include the section in the Portal harness.
- Launch the portal.
- Provide an invalid value to the Date field and click the button.
Root Cause
A software use or operation error. The configured section was not included in the flow rule and was added in the portal harness. Therefore, clicking the button did not check for form level error because it was not a Submit action.
Resolution
Perform the following local-change:
On clicking the button, configure OnClick - Run Script.
Add the below script in the UserWorkForm:
<script>
function checkErrors(){
if(!pega.u.d.areInputsValid()){
return false;
}else{
pega.u.d.reloadSection(pega.u.d.getSectionByName("XYZ","",""),"ABC",'', false, true, '-1', false);
}
}
Published February 16, 2018 - 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.