SAP Knowledge Base Article - Preview

3524844 - Issue with Language Setting in OOTB CommerceCommonI18NService

Symptom

When visiting OCC users api, it attempts to set the session's current language using the OOTB CommerceCommonI18NService method setCurrentLanguage. Specifically, when the function is invoked with the language code "FR", the following error is logged:

java.lang.IllegalArgumentException: No matching DataLocale for gr ( tried [gr] on available locales {de=de->de, es=es->es, pt=pt->pt, zh=zh->zh, fr=fr->fr, en=en->en, ja=ja->ja, en_GB=en_GB->en_GB} ) at de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.matchDataLocale(DefaultLocalizationService.java:233) at de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.setCurrentLocale(DefaultLocalizationService.java:113) at de.hybris.platform.servicelayer.i18n.impl.DefaultI18NService.setCurrentLocale(DefaultI18NService.java:117) at de.hybris.platform.commerceservices.i18n.impl.DefaultCommerceCommonI18NService.setCurrentLanguage(DefaultCommerceCommonI18NService.java:189) at xx.com.xxx.xxxwebservices.v2.controller.B2BUsersController.getUser(B2BUsersController.java:83) 

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Product

SAP Commerce Cloud 2211

Keywords

DataLocale, DefaultCommerceCommonI18NService, setCurrentLanguage, occ, user , KBA , CEC-SCC-COM-BC-OCC , Commerce Web Services - OCC , 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.