MongoDB Errors

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

309ExhaustCommandFinished
Exhaust Command Finished — MongoDB error code 309
310PeriodicJobIsStopped
Periodic Job Is Stopped — MongoDB error code 310
query
311TransactionCoordinatorCanceled
Transaction Coordinator Canceled — MongoDB error code 311
transaction
312OperationIsKilledAndDelisted
Operation Is Killed And Delisted — MongoDB error code 312
query
313ResumableRangeDeleterDisabled
Resumable Range Deleter Disabled — MongoDB error code 313
write
314ObjectIsBusy
Object Is Busy — MongoDB error code 314
CursorInvalidatedError
315TooStaleToSyncFromSource
Too Stale To Sync From Source — MongoDB error code 315
InternalOnly
316QueryTrialRunCompleted
Query Trial Run Completed — MongoDB error code 316
query
317ConnectionPoolExpired
The index could not be created
indexconfiguration
318ForTestingOptionalErrorExtraInfo
For Testing Optional Error Extra Info — MongoDB error code 318
319MovePrimaryInProgress
Move Primary In Progress — MongoDB error code 319
replication
322APIVersionError
APIVersion Error — MongoDB error code 322
VersionedAPIError
323APIStrictError
APIStrict Error — MongoDB error code 323
VersionedAPIError
324APIDeprecationError
APIDeprecation Error — MongoDB error code 324
VersionedAPIError
326OplogQueryMinTsMissing
Oplog Query Min Ts Missing — MongoDB error code 326
queryreplication
330SkipCommandExecution
Skip Command Execution — MongoDB error code 330
331FailedToRunWithReplyBuilder
Failed To Run With Reply Builder — MongoDB error code 331
replication
332CannotDowngrade
Cannot Downgrade — MongoDB error code 332
333ServiceExecutorInShutdown
Service Executor In Shutdown — MongoDB error code 333
connectivityqueryreplication
334MechanismUnavailable
The database routing metadata is stale
sharding
336TimeseriesBucketCleared
Timeseries Bucket Cleared — MongoDB error code 336
InternalOnly
337AuthenticationAbandoned
Authentication Abandoned — MongoDB error code 337
authentication
338ReshardCollectionInProgress
Reshard Collection In Progress — MongoDB error code 338
sharding
339NoSuchReshardCollection
No Such Reshard Collection — MongoDB error code 339
sharding
340ReshardCollectionCommitted
Reshard Collection Committed — MongoDB error code 340
sharding
341ReshardCollectionAborted
Reshard Collection Aborted — MongoDB error code 341
sharding
342ReshardingCriticalSectionTimeout
Resharding Critical Section Timeout — MongoDB error code 342
shardingtimeout
343ShardCannotRefreshDueToLocksHeld
Shard Cannot Refresh Due To Locks Held — MongoDB error code 343
concurrencysharding
344AuditingNotEnabled
Auditing Not Enabled — MongoDB error code 344
345RuntimeAuditConfigurationNotEnabled
Runtime Audit Configuration Not Enabled — MongoDB error code 345
346ChangeStreamInvalidated
Change Stream Invalidated — MongoDB error code 346
347APIMismatchError
APIMismatch Error — MongoDB error code 347
replication
349KeyPatternShorterThanBound
Key Pattern Shorter Than Bound — MongoDB error code 349
350ReshardCollectionTruncatedError
Reshard Collection Truncated Error — MongoDB error code 350
sharding
351ChangeStreamStartAfterInvalidate
Change Stream Start After Invalidate — MongoDB error code 351
352UnsupportedOpQueryCommand
Unsupported Op Query Command — MongoDB error code 352
query
354LoadBalancerSupportMismatch
Load Balancer Support Mismatch — MongoDB error code 354
connectivitynetworkingsharding
355InterruptedDueToStorageChange
Interrupted Due To Storage Change — MongoDB error code 355
connectivityqueryreplicationstorage
356TxnRetryCounterTooOld
Txn Retry Counter Too Old — MongoDB error code 356
replicationtransaction
357InvalidBSONType
Invalid BSONType — MongoDB error code 357
358InternalTransactionNotSupported
Internal Transaction Not Supported — MongoDB error code 358
transaction
359CannotConvertIndexToUnique
Cannot Convert Index To Unique — MongoDB error code 359
index
360PlacementVersionRefreshCanceled
Placement Version Refresh Canceled — MongoDB error code 360
InternalOnly
361CollectionUUIDMismatch
The collection UUID does not match the expected UUID
queryconfiguration
362FutureAlreadyRetrieved
Future Already Retrieved — MongoDB error code 362
363RetryableTransactionInProgress
Retryable Transaction In Progress — MongoDB error code 363
transaction
365TemporarilyUnavailable
The operation was rejected because the server is temporarily overloaded
performanceconcurrencystorage
366WouldChangeOwningShardDeletedNoDocument
Would Change Owning Shard Deleted No Document — MongoDB error code 366
shardingwrite
367FLECompactionPlaceholder
FLECompaction Placeholder — MongoDB error code 367
369FLETransactionAbort
FLETransaction Abort — MongoDB error code 369
transaction