Could not restore commission
Admin unreverse returned 500 Could not restore commission. (generic catch after specific locks).
Why this happens
Unexpected ops/DB failure, or a state not mapped to a clearer message. Cannot restore a commission that was reversed after payout is returned first when that rule applies.
Diagnose and fix
1. Refresh the commission in Affiliate commissions ledger; confirm status.
2. If post-payout reverse, restore is not allowed — see that article.
3. Check server logs for the underlying exception.
4. See Could not reverse commission / Could not return commission to pending for sibling actions.