Support Article
Integers with embedded spaces pass validation but cause an error
SA-1838
Summary
A developer notes that when an integer property is populated with a number that containts one or more spaces (e.g. "12345 67890") the following error is produced:
Fail ** PropertyValueInvalid null .pegaToInteger() Invalid number format (was 12345 67890)
This should not pass validation, instead of failing during the integer conversion.
Error Messages
Fail ** PropertyValueInvalid null .pegaToInteger() Invalid number format (was 12345 67890)
Steps to Reproduce
Create an integer propery in a section and enter a number that includes space.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. There is a failure to detect embedded spaces in an integer during screen validation.
Resolution
This issue is scheduled to be resolved in Maintenance Level (ML) release 7.1.7
Published January 31, 2016 - 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.