Milvus "collection not loaded" Error

Share
Workaround available Self-hosted, Zilliz Cloud Updated November 15, 2026Based on 3 user reportsHow we research

Quick answer

Search needs the collection loaded into memory first. Create a vector index, call load_collection, and confirm with get_load_state.

Most likely fix: Index then load

How to fix it

Try these in order — the most common fix is first.

  1. 1. Index then load

    1. Create an index on the vector field with create_index (AUTOINDEX is simplest)
    2. Run client.load_collection(collection_name=...)
    3. Check get_load_state reports loaded
    Did this fix it?
  2. 2. Check after restart

    1. Call get_load_state again after a restart
    2. Reload if it says NotLoad
    3. If load keeps failing, check query node logs and memory
    Did this fix it?

Symptoms

MilvusException (code=22) collection not loaded when you search or query.

Why it happens

  • load_collection never called
  • Collection released or reopened in released state (some Milvus Lite setups)
  • Server restarted and load failed

This guide also covers

  • milvus collection not loaded
  • milvus load collection
  • milvus code=22

Still not working?

If Milvus keeps failing, you're not alone. See every Milvus problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Milvus errors