| Previous | Next |
| MQ_ERROR_RESOLVE_ADDRESS | MQ_ERROR_MESSAGE_NOT_AUTHENTICATED |
MQ_ERROR_TOO_MANY_PROPERTIES
Why the exact HRESULT matters
When MQ_ERROR_TOO_MANY_PROPERTIES appears, start with the queue operation and its property arrays rather than with a broad repair of the Message Queuing service. Interpret it as single call exceeds MSMQ property-count limit, not as a general transport outage. The API processes at most 128 properties in the request, including output/length companions.
For MQ_ERROR_TOO_MANY_PROPERTIES, MSMQ uses arrays whose indexes bind a property identifier, an MQPROPVARIANT value, and optionally a status result. When diagnosing MQ_ERROR_TOO_MANY_PROPERTIES, misaligned counts or reordered arrays can make the logged property differ from the one actually rejected.
When diagnosing MQ_ERROR_TOO_MANY_PROPERTIES, validation occurs in layers: identifier recognition, variant type, buffer shape, value range, required companions, and operation eligibility. In the MQ_ERROR_TOO_MANY_PROPERTIES path, these layers correspond to different MSMQ HRESULTs and different fixes.
Subsystem context
| Subsystem | MSMQ property arrays and their parallel identifier, value, and status elements |
|---|---|
| Decisive boundary | the property identifier, VARTYPE, value, operation, and buffer ownership are validated separately |
| Code-specific focus | single call exceeds MSMQ property-count limit |
| Primary recovery rule | Split only logically independent reads; keep dependent property pairs together. |
When diagnosing MQ_ERROR_TOO_MANY_PROPERTIES, do not merge this result with other property failures: identifier, VARTYPE, value, size, required companions, and operation eligibility are diagnosed by different codes. For MQ_ERROR_TOO_MANY_PROPERTIES, the code-specific boundary is single call exceeds MSMQ property-count limit.
Minimum useful telemetry
- The api name and whether the structure was input, output, or both; associate it explicitly with
MQ_ERROR_TOO_MANY_PROPERTIES. - When diagnosing
MQ_ERROR_TOO_MANY_PROPERTIES, the first failing property rather than only the aggregate hresult; capture the value before cleanup or retry changes it. - In the
MQ_ERROR_TOO_MANY_PROPERTIESpath, the complete apropid/apropvar/astatus triples in original order; compare it with a known-good call using the same account and queue type. - For this
MQ_ERROR_TOO_MANY_PROPERTIESresult, record the queue path or format name, local/remote placement, transactional flag, caller SID, process build, and UTC correlation ID when they apply.
For MQ_ERROR_TOO_MANY_PROPERTIES, log certificate thumbprints, provider names, SIDs, GUIDs, lengths, and hashes where useful, but do not log private keys, symmetric keys, credentials, or confidential message bodies.
Step-by-step diagnosis
- Record the unsigned HRESULT,
MQ_ERROR_TOO_MANY_PROPERTIES, and the native API or COM method before a framework replaces it with a generic exception. - Reproduce with the smallest queue/message/property set that still returns
MQ_ERROR_TOO_MANY_PROPERTIES; change one precondition at a time. - In the
MQ_ERROR_TOO_MANY_PROPERTIESpath, verify the postcondition after the failed call: queue existence, message presence, directory object state, transaction outcome, or generated output may differ by result. - For this
MQ_ERROR_TOO_MANY_PROPERTIESresult, capture the first failing property rather than only the aggregate HRESULT. - For
MQ_ERROR_TOO_MANY_PROPERTIES, capture the complete aPropID/aPropVar/aStatus triples in original order. - When diagnosing
MQ_ERROR_TOO_MANY_PROPERTIES, apply the code-specific recovery rule: Split only logically independent reads; keep dependent property pairs together.
Retry and cleanup
Split only logically independent reads; keep dependent property pairs together.
When diagnosing MQ_ERROR_TOO_MANY_PROPERTIES, do not hide this HRESULT behind an unlimited framework retry. In the MQ_ERROR_TOO_MANY_PROPERTIES path, require a verified precondition change and preserve the original correlation identifier across the next attempt.
Avoiding a false diagnosis
In the MQ_ERROR_TOO_MANY_PROPERTIES path, changing a queue ACL or restarting the service does not correct an invalid identifier, VARTYPE, value, structure, or property combination. The specific focus for MQ_ERROR_TOO_MANY_PROPERTIES remains single call exceeds MSMQ property-count limit.
- In the
MQ_ERROR_TOO_MANY_PROPERTIESpath, A successful test under an interactive administrator account does not prove that the production service account has the same profile, token, directory access, or key permissions. - For this
MQ_ERROR_TOO_MANY_PROPERTIESresult, restarting MSMQ before collecting evidence can invalidate handles and erase the first useful event; it is a containment action, not a root-cause diagnosis.
Example
A message serializer encounters MQ_ERROR_TOO_MANY_PROPERTIES. For MQ_ERROR_TOO_MANY_PROPERTIES, it logs the rejected property index and rebuilds the request from a typed schema instead of retrying the same arrays. When diagnosing MQ_ERROR_TOO_MANY_PROPERTIES, the acceptance test then changes only the decisive precondition and confirms both the HRESULT and the actual queue/message state.
For MQ_ERROR_TOO_MANY_PROPERTIES, include a negative test for the nearest misleading diagnosis so monitoring and user guidance do not collapse distinct MSMQ failures into one alert.
References
- Microsoft: MQCreateQueue — source used for the
MQ_ERROR_TOO_MANY_PROPERTIESanalysis. - Microsoft: Message Queuing error and information codes — source used for the
MQ_ERROR_TOO_MANY_PROPERTIESanalysis. - Microsoft: queue properties and MQQUEUEPROPS — source used for the
MQ_ERROR_TOO_MANY_PROPERTIESanalysis. - Microsoft: MSMQ message properties — source used for the
MQ_ERROR_TOO_MANY_PROPERTIESanalysis.
Looking for a different code? Search another status or error code.