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

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

  1. Add pxDateTime control with text entry enabled in a section.
  2. Add pxButton with on Click Refresh Other Section Run Activity action.
  3. Include the section in the Portal harness.
  4. Launch the portal.
  5. 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

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