Avaya Support Forums  

Go Back   Avaya Support Forums > Contact Center Applications

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-04-2015, 08:16 AM
nelr nelr is offline
Hot Shot
 
Join Date: Sep 2014
Location: Cape Town, South Africa
Posts: 19
nelr has 10 reputation points
Default EMC clearing email queues

Hi all,

I have to delete an email queue on EMC 6.2. The queue is not in use anymore, with no agents assigned to it. However there are still some emails waiting in the queue. When I try to delete it from the Email Media Stores, the EMC control panel complains that he cannot delete a queue with emails in it. From the Media Director I could delete it successfully.

Is there a way that I can clear this queue / media store manually without any agents?

Thanks in advance.
Reply With Quote
  #2  
Old 06-10-2015, 03:08 AM
pradeept pradeept is offline
Member
.
 
Join Date: Dec 2010
Posts: 8
pradeept has 11 reputation points
Default

Emails should be completed successfully then only it will allow us to delete email queue.
1.Agent should answer all emails exist in queue and we should be able to delete email queue.
2.We can mark these emails as completed from database by running below stored procedure. We need to stop Email Media Store before executing this query.

Query#
exec StoreInteractionClosed @ServerInstanceType='2D3B269B-D04D-44BB-A734-83037FD0C4BF',@ServerInstanceId='A66C02AA-1AC0-4C24-9E8B-C179E66A8C5F',@ProgramId='16C2A528-57E3-4BD5-AC17-DFD4B569F907',@InteractionId='F48D2499-D8CB-4A7C-95E7-0E61CE26DDF7',@CompletionStatus=1,@EventFiredDateT ime='2015-06-10 08:31:37.747'

ServerInstanceType, ServerInstanceId are of EmailMediaStore, we can get it from EMC Control Panel->EmailMediaStore. Note down these
ProgramId, we can get it in EmailMediaStore->Queues->Right Click ->Edit on queue which we delete->Email programId. Note down these.
InteractionId's of emails you will get from SQL Database. Login to Database and execute below .
select * from dbo.InteractionStates where programId = 'xxxxxxx' . Paste programid which you got it from EMC Control Panel. now note down all Interactionid's.

With all these data, we need to execute first query and emails will be set as completed successfully and then we can delete email queue.

please test with one of email and if everything works. Go ahead with rest of emails.
Reply With Quote
  #3  
Old 06-10-2015, 03:15 AM
pradeept pradeept is offline
Member
.
 
Join Date: Dec 2010
Posts: 8
pradeept has 11 reputation points
Default

missed to add related to DateTime

@EventFiredDateTime='2015-06-10 08:31:37.747'....we need to provide current time when this query will be executed and it will be in UTC Format. Please provide correct time.
Reply With Quote
  #4  
Old 06-11-2015, 08:49 AM
nelr nelr is offline
Hot Shot
 
Join Date: Sep 2014
Location: Cape Town, South Africa
Posts: 19
nelr has 10 reputation points
Solution Delivered

Thank you pradeept, I will try that.

Last edited by nelr; 06-11-2015 at 09:07 AM.
Reply With Quote
Reply

Tags
email, emc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:06 AM.

This Forum is provided solely for the use and convenience of Avaya customers and partners. Use of the Forum is subject to the Terms and Use and Privacy Statement found at www.avaya.com. No other use is permitted. The Forum including all content posted is “AS IS” and Avaya expressly disclaims all warranties and/or guarantees as to its accuracy, reliability, usefulness, quality or non-infringement of intellectual property. Avaya reserves the right to remove any content posted on the Forum at any time and for whatever reason.

Avaya will not be liable for any content posted on this Forum, including, without limitation, any errors or omissions or for any losses or damages of any kind incurred as a result of use or reliance on any content, regardless of its origin.

You expressly understand and agree that you assume all risks associated with use or reliance on this content.