pattern mismatch error: #/environment/_dc/language: string [zh-CN-#Hans] | Community
Skip to main content
January 19, 2023
Solved

pattern mismatch error: #/environment/_dc/language: string [zh-CN-#Hans]

  • January 19, 2023
  • 3 replies
  • 1099 views

Hello Community,

 

Datasets from our mobile SDK is failing due to below error - 

"the message can't be validated due to the pattern mismatch error: #/environment/_dc/language: string [zh-CN-#Hans] does not match pattern ^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$.","

Have anyone encountered this issue before?

Regards,

Vivek

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Avinash_Gupta_

Hi @vk84 

 

I haven't experienced this issue before but there is something wrong with the language format that you are mapping with AEP mobile webSDK. Language attribute needs to be array of languages associated with the content from the proposed offer. For example the format should be ["en-US"].

 

https://experienceleague.adobe.com/docs/experience-platform/edge/personalization/offer-decisioning/offer-decisioning-overview.html?lang=en 

 

Hope this helps.

3 replies

Avinash_Gupta_
Community Advisor and Adobe Champion
Avinash_Gupta_Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 19, 2023

Hi @vk84 

 

I haven't experienced this issue before but there is something wrong with the language format that you are mapping with AEP mobile webSDK. Language attribute needs to be array of languages associated with the content from the proposed offer. For example the format should be ["en-US"].

 

https://experienceleague.adobe.com/docs/experience-platform/edge/personalization/offer-decisioning/offer-decisioning-overview.html?lang=en 

 

Hope this helps.

Adobe Employee
January 25, 2023

Please see the following release notes for the AEP Mobile SDK. 

https://developer.adobe.com/client-sdks/documentation/release-notes/

 

To correct this please upgrade your Mobile Core libraries to the latest version. 

 

This should resolve the issue. 

 

 

Jennifer_Andrews
Adobe Employee
Adobe Employee
January 25, 2023

Please see the following release notes for the AEP Mobile SDK. 

https://developer.adobe.com/client-sdks/documentation/release-notes/

 

To correct this please upgrade your Mobile Core libraries to the latest version. 

 

This should resolve the issue.