| Previous | Next |
| STATUS_FWP_INVALID_WEIGHT | STATUS_FWP_TYPE_MISMATCH |
STATUS_FWP_MATCH_TYPE_MISMATCH
The comparison operator and operand do not form a legal condition
STATUS_FWP_MATCH_TYPE_MISMATCH is emitted when the fieldKey, matchType, and conditionValue combination cannot be evaluated by WFP. Equality is broadly available, but ordering, range, flags, case-insensitive, and prefix-style operations have data-type restrictions.
Treat the condition as a three-part contract, not as a simple comparison expression. Record the field GUID and the exact FWP_MATCH_TYPE before changing the value. Replacing the operator with equality may silence validation but materially narrows a range or mask policy.
What to inspect
- The field GUID, current layer, and the data type that the field accepts.
- The exact
FWP_MATCH_TYPEand whether its documented operand requirements are met. - The condition value type and serialized bytes or numeric representation.
- A minimal test filter that preserves the desired semantics while isolating the invalid condition.
References
- Microsoft: WFP error codes
- Microsoft: FWP_MATCH_TYPE restrictions
- Microsoft: FWPM_FILTER_CONDITION0
- Microsoft WFPSampler source
Looking for a different code? Search another status or error code.