SAP Knowledge Base Article - Preview

3061984 - Error or warn message when adding or replacing a currency in SAP Commerce Cloud

Symptom

Add a new currency with an ISO code, or replace the ISO code of an existing currency, there will be below errors for below Commerce versions:

  • For versions <= 1811, an exception will be thrown out:

        java.lang.IllegalArgumentException: null
        at java.util.Currency.getInstance(Currency.java:345) ~[?:1.8.0_271]
        at java.util.Currency.getInstance(Currency.java:310) ~[?:1.8.0_271]
        at de.hybris.platform.servicelayer.i18n.impl.DefaultI18NService.getBestMatchingJavaCurrency(DefaultI18NService.java:154) ~[coreserver.jar:?]
        at com.hybris.backoffice.labels.impl.PriceLabelHandler.getLabel(PriceLabelHandler.java:44) ~[classes/:?] 

  • For versions >= 1905, a warning message will be displayed: "Could not find Java currency for iso code: ’XXX‘ "


Read more...

Environment

  • SAP Commerce Cloud 1811
  • SAP Commerce Cloud 1905

Product

SAP Commerce Cloud 1811 ; SAP Commerce Cloud 1905

Keywords

Backoffice, I18N, Currency , KBA , CEC-SCC-CDM-BO-APP , Applications , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.