MongoDB Errors
Browse server error codes and driver error classes with explanations and diagnostic guidance.
370CannotDropShardKeyIndex
Cannot Drop Shard Key Index — MongoDB error code 370
indexsharding
371UserWritesBlocked
User Writes Blocked — MongoDB error code 371
concurrencywrite
372CloseConnectionForShutdownCommand
Close Connection For Shutdown Command — MongoDB error code 372
connectivitynetworking
373InternalTransactionsExhaustiveFindHasMore
Internal Transactions Exhaustive Find Has More — MongoDB error code 373
querytransaction
374TransactionAPIMustRetryTransaction
Transaction APIMust Retry Transaction — MongoDB error code 374
transaction
375TransactionAPIMustRetryCommit
Transaction APIMust Retry Commit — MongoDB error code 375
transaction
377FLEMaxTagLimitExceeded
FLEMax Tag Limit Exceeded — MongoDB error code 377
timeout
378NonConformantBSON
Non Conformant BSON — MongoDB error code 378
ValidationError
379DatabaseMetadataRefreshCanceled
Database Metadata Refresh Canceled — MongoDB error code 379
InternalOnly
380RequestAlreadyFulfilled
Request Already Fulfilled — MongoDB error code 380
381ReshardingCoordinatorServiceConflictingOperationInProgress
Resharding Coordinator Service Conflicting Operation In Progress — MongoDB error code 381
concurrencysharding
382RemoteCommandExecutionError
Remote Command Execution Error — MongoDB error code 382
InternalOnly
383CollectionIsEmptyLocally
Collection Is Empty Locally — MongoDB error code 383
384ConnectionError
Connection Error — MongoDB error code 384
connectivitynetworking
385ConflictingServerlessOperation
Conflicting Serverless Operation — MongoDB error code 385
concurrency
386DuplicateKeyId
A duplicate _id was encountered during an internal operation
writeconstraint
387EncounteredFLEPayloadWhileApplyingHmac
Encountered FLEPayload While Applying Hmac — MongoDB error code 387
388TransactionTooLargeForCache
Transaction Too Large For Cache — MongoDB error code 388
storagetransaction
389LibmongocryptError
Libmongocrypt Error — MongoDB error code 389
390InvalidSignature
Invalid Signature — MongoDB error code 390
391ReauthenticationRequired
Reauthentication Required — MongoDB error code 391
authentication
392InvalidJWT
Invalid JWT — MongoDB error code 392
393InvalidTenantId
Invalid Tenant Id — MongoDB error code 393
395TruncatedSerialization
The operation could not acquire a lock within the timeout period
concurrencyperformance
396IndexInformationTooLarge
Index Information Too Large — MongoDB error code 396
index
398StreamTerminated
Stream Terminated — MongoDB error code 398
connectivitynetworking
400CannotUpgrade
Cannot Upgrade — MongoDB error code 400
402ResourceExhausted
Resource Exhausted — MongoDB error code 402
RetriableError
403UnsupportedShardingEventNotification
Unsupported Sharding Event Notification — MongoDB error code 403
sharding
404LDAPRoleAcquisitionError
LDAPRole Acquisition Error — MongoDB error code 404
405CannotCreateChunkDistribution
Cannot Create Chunk Distribution — MongoDB error code 405
sharding
406MigrationBlockingOperationCoordinatorCleaningUp
Migration Blocking Operation Coordinator Cleaning Up — MongoDB error code 406
concurrency
407PooledConnectionAcquisitionExceededTimeLimit
Pooled Connection Acquisition Exceeded Time Limit — MongoDB error code 407
networkingperformancetimeout
408CannotInsertTimeseriesBucketsWithMixedSchema
Cannot Insert Timeseries Buckets With Mixed Schema — MongoDB error code 408
write
409TimeseriesBucketCompressionFailed
Timeseries Bucket Compression Failed — MongoDB error code 409
410TimeseriesBucketFrozen
Timeseries Bucket Frozen — MongoDB error code 410
InternalOnly
411QueryRejectedBySettings
Query Rejected By Settings — MongoDB error code 411
query
412UpdatesStillPending
Updates Still Pending — MongoDB error code 412
write
413TransactionParticipantFailedUnyield
Transaction Participant Failed Unyield — MongoDB error code 413
transaction
414AddOrRemoveShardInProgress
Add Or Remove Shard In Progress — MongoDB error code 414
shardingwrite
415StreamProcessorDoesNotExist
Stream Processor Does Not Exist — MongoDB error code 415
416StreamProcessorAlreadyExists
Stream Processor Already Exists — MongoDB error code 416
417StreamProcessorWorkerShuttingDown
Stream Processor Worker Shutting Down — MongoDB error code 417
418StreamProcessorWorkerOutOfMemory
Stream Processor Worker Out Of Memory — MongoDB error code 418
StreamProcessorUserError
419StreamProcessorKafkaConnectionError
Stream Processor Kafka Connection Error — MongoDB error code 419
networking
420StreamProcessorInvalidOptions
Stream Processor Invalid Options — MongoDB error code 420
StreamProcessorUserError
421StreamProcessorAtlasConnectionError
Stream Processor Atlas Connection Error — MongoDB error code 421
networking
422StreamProcessorAtlasUnauthorizedError
Stream Processor Atlas Unauthorized Error — MongoDB error code 422
authentication
423StreamProcessorSourceDocTooLarge
Stream Processor Source Doc Too Large — MongoDB error code 423
StreamProcessorUserError
424StreamProcessorTooManyOutputTargets
Stream Processor Too Many Output Targets — MongoDB error code 424
StreamProcessorUserError