122
Call a Pro
MongoDB · Database Server & Atlas
MongoDB server reported: Incompatible Election Protocol.
Quick Answer
Error code 122 on your MongoDB Database Server & Atlas means: MongoDB server reported: Incompatible Election Protocol.. This is usually fixable — see the step-by-step guide below.
Affected Models
Applies to all models
Likely Causes
How to Fix It
1
Review logs/telemetry for code 122 (IncompatibleElectionProtocol) and capture the exact command and parameters that triggered it.
2
Refresh topology metadata and retarget the command using current primary/shard ownership.
3
Review replication/sharding events around the timestamp to confirm role transitions.
4
Gate retries on a stable cluster view and avoid stale routing caches.
5
Add monitoring for recurring IncompatibleElectionProtocol events so future incidents are detected and triaged faster.
Pro Tip
This issue typically requires professional diagnosis. Attempting this fix without proper training could cause further problems.
Related Error Codes