Support Article
Unable to create Unit Test Case
SA-31883
Summary
Try to create a unit test case for a data page in a localized application (Locale :nl_NL).
After running the data page, click on the "Convert to Test", complete the rule form and click on "Create and Close" button. An error is coming up as below:
This record has 1 Error in 1 place
Error—** Quick CreateERROR: Save failed** Java generation failed: For input string: "0,085"
Error Messages
Error—** Quick CreateERROR: Save failed** Java generation failed: For input string: "0,085"
Steps to Reproduce
1. Create a unit test case for a data page.
2. Run the data page and press the button "Convert to Test".
3. Complete the rule form with assertions and then try to save the rule using the "Create and Close" button.
4. Observe that the test case is not created and the above error is seen.
Note that the issue is reproducible only when the server and db is set up with Dutch language.
Root Cause
A defect in Pegasystems’ code or rules: When Dutch language is set up, it uses comma instead of dot for decimal number, hence decimal formatting was failing, hence causing the issue.
Resolution
Apply HFix-30795.
Published January 4, 2017 - 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.