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

Integers with alphabet input pass validation but cause an error



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.


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 17, 2017 - 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