Support Article
Wrong decimal formatting in Lithuanian locale
SA-12487
Summary
Decimal control mapped to a Decimal property does not accept valid decimal properties in Lithuanian locale. In Lithuanian Locale, dot (".") is a decimal separator and comma (",") is a thousands separator. So 123.456.789,00 is a valid decimal value. But PRPC throws a validation error that it is not a valid decimal value.
Error Messages
"123.456.789,00" is not a valid decimal value
Steps to Reproduce
1. Set Lithuanian locale on Operator, lt_LT.
2. Create a flow > section with a Decimal Control mapped to a Decimal property.
3. Enable thousands separator for the control
4. Run the flow and input a valid decimal value in Lithuanian locale, 123.456.789,00.
5. Error received, "123.456.789,00 is a valid decimal value".
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. Native Java API, getGroupingSeparator(), assigns non-breaking space char instead of "." as grouping seperator for lt_LT locale. Because of this, client side validation displays error for valid decimal values. PRPC needs to check for "lt_LT" locale and update the grouping seperator with "."
Resolution
This issue is resolved by HFix-23101.
Published July 30, 2015 - 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.