MongoDB Errors
Browse server error codes and driver error classes with explanations and diagnostic guidance.
51ManualInterventionRequired
Manual Intervention Required — MongoDB error code 51
52DollarPrefixedFieldName
Dollar Prefixed Field Name — MongoDB error code 52
53InvalidIdField
Invalid Id Field — MongoDB error code 53
54NotSingleValueField
Not Single Value Field — MongoDB error code 54
55InvalidDBRef
Invalid DBRef — MongoDB error code 55
56EmptyFieldName
Empty Field Name — MongoDB error code 56
57DottedFieldName
Dotted Field Name — MongoDB error code 57
58RoleModificationFailed
Role Modification Failed — MongoDB error code 58
59CommandNotFound
The requested command is not recognised by this server version
configurationcompatibility
60OBSOLETE_DatabaseNotFound
OBSOLETE Database Not Found — MongoDB error code 60
61ShardKeyNotFound
The shard key field is missing from the document
shardingwrite
62OplogOperationUnsupported
Oplog Operation Unsupported — MongoDB error code 62
replication
63OBSOLETE_StaleShardVersion
OBSOLETE Stale Shard Version — MongoDB error code 63
sharding
64WriteConcernTimeout
The write concern could not be satisfied within the timeout
writereplicationdurability
65MultipleErrorsOccurred
Multiple Errors Occurred — MongoDB error code 65
66ImmutableField
Immutable Field — MongoDB error code 66
67CannotCreateIndex
Cannot Create Index — MongoDB error code 67
index
68IndexAlreadyExists
Index Already Exists — MongoDB error code 68
index
69AuthSchemaIncompatible
Auth Schema Incompatible — MongoDB error code 69
authentication
70ShardNotFound
Shard Not Found — MongoDB error code 70
sharding
71ReplicaSetNotFound
Replica Set Not Found — MongoDB error code 71
replication
72InvalidOptions
Invalid Options — MongoDB error code 72
73InvalidNamespace
A command option is invalid or incompatible with other options
queryconfiguration
74NodeNotFound
Node Not Found — MongoDB error code 74
75WriteConcernLegacyOK
Write Concern Legacy OK — MongoDB error code 75
write
76NoReplicationEnabled
No Replication Enabled — MongoDB error code 76
replication
77OperationIncomplete
Operation Incomplete — MongoDB error code 77
78CommandResultSchemaViolation
Command Result Schema Violation — MongoDB error code 78
79UnknownReplWriteConcern
Unknown Repl Write Concern — MongoDB error code 79
replicationwrite
80RoleDataInconsistent
Role Data Inconsistent — MongoDB error code 80
81NoMatchParseContext
No Match Parse Context — MongoDB error code 81
82NoProgressMade
No Progress Made — MongoDB error code 82
83RemoteResultsUnavailable
Remote Results Unavailable — MongoDB error code 83
84OBSOLETE_DuplicateKeyValue
OBSOLETE Duplicate Key Value — MongoDB error code 84
85IndexOptionsConflict
Index Options Conflict — MongoDB error code 85
concurrencyindex
86IndexKeySpecsConflict
Index Key Specs Conflict — MongoDB error code 86
concurrencyindex
87CannotSplit
Cannot Split — MongoDB error code 87
88OBSOLETE_SplitFailed
OBSOLETE Split Failed — MongoDB error code 88
89NetworkTimeout
A network operation timed out while communicating with the server
networkingconnectivitytimeout
90CallbackCanceled
Callback Canceled — MongoDB error code 90
query
91ShutdownInProgress
The server is shutting down and cannot accept new operations
replicationconnectivity
92SecondaryAheadOfPrimary
Secondary Ahead Of Primary — MongoDB error code 92
replication
93InvalidReplicaSetConfig
Invalid Replica Set Config — MongoDB error code 93
replication
94NotYetInitialized
Not Yet Initialized — MongoDB error code 94
95NotSecondary
Not Secondary — MongoDB error code 95
replication
96OperationFailed
A server-side operation failed with a non-specific error
configuration
97NoProjectionFound
No Projection Found — MongoDB error code 97
98DBPathInUse
DBPath In Use — MongoDB error code 98
100UnsatisfiableWriteConcern
Unsatisfiable Write Concern — MongoDB error code 100
write
101OutdatedClient
Outdated Client — MongoDB error code 101