cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Edit Issue (6.5) due to Language with ISO code having underscore in it Like (es_MX)

0 Kudos
1,116

Hi,

We have installed the smartedit addon on custom b2c strorefront. We are using hybris version 6.5. Language of our storefront is es_MX. We are able to login and select the site but when we try to open any page in preview mode, we are getting an error (stake trace mentioned below):

Our language is created having isocode es_MX in DB so we tried to check the code in smartedit where it could be changed to es-MX. We are able to find method convertLocalToIsoCodes in DefaultSmarteditI18nFacade and DefaultLanguageFacade where this is converted to hyphen "-" instead of underscore. Since, there is no LanguageModel exists in the system with isocode es-MX so the error message seems valid. Not sure the reason but it seems that es-MX is not converted back to es_MX before trying to fetch this from DB.

  • I wanted to check if anyone else has also faced similar issue?

  • Is there any recommendation to overcome this issue?

de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: LanguageModel with isocode 'es-MX' not found! at de.hybris.platform.servicelayer.util.ServicesUtil.validateSingleResultWithType(ServicesUtil.java:88) at de.hybris.platform.servicelayer.util.ServicesUtil.validateIfSingleResult(ServicesUtil.java:80) at de.hybris.platform.servicelayer.i18n.impl.DefaultCommonI18NService.getLanguage(DefaultCommonI18NService.java:91) at de.hybris.platform.previewwebservices.populators.PreviewTicketReversePopulator.lambda$0(PreviewTicketReversePopulator.java:100) at de.hybris.platform.webservicescommons.util.impl.DefaultLocalViewExecutor.lambda$0(DefaultLocalViewExecutor.java:49) at de.hybris.platform.webservicescommons.util.impl.DefaultLocalViewExecutor$1.execute(DefaultLocalViewExecutor.java:39) at de.hybris.platform.servicelayer.session.impl.DefaultSessionService.executeInLocalView(DefaultSessionService.java:89) at de.hybris.platform.webservicescommons.util.impl.DefaultLocalViewExecutor.executeInLocalView(DefaultLocalViewExecutor.java:34) at de.hybris.platform.webservicescommons.util.impl.DefaultLocalViewExecutor.executeWithAllCatalogs(DefaultLocalViewExecutor.java:47) at de.hybris.platform.previewwebservices.populators.PreviewTicketReversePopulator.populate(PreviewTicketReversePopulator.java:66)

Any quick pointer would be helpful.

Thanks, Ankit

Former Member
0 Kudos

We get the same issue as you, please post any information if you manage to fix this.

View Entire Topic
0 Kudos

Hi I am facing the same issue for hybris 6.5 Do u find any solution for this?