Legacy Knowledge Base
Published Jun. 30, 2025

Discounts is temporarily unavailable errors in the case with any amount that does contain a comma

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The error arises when we use an amount split by a comma, such as 1000,00.00

    Steps to reproduce:

    1. Create Discount

    2. Navigate to Rules

    3. Add Cart Total Rule

    4. Click that rule and go to the Edit page

    5. Add 1000,00.00 value and save

    6. Saves successfully.

    7. Again, click on the rule and go to Edit
      Expected Behavior: It should open correctly and without errors, and we should be able to view the saved amount, as is the case with any amount that does not contain a comma.
      Observed Behavior: The UI is unavailable due to the following console and browser errors: "Discounts is temporarily unavailable.”

    ERROR [http-nio-8080-exec-4][JSPRenderer:66] Unable to render JSP /commerce_discounts/rule/type/cart_total.jsp org.apache.jasper.JasperException: java.lang.NumberFormatException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440) ~[jasper.jar:9.0.75] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) ~[jasper.jar:9.0.75] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) ~[jasper.jar:9.0.75]

Environment

  • Liferay DXP 7.4
  • Commerce 4.0 

Resolution

  • The observed behavior is a known concern that has been addressed or included as part of this fix: COMMERCE-12062 and incorporated in update 92+

Additional Information

  • Please submit a support ticket with the patch details attached if you require a hotfix or further information as your environment updates.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack or Hotfix in your environment.
Did this article resolve your issue ?

Legacy Knowledge Base