When adding dictionary items to the CORE database in Sitecore 8, this error can occur:
Message: Cannot cache phrase for invariant language.
Source: Sitecore.Kernel
at Sitecore.Globalization.Translate.CachePhrase(String key, String phrase, Language language, DictionaryDomain domain)
at Sitecore.Globalization.ItemEventHandler.OnItemSaved(String dictionaryKey, Item item, Boolean reloadDomainCache, Boolean saveToDisk)
at … … … …
The error is related to a cached dictionary file. Sitecore caches all dictionary entries in a dictionary.dat file located in the /temp/ folder.
To solve the issue you should:
- Delete the /temp/dictionary.dat file
- Recycle the website
That’s it. Problem solved. Thanks to Sitecore Support for the solution.
