| Previous | Next |
| PEERDIST_ERROR_ALREADY_EXISTS | PEERDIST_ERROR_ALREADY_COMPLETED |
PEERDIST_ERROR_OPERATION_NOTFOUND
Cannot cancel the requested operation because it has already completed.
PEERDIST_ERROR_OPERATION_NOTFOUND is Win32 error 4059 (0xFDB) and belongs to Peer Distribution and BranchCache asynchronous cancellation.
Troubleshooting steps
- Record operation token, completion callback time, cancellation time, and owner thread.
- Record the exact PeerDist function involved in asynchronous cancellation.
What to verify
Verify whether the requested operation cannot be cancelled because it is no longer active, usually after completion or prior cancellation. Check operation token, completion callback time, cancellation time, and owner thread; record the exact PeerDist function involved in asynchronous cancellation.
Handling, retry, and recovery
Reconcile with the completion path and treat cancellation as too late instead of fabricating a new operation.
Difference from nearby codes
ALREADY_COMPLETED rejects another operation on completed state; OPERATION_NOTFOUND is specifically about locating the cancellation target.
Practical example
A timeout thread cancels just after the completion callback removed the token. Serializing token removal resolves the ambiguity.
References
- Microsoft: System Error Codes (4000–5999) — reference for error 4059.
- Microsoft: Peer Distribution API — reference for error 4059.
- Microsoft: peerdist.h API reference — reference for error 4059.
- Microsoft: BranchCache — reference for error 4059.
Looking for a different code? Search another status or error code.
