[SERVER-36522] Create Index showing duplicate key error Created: 08/Aug/18 Updated: 27/Oct/23 Resolved: 08/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Ryan Joseph | Assignee: | Nick Brewer |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backport Requested: |
v3.6
|
||||
| Participants: | |||||
| Description |
|
When I try to create an Index I get:
I can't find any existing Indexes with same name:
Or find duplicate indexes with value of null:
Would someone know what else would prevent me from creating that index? On my localhost instance, I can create the index without any problems. Any help would be greatly appreciated.
|
| Comments |
| Comment by Ryan Joseph [ 08/Aug/18 ] | ||||||||||||||||||||
|
Thank you Nick. I'll check out those resources. | ||||||||||||||||||||
| Comment by Nick Brewer [ 08/Aug/18 ] | ||||||||||||||||||||
|
ryan.vi.joseph@gmail.com Per the unique index documentation, what you're running into is a constraint of using a unique index with multiple documents that do not match it. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. -Nick | ||||||||||||||||||||
| Comment by Ryan Joseph [ 08/Aug/18 ] | ||||||||||||||||||||
|
List of existing indexes:
|