| Previous | Next |
| FWP_E_INVALID_WEIGHT | FWP_E_TYPE_MISMATCH |
FWP_E_MATCH_TYPE_MISMATCH
FWP_E_MATCH_TYPE_MISMATCH means that a filter condition uses a comparison operator that is incompatible with its operands. The error is about the pairing of a WFP match type and the field value, not merely an invalid IP address, port, or application identifier.
Where generators go wrong
- A generic rule builder applies one operator to fields with different data types or semantics.
- A range-like comparison is used where the target field only supports equality-style matching.
- A copied condition is retargeted to a new layer without revalidating what that layer exposes and how it can be compared.
Repair the model
Validate the condition field, its expected value type, and the allowed match operators as one unit. Simplify the rule to a documented compatible condition before rebuilding a complex expression, and test the filter definition before relying on packet captures to diagnose a rule that was never installed.
Microsoft: WFP error codes · Microsoft: filter conditions by layer · Microsoft: filter construction
Looking for a different code? Search another status or error code.