MongoDB Errors

Browse server error codes and driver error classes with explanations and diagnostic guidance.

204TimeProofMismatch
Time Proof Mismatch — MongoDB error code 204
205ClusterTimeFailsRateLimiter
Cluster Time Fails Rate Limiter — MongoDB error code 205
206NoSuchSession
The specified session was not found on the server
configurationconnectivity
207InvalidUUID
Invalid UUID — MongoDB error code 207
208TooManyLocks
Too Many Locks — MongoDB error code 208
concurrency
209StaleClusterTime
Stale Cluster Time — MongoDB error code 209
210CannotVerifyAndSignLogicalTime
Cannot Verify And Sign Logical Time — MongoDB error code 210
211KeyNotFound
The requested key or identifier was not found
queryconfiguration
212IncompatibleRollbackAlgorithm
Incompatible Rollback Algorithm — MongoDB error code 212
213DuplicateSession
Duplicate Session — MongoDB error code 213
214AuthenticationRestrictionUnmet
Authentication Restriction Unmet — MongoDB error code 214
authentication
215DatabaseDropPending
Database Drop Pending — MongoDB error code 215
216ElectionInProgress
Election In Progress — MongoDB error code 216
replication
217IncompleteTransactionHistory
Incomplete Transaction History — MongoDB error code 217
transaction
218UpdateOperationFailed
Update Operation Failed — MongoDB error code 218
write
219FTDCPathNotSet
FTDCPath Not Set — MongoDB error code 219
220FTDCPathAlreadySet
FTDCPath Already Set — MongoDB error code 220
221IndexModified
Index Modified — MongoDB error code 221
index
222CloseChangeStream
Close Change Stream — MongoDB error code 222
223IllegalOpMsgFlag
Illegal Op Msg Flag — MongoDB error code 223
ConnectionFatalMessageParseError
224QueryFeatureNotAllowed
Query Feature Not Allowed — MongoDB error code 224
query
225TransactionTooOld
Transaction Too Old — MongoDB error code 225
replicationtransaction
226AtomicityFailure
Atomicity Failure — MongoDB error code 226
227CannotImplicitlyCreateCollection
Cannot Implicitly Create Collection — MongoDB error code 227
228SessionTransferIncomplete
Session Transfer Incomplete — MongoDB error code 228
229MustDowngrade
Must Downgrade — MongoDB error code 229
230DNSHostNotFound
DNS resolution failed for the specified hostname
networkingconnectivity
231DNSProtocolError
DNSProtocol Error — MongoDB error code 231
networking
232MaxSubPipelineDepthExceeded
Max Sub Pipeline Depth Exceeded — MongoDB error code 232
timeout
233TooManyDocumentSequences
Too Many Document Sequences — MongoDB error code 233
ConnectionFatalMessageParseError
234RetryChangeStream
Retry Change Stream — MongoDB error code 234
235InternalErrorNotSupported
Internal Error Not Supported — MongoDB error code 235
236ForTestingErrorExtraInfo
For Testing Error Extra Info — MongoDB error code 236
237CursorKilled
Cursor Killed — MongoDB error code 237
queryreplication
238NotImplemented
Not Implemented — MongoDB error code 238
239SnapshotTooOld
The requested read snapshot has been purged from storage
querystoragetransaction
240DNSRecordTypeMismatch
DNSRecord Type Mismatch — MongoDB error code 240
networking
241ConversionFailure
A conflicting administrative operation is already in progress
concurrencyconfiguration
242CannotCreateCollection
Cannot Create Collection — MongoDB error code 242
243IncompatibleWithUpgradedServer
Incompatible With Upgraded Server — MongoDB error code 243
244NOT_YET_AVAILABLE_TransactionAborted
NOT YET AVAILABLE Transaction Aborted — MongoDB error code 244
transaction
245BrokenPromise
Broken Promise — MongoDB error code 245
246SnapshotUnavailable
The read snapshot has expired and is no longer available
transactionstorage
247ProducerConsumerQueueBatchTooLarge
Producer Consumer Queue Batch Too Large — MongoDB error code 247
248ProducerConsumerQueueEndClosed
Producer Consumer Queue End Closed — MongoDB error code 248
249StaleDbVersion
The database version is stale — routing metadata has changed
sharding
250StaleChunkHistory
Stale Chunk History — MongoDB error code 250
sharding
251NoSuchTransaction
The transaction exceeded the configured lifetime limit
transactiontimeout
252ReentrancyNotAllowed
Reentrancy Not Allowed — MongoDB error code 252
256TransactionCommitted
Transaction Committed — MongoDB error code 256
transaction