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

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

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