Docs
salesforce, Locale, error, allowed, not
Fix for error message: locale-not in allowed values Salesforce
38641399
2022-12-31T16:24:07Z
2023-01-03T10:08:32Z
326
0
0
257419
Fix for error message: locale-not in allowed values Salesforce
Scope
How to fix the Salesforce error - Locale not in allowed values?
Summary
This error occurs when the customer is created with an invalid locale in Salesforce.
Solution
In order to fix this error, you would need to navigate to the contact level & in the language field for example if you have passed Dutch, you would please pass the language as just the code, for dutch language the code is nl, fill in the language field as nl & then try to create the customer.
Basically, instead of passing the languages, we need to pass the codes, for example, instead of English it would be en