What does HRESULT 0xC00E0005 (MQ_ERROR_QUEUE_EXISTS) mean?

 
Previous Next
MQ_ERROR_QUEUE_NOT_ACTIVE MQ_ERROR_INVALID_PARAMETER

MQ_ERROR_QUEUE_EXISTS

MQ_ERROR_QUEUE_EXISTS means that a queue with the same Message Queuing path name or instance already exists. Public queues are registered in the directory service, while private queues are registered on the local computer.

How to handle it

  • Do not retry queue creation with the same identity; first decide whether opening the existing queue is valid for the application.
  • Compare the intended queue properties and security settings with the existing queue before reusing it.
  • When creating queues concurrently, serialize the create-or-open path so that competing creators do not treat this result as a transient failure.

Microsoft: MQCreateQueue


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