Why do I get BSON::InvalidKeyName on save?

81 views
Skip to first unread message

dblock

unread,
Feb 3, 2011, 10:41:27 AM2/3/11
to Mongoid
I am getting this quite consistently on save when creating 100+ items
with auto-generated names.

BSON::InvalidKeyName:
key must not contain '.'

I don't have a small repro (yet). Anyone seen this?

Marcel Otto

unread,
Feb 3, 2011, 4:38:08 PM2/3/11
to Mongoid
I have the same problem for a while and still found no solution. My
code worked perfect, but since a week I'm getting this or the
variation

BSON::InvalidKeyName:
key must not contain '$'

without making any changes to the code.

dblock

unread,
Feb 4, 2011, 12:39:09 AM2/4/11
to Mongoid
I started a new thread on MongoDB.
http://groups.google.com/group/mongodb-user/browse_thread/thread/2e0a1ae0aa5d392b
You should post your runtime details there.

dblock

unread,
Feb 4, 2011, 10:16:00 AM2/4/11
to Mongoid
Mystery solved. This is fixed in bson/bson_ext 1.2.0.
http://code.dblock.org/ShowPost.aspx?id=168
Reply all
Reply to author
Forward
0 new messages