361 — CollectionUUIDMismatch
queryconfiguration
The collection UUID does not match the expected UUID
What is happening?
CollectionUUIDMismatch is returned when a command specifies a collection UUID (for safety) but the actual collection at that namespace has a different UUID. This happens when a collection is dropped and recreated between the time the UUID was obtained and the command was executed. From MongoDB 6.0, some commands accept an optional collectionUUID parameter to guard against operating on the wrong collection.
Common causes
- Collection was dropped and recreated between obtaining the UUID and executing the command
- Application caching a collection UUID across deployment changes
- Concurrent drop and create operations from different clients
- Rename operation changed which collection occupies the namespace