Operational Defect Database

BugZero found this defect 2627 days ago.

MongoDB | 338652

[SERVER-27413] Failed to insert values into an object field

Last update date:


Affected products:

MongoDB Server

Affected releases:


Fixed releases:

No fixed releases provided.



When I insert objects into a list in an object field of a document, I get error message: Database error Write failed with error code 17280 and error message 'WiredTigerIndex :: insert: key too large to index What stands out is that the error only occurs with fields named 'aac'. Other object fields (in the images, the fields 'test', 'filters', 'aacc') allow insertion. I'm inserting dictionaries into lists that are in the object field. If you rename one of the fields to 'aac', the error occurs.

Top User Comments

thomas.schubert commented on Wed, 14 Dec 2016 15:46:33 +0000: Hi setsuna_bcl, This error indicates that in order to successfully insert this document, MongoDB would have to create a key in one of your indexes that is larger than 1024 bytes. In this case the error message indicates that it would be 1880 bytes long. I would recommend either dropping the index, or modifying your schema. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. Kind regards, Thomas

Additional Resources / Links


BugZero Risk Score

Coming soon



Have you been affected by this bug?


Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.


Login to read and write comments.

Have you ever...

had your data corrupted from a