What does HRESULT 0xC00E001F (MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL) mean?

 
Previous Next
MQ_ERROR_ILLEGAL_FORMATNAME MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION

MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL

MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL means that the caller supplied too little output storage for a complete Message Queuing format name. The API reports the required length, including the terminating null character, so the caller can allocate enough space and repeat the operation.

How to recover

  • Read the returned length value instead of assuming that a fixed-size format-name buffer is always sufficient.
  • Allocate a buffer large enough for the required character count, including the terminator, then call the API again.
  • Do not use the partial format name returned with this status as a durable queue identifier.

Microsoft: MQPathNameToFormatName


Looking for a different code? Search another status or error code.