MongoError: The dotted field 'BotBuilder.Data.PreferredLocale' in 'data.BotBuilder.Data.PreferredLocale' is not valid for storage.
Apparently, the BotBuilder.Data.PreferredLocale is stored as part of the userData, instead using a different rowKey like others, such as BotBuilder.Data.SessionState
The problem: when session.preferredLocale('zh-CN') is called, this invalid mongo field (BotBuilder.Data.PreferredLocale) is added under userdata.
The solution:
- remove the rowKey condition check for 'userData' on line 32 and 56.
- replace the '@' with '\uff0e' (utf16 dot symbol as mongo suggested) on line 33 and 57.
Thanks for report, Asap i Will look into it
Much appreciated! Right now we workaround it by patching the insertOrReplace and retrieve functions at runtime. It would be great if we have this issue taken care in the repo!
Thanks!
fixed issue in [email protected] version Thanks for point out solution. feel free to reopen if you found any issue.
@aakashkag did you forget to commit in the changes?
I updated in npm module. it is fixed in [email protected], also updated code in github code as well