73 — InvalidNamespace

queryconfiguration

A command option is invalid or incompatible with other options

What is happening?

InvalidOptions is returned when a command receives options that are individually valid but cannot be used together, or when an option has a value outside the accepted range. This is distinct from BadValue (2) which covers invalid values; InvalidOptions covers invalid option combinations.

Common causes

  1. Combining incompatible options on a query or command
  2. Using an option that requires a specific server configuration
  3. Passing a collation option to an operation that does not support it
  4. Using read concern or write concern options that conflict

Source code references

ErrorCodes::InvalidNamespace found in 106 locations in the MongoDB server source.

Diagnostic Steps