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
- Combining incompatible options on a query or command
- Using an option that requires a specific server configuration
- Passing a collation option to an operation that does not support it
- Using read concern or write concern options that conflict