Support Article

Integers with alphabet input pass validation but cause an error

SA-34466

Summary



An integer property is populated with alphabet value or a number that contains one or more spaces( example: "asdf" , 12 345), throwing an error at onchange event.

Error Messages



Fail ** PropertyValueInvalid null .pegaToInteger() Invalid number format (was 12 345). This cause error during datatype conversion.


Steps to Reproduce



1. Configure the text input with property type "Decimal" and UI Control with pxNumber.
2. Add a change event with "refresh the section" action.
3. Call the activity which includes the When rule.


Root Cause



Its an expected behavior, as the property type is of Decimal, user providing the input as "12 35", where the system assuming the given value as string and failing to compare the value with when condition provided in the activity.

Resolution



Type: Explanation

Explanation: Requested user to add one more step in an activity before calling "Property-set-messages" to validate the property value using "Property-validate" method, based on the results to continue next step in the activity.

Published March 3, 2017 - Updated March 17, 2017

Have a question? Get answers now.

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