Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/o... 

 

Hope this helps.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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/o... 

 

Hope this helps.

Avatar

Level 1

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. 

 

 

Avatar

Employee

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.