ErrLookup › mongodb/mongoid

mongodb/mongoid

The Official Ruby Object Mapper for MongoDB · Ruby · 401 source files

Analyzed at 0da0e23d71 on 2026-08-23. 178 documented errors.

Code / MessageTypeSeverityTags
Metadata not found for document of type %{klass}.
exception error
Attempted to access attribute '%{name}' on %{klass} which wa
exception error
When adding a(n) %{klass} to %{base}#%{name}, Mongoid could
exception error
Invalid dependent strategy: %{invalid_strategy}.
exception error
Cannot destroy %{document} because of dependent '%{relation}
exception error
NotImplementedError
exception error
NotImplementedError
exception error
NotImplementedError
exception error
#{self.class} must implement #docs_for_lookup_fallback
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
The %{name} attribute can't be set to an instance of %{other
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
Accepting nested attributes for %{association} is limited to
exception error
Attributes for nested association '#{association.name}' must
exception error
Document(s) not found for class %{klass} with id(s) %{missin
exception error
Document not found for class %{klass} with attributes %{attr
exception error
Attempted to change the immutable attribute '%{name}' with t
exception error
Referencing a(n) %{embedded} document from the %{root} docum
exception error
Attempted to save %{document} before the parent %{base}.
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
The %{name} attribute can't be set to an instance of %{other
exception error
Cannot build belongs_to association from array
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
Attempted to modify the read-only association '%{name}' on '
exception error
Attempted to modify the read-only association '%{name}' on '
exception error
Ambiguous associations %{candidates} defined on %{klass}.
exception error
When adding a(n) %{klass} to %{base}#%{name}, Mongoid could
exception error
Attempted to modify the read-only association '%{name}' on '
exception error
Invalid association option :%{option} for association '%{nam
exception error
The :fallback option for association '#{name}' on #{@owner_c
exception error
The :fallback option for association '#{name}' on #{@owner_c
exception error
Defining an association named '%{name}' is not allowed.
exception error
Having a root path assigned for %{klass} is invalid.
exception error
Attempted to access attribute '%{name}' on %{klass} which wa
exception error
Field #{name} is not an aliased field
exception error
Could not find metadata for association '%{name}' on model:
exception error
Attempted to set a value for '%{name}' which is not allowed
exception error
Attempted to set the readonly attribute '%{name}' with the v
exception error
No configuration could be found for a client named '%{name}'
exception error
No clients configuration provided.
exception error
A session was started while another session was being used o
exception error
sessions_not_supported
exception error
transactions_not_supported
exception error
Transactions are not supported by the connected server(s).
exception error
A transaction was started while another transaction was bein
exception error
Transaction failed with the following error: %{error}.
exception error
:on conditions for after_commit and after_rollback callbacks
exception error
Invalid options passed to %{klass}.store_in: %{options}.
exception error
Cannot drop collection %{collection_name}.
exception error
Cannot create collection %{collection_name} with options %{c
exception error
The isolation level '%{level}' is not supported.
exception error
No clients configuration provided.
exception error
Version no longer supported: #{version}
exception error
Unknown version: #{version}
exception error
Specifying both key_id and key_name_field is not allowed
exception error
Could not load the configuration since no environment was de
exception error
Empty configuration file: %{path}.
exception error
Invalid configuration file: %{path}.
exception error
Invalid global_executor_concurrency option.
exception error
No default client configuration is defined.
exception error
No database provided for client configuration: :%{name}.
exception error
No hosts provided for client configuration: :%{name}.
exception error
Both uri and standard configuration options defined for clie
exception error
Invalid configuration option: %{name}.
exception error
No output location was specified for the map/reduce operatio
exception error
A collation option cannot be applied when querying documents
exception error
Could not find a document of class %{klass}.
exception error
Invalid criteria for estimated_count.
exception error
Could not find a document of class %{klass}.
exception error
Invalid async_query_executor option: %{executor}.
exception error
Errors::DocumentNotFound.new(klass, nil, nil)
exception error
Method '#{method}' is not allowed in from_hash
exception error
instantiated results must be typecast
exception error
Criteria#where requires zero or one arguments (given #{args.
exception error
Errors::UnsupportedJavascript.new(klass, expression)
exception error
Errors::DocumentNotFound.new(klass, ids, ids - result.map(&:
exception error
Errors::InvalidFind.new
exception error
Eager loading only supports arguments that are the names of
exception error
Errors::InvalidIncludes.new(klass, [ relation ])
exception error
Mongoid no longer supports marshalling with driver version 1
exception error
Ruby does not allow same symbol operator with different valu
exception error
Calling Criteria methods with nil arguments is not allowed.
exception error
Expression must be a Hash: #{Errors::InvalidQuery.truncate_e
exception error
Operator '#{field_s}' is not allowed in a query expression.
exception error
#{operator} argument must be an array: #{Errors::InvalidQuer
exception error
Field must be a string: #{field}
exception error
cannot translate #{value.inspect} (#{value.class}) to a dire
exception error
A class which includes Mongoid::Document is expected
exception error
Attempted to instantiate an object of the unknown model '%{k
exception error
Cannot set the %{attr} attribute on the %{klass} class.
exception error
Invalid field type %{type_inspection} for field '%{field}' o
exception error
Defining an association named '%{name}' is not allowed.
exception error
Defining a field named '%{field}' is not allowed.
exception error
Invalid option :%{option} provided for field :%{name}.
exception error
Invalid index specification on %{klass}: %{spec}, %{options}
exception error
An around callback must contain a yield in its definition.
exception error
$all argument must be an array: #{Errors::InvalidQuery.trunc
exception error
$and argument must be an array: #{Errors::InvalidQuery.trunc
exception error
$and argument must be a non-empty array: #{Errors::InvalidQu
exception error
Invalid value for $#{operator_name} argument: negative integ
exception error
Invalid value for $#{operator_name} argument: negative numbe
exception error
Invalid type for $#{operator_name} argument: not representab
exception error
Invalid type for $#{operator_name} argument: #{condition}
exception error
$elemMatch requires a Hash operand: #{Errors::InvalidQuery.t
exception error
Invalid $elemMatch operator '%{operator}'.
exception error
Invalid $elemMatch operator '%{operator}'.
exception error
$regex is required if $options is given: #{Errors::InvalidQu
exception error
mongoid.errors.messages.invalid_field_operator.message
exception error
$gt argument cannot be a Range: #{Errors::InvalidQuery.trunc
exception error
$gte argument cannot be a Range: #{Errors::InvalidQuery.trun
exception error
$in argument must be an array: #{Errors::InvalidQuery.trunca
exception error
$lt argument cannot be a Range: #{Errors::InvalidQuery.trunc
exception error
$lte argument cannot be a Range: #{Errors::InvalidQuery.trun
exception error
Unknown $mod argument #{condition}
exception error
Malformed $mod argument #{condition}, should have 2 elements
exception error
'$ne' operator does not allow Regexp arguments: #{Errors::In
exception error
$nor argument must be an array: #{Errors::InvalidQuery.trunc
exception error
$nor argument must be a non-empty array: #{Errors::InvalidQu
exception error
$not argument cannot be an empty hash: #{Errors::InvalidQuer
exception error
$not arguments must be operators: #{Errors::InvalidQuery.tru
exception error
$not argument must be a Hash or a regular expression: #{Erro
exception error
$or argument must be an array: #{Errors::InvalidQuery.trunca
exception error
$or argument must be a non-empty array: #{Errors::InvalidQue
exception error
$regex requires a regular expression argument: #{Errors::Inv
exception error
$size argument must be a non-negative integer: #{Errors::Inv
exception error
Unknown $type argument: #{condition}
exception error
The model resolver %{resolver} was referenced, but never reg
exception error
The class %{klass} is not registered with the resolver %{res
exception error
Cannot find any model with type %{model_alias}
exception error
Validation of %{document} failed.
validation error
Calling %{method} on %{klass} resulted in a false return fro
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
Cannot persist embedded document %{klass} without a parent d
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
Attempted to change the immutable attribute '%{name}' with t
exception error
cannot specify :set_on_insert with `replace: true`
exception error
Attempted to persist a readonly document of class '%{klass}'
exception error
must specify a class or a document instance
exception error
Invalid persistence option :%{invalid}.
exception error
Transactions are not supported by the connected server(s).
exception error
Document(s) not found for class %{klass} with id(s) %{missin
exception error
Cannot create scope :%{scope_name}, because of existing meth
exception error
Defining a scope of value %{value} on %{klass} is not allowe
exception error
#{resolved_path} is nil on this document; cannot perform vec
exception error
#{resolved_path} is nil on this document; cannot perform aut
exception error
hnswOptions is only supported with indexingMethod: hnsw
exception error
No vector search indexes declared on #{name}
exception error
No vector search index '#{index}' declared on #{name}
exception error
#{name} has multiple vector search indexes; specify index: t
exception error
Cannot infer vector path on #{name}: no 'vector' type field
exception error
No auto-embed indexes declared on #{name}
exception error
No auto-embed index '#{index}' declared on #{name}
exception error
#{name} has multiple auto-embed indexes; specify index: to s
exception error
Cannot infer path on #{name}: no 'autoEmbed' field in index
exception error
Shorthand shard_key syntax does not permit options
exception error
Full shard_key syntax requires 1 or 2 arguments
exception error
No configuration could be found for a client named '%{name}'
exception error
Invalid automatic encryption configuration for client %{clie
exception error
Automatic encryption configuration for client %{client} does
exception error
kms_provider_name must be provided when there are multiple k
exception error
Setting the discriminator key on a child class is not allowe
exception error
eager_load cannot use $lookup aggregation because the follow
console error
#{through_names.join(', ')} are :through associations and do
console error
Unknown config options detected: #{config}.
console error
The :schema_map is configured in the :auto_encryption_option
console error
Multiple $text expressions per query are not currently suppo
console error
Using #{result} as the field type is not supported. Saving v
console error
Overwriting existing field #{name} in class #{klass.name}.
console error
Around callbacks are disabled for embedded documents. Skippi
console error
To enable around callbacks for embedded documents, set Mongo
console error
Creating scope :#{name} which conflicts with #{self.name}.#{
console error
MONGOID: #{model} has shard config but is embedded
console error
MONGOID: #{model} has shard config but is not persisted in a
console error