not all keys requested were satisfied

We’re trying to use Mongo’s client side field level encryption, but sometimes we’re getting “not all keys requested were satisfied” exception.
What this error mean? What keys?


It means that at least one key referenced in your collection schema by UUID cannot be found in your special encryption.__dataKeys collection.
Basically you asked Mongo to encrypt a field using a non-existent encryption key.