317 — ConnectionPoolExpired

indexconfiguration

The index could not be created

What is happening?

CannotCreateIndex is returned when an index creation request fails. This can happen due to invalid index specifications, conflicting index options, resource limitations, or data that violates the index constraints. The error message typically specifies the exact reason the index could not be built.

Common causes

  1. Index specification references a field path that is invalid
  2. Conflicting index options with an existing index on the same fields
  3. Attempting to create a text index when one already exists on the collection
  4. Data in the collection violates a unique constraint for the new index
  5. Index key exceeds the maximum key length

Source code references

ErrorCodes::ConnectionPoolExpired found in 1 location in the MongoDB server source.

Diagnostic Steps