| Previous | Next |
| MF_E_PROPERTY_NOT_EMPTY | MF_E_PROPERTY_VECTOR_REQUIRED |
MF_E_PROPERTY_VECTOR_NOT_ALLOWED
MF_E_PROPERTY_VECTOR_NOT_ALLOWED is a cardinality mismatch. The supplied PROPVARIANT represents multiple values with VT_VECTOR, but the target property expects a scalar value.
Check the type flags, not just the element type
- Log the complete
VARTYPE.VT_LPWSTRandVT_VECTOR | VT_LPWSTRare different property shapes. - Determine whether the caller accidentally used a vector helper for a single-valued property.
- Do not silently choose the first vector element unless the property's semantics explicitly define such a reduction.
In the Windows Property System, the PDTF_MULTIPLEVALUES property-description flag controls whether multiple values are stored as a VT_VECTOR. Media Foundation metadata also uses vectors for multivalued properties. The fix is to construct the expected scalar PROPVARIANT or target a property that is actually defined as multivalued.
Microsoft: PROPDESC_TYPE_FLAGS · Microsoft: IMFMetadata::SetProperty · Wine: Media Foundation property HRESULTs
Looking for a different code? Search another status or error code.