Message not moving to default exception queue when max retries reached

Hi
I've set up an advanced queue with max retrie of 5 but when the dequing fails the retry count increments but it never goes to the exception queue. The retry count stays at 6, msg_state = READY, deq_txn_id = RETRY_EXCEEDED. Any ideas?
-- drop queue if it exists
exec dbms_aqadm.stop_queue (queue_name => 'AQ$_JY_METER_ENABLE_QTAB_E');
exec dbms_aqadm.stop_queue (queue_name => 'JY_METER_ENABLE_QUE');
exec dbms_aqadm.drop_queue (queue_name  => 'JY_METER_ENABLE_QUE') ;
exec dbms_aqadm.drop_queue_table( queue_table => 'JY_METER_ENABLE_QTAB');
-- create the payload for the messages
CREATE TYPE jy_meter_enablement_typ AS OBJECT
request_id                VARCHAR2(30) ,
request_system_code       VARCHAR2(20) ,
business_process_ref      VARCHAR2(20) ,
request_type_ref          VARCHAR2(20) ,
meter_serial_number       VARCHAR2(10) ,
message_request_content   CLOB
-- Create queue table.
-- This one has a sort list so items will be enqueued first based on priority and then based on enq_time
BEGIN
   dbms_aqadm.create_queue_table (queue_table        => 'JY_METER_ENABLE_QTAB',
                                  queue_payload_type => 'JY_METER_ENABLEMENT_TYP',
                                  multiple_consumers => TRUE ,
                                  sort_list          => 'priority,enq_time' ,
                                  comment            => 'Queue table to handle JY Meter Enablement messages');
END;
-- Create Queue based on table
BEGIN
  -- retention time set 3600 seconds (ie 1 hour) so the message is kept on the queue for 1 hour after it has been dequeued.
   dbms_aqadm.create_queue (queue_name     => 'JY_METER_ENABLE_QUE',
                            queue_table    => 'JY_METER_ENABLE_QTAB' ,
                            max_retries    => 5 ,
                            retry_delay    => 2 ,
                            retention_time => 3600 ,
                            comment     => 'Queue to handle JY Meter Enablement messages in priority/enq_time order');
END;
-- start the queue
BEGIN
dbms_aqadm.start_queue (queue_name => 'JY_METER_ENABLE_QUE');
END ;
-- Add and register a subscriber to the queue to run the Dequeue procedure
BEGIN
   dbms_aqadm.add_subscriber (queue_name => 'EMO_METER_MGMT.JY_METER_ENABLE_QUE',
                              subscriber => SYS.AQ$_AGENT('JY_METER_ENABLE_QUE_SUBSCRIBER',
                                                          NULL,
                                                          NULL )
    dbms_aq.register (SYS.AQ$_REG_INFO_LIST(SYS.AQ$_REG_INFO('JY_METER_ENABLE_QUE:JY_METER_ENABLE_QUE_SUBSCRIBER',
                                                             DBMS_AQ.NAMESPACE_AQ,
                                                             'plsql://EMO_METER_MGMT.DEQUEUE.dequeue_jy_request',
                                                             HEXTORAW('FF'))),1);
END;
-- start the default exception queue
BEGIN
dbms_aqadm.start_queue(queue_name => 'EMO_METER_MGMT.AQ$_JY_METER_ENABLE_QTAB_E',
                        enqueue => FALSE,
                        dequeue => TRUE);
END ;
/Thanks

Sorry, forgot to add db version
select banner from v$version/
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
5 rows selected.

Similar Messages

  • EIM - Default Exception Queue

    Hi all,
    EIM v9.0.2.4, UCCE v10.5.1
    I'm having a reoccurring issue where all emails are initially routed to the proper queue but after exactly an hour / 2 hours, they are moved to default exception queue (since there are no available agents). We have set both the wait time & MRD max duration to a high value (2163000 secs).
    Any ideas?
    Thanks!
    -JT-

    Hi Jameson,
    1. The current max load is 5 per agent. This is correctly distributed to the agents according to this setting
    2. Agent A will continue to receive all emails from Day 1
    3. Logs shows Agent A & B are still being targeted for emails from Day 1
    4. Yup the default configuration. 30 min for new activities only.
    5. The current behaviour is agent will set their availability status to Not Available at the end of their shirt, finish their current emails assigned to them before completely logging off
    According to TAC, all the 100 emails will continue to be routed to the original agent A & B. And only new emails received after the skill change will be correctly distributed to the agents (Agent B) at that time. Not too sure if this is the actual behaviour / limitation.
    Thanks!
    -JT-

  • SXMB_MONI: Message not moving

    Hi,
    I am doing a mail attachment to file scenario.
    I have configured everything including CC. Now,  the data is successfully getting picked from Mail and is visible in SXMB_MOni in Inbound Message ( CENTRAL ) --> Payloads but the message is not moving forward. Also, in RWB this CC is showing processing completed.
    Please sugest what can be the reason and if any more steps are required.
    Thanks,
    Priya

    Chirag,
    The status shows Scheduled.
    Can it be due to data type mismatch.
    My original attachment looks like this :
    COMPUTERISED SPARE PARTS ORDER
    DEALER CD  : 10424
    ORDER REF  : SP/174 DT.18/12/2007
    ORDER TYPE : R
    ITEM CD       QTY
    12345678         45     
    30151105       40
    31151060       40
    DD191125       10
    DG161121       50
    DH101180       10
    DH111015       10
    DH121096       10
    DH161194       40
    DH201048        2
    DH201049        2
    DS101036       20
    DS101276        6
    DU191022        2
    DZ73033W        1
    GH201012       50
    JB730522        1 
    END
    and I have configured the DT for this mail as :
    DT_M1
      ~row                     0....unbounded
         ~Details              1
    Is that okay or it should be like this :
    DT_attop
      ~Header
            dealerCode
            orderRef
             orderType
      ~ItemData
        ~item
            itemCode
            quantity
    End
    Plz suggest.
    Thanks,
    Priya

  • Firefox will not save Site Certificate Exceptions even when checked to do so.

    I have a publicly free Wifi Access point near by that I use daily. When logging on to this site I get a Warning about the Sites Certificate and do I want to proceed, I choose YES and then are asked if I want to make this exception permanent and I put a check mark in the box for yes and press accept. This is suppose to permanently accept this websites certificate in the future. It does not.. It will not save the exception from one session to the next.
    IN SHORT: Firefox failure to permanently store website Certificate exceptions.

    Make sure that you do not run Firefox in (permanent) Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *https://support.mozilla.org/kb/Username+and+password+not+remembered
    *Tools > Options > Security: Passwords: "Remember passwords for sites"

  • Mail messages not moving to trash seemingly until reopening Mail

    I have posted about mail messages disappearing after moving them between mailboxes (a nightmare!).  I tried several things, deleting preferences, rebuilding mailboxes, etc. The particular dissappearing message symptom is yet to reappear.
    However, yesterday the prelude behavior returned.... when I delete a message, it remains in the inbox. I have to quit and restart mail for it to be moved to the trash. It matters not whether I use the delete key on the highlighted message, use the trash tool button, or the "move to trash" command in the "Message" menu. There is other weird associated behavior with the highlighting of a particular message jumping arround (if other messages were unsuccessfully deleted) when this happens too.
    I also have the funky search problems in Mail others have described (sometimes working, sometime not).
    All this started with Mavericks.... what a mess. Any ideas on a fix... what we need here is a serious software fix from Apple!!!!!!

    Apple doesn’t routinely monitor the discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail/Provide Mail Feedback
    Try re-indexing Spotlight.
    Spotlight – Re-index

  • Mail not saving sent messages, not moving Junk messages

    Hi everyone, I'm having a bit of trouble with OS Mail. I've set it up to use an IMAP account, and have set my preferences such that Mail should save all my sent messages in the Sent folder (I assume the Sent folder on my computer, not the one on my IMAP server). Regardless, neither my IMAP server's sent folder nor my computer's sent folder contain any messages that I've sent, and I have confirmed that these messages have in fact been received by the recipients (therefore successfully sent). I am unsure of how to resolve this issue, as there is no obvious setting change for me to persue. I just received this computer (new) a few days ago, so I wouldn't expect this problem to be due to disk maintenance/management, etc.
    Also, I have noticed that Junk messages remain highlighted and in my inbox. I changed my prefs to have these messages be placed in my Junk Mail folder. Mail asked me whether I wanted to apply that preference to older messages marked as junk that have yet to be put in the folder; I indicated yes. Nothing happened, and the Junk Mail folder remained empty (until I manually moved the messages to it). Any ideas?
    I have searched the forums for related issues and could only find problems that had an associated error message with it; my issue is different in that there are no error messages; Mail is simply ignoring my preferences. Thanks in advance,
    Vic

    In OS X Mail, this sent folder appears as a subdirectory
    (sub "mailbox"?) under my "Inbox" mailbox along with
    other folders that are mapped on my IMAP account.
    This means you haven't set up your account properly. You probably should set Preferences > Accounts > Advanced > IMAP Path Prefix to INBOX, or something like that.
    After putting the right string in the IMAP Path Prefix field, either the IMAP folders will appear somewhere else in Mail (i.e. not as subfolders of Inbox), or your problem will have already been fixed. Let me know what happens.
    I should probably mention (just realized) that in my
    account settings, my outgoing SMTP server is set to
    be my ISP's server (which is different from my IMAP
    provider).
    I wonder if, by selecting "save messages on server"
    I am saving these messages somewhere on my ISP?
    Mail should still save the sent messages where you've told it to. It's Mail, not the SMTP server, that stores the sent messages. The SMTP server has no bearing on this, but it was a good idea to consider that possibility, nevertheless.
    When I uncheck this option, perhaps my mail will
    be stored on my local computer instead?
    Yes, that's what would happen, but don't uncheck that option if you really want your sent messages to be stored on the IMAP server, or do it temporarily, so that Mail does at least save them somewhere until we fix the problem, but I believe I already know what the problem is.

  • TS2755 When sending a txt message to another iphone user  we both are getting message not delivered but it is, yet when i send txt to an adroid i dont get that message at all so its not a provider issue

    When i txt to Nother iphone we both get message undelivered et when i txt to an adroid phone its fine

    Erase any conversation you have with this person in your Messages, then start a new one and see if it does same thing.    If it still doesn't go through right away, it's a problem with your friend's iMessage setup, not yours.

  • Images in Mail messages NOT moving

    I used to have messages with .gif images show the movement in the message window. Now when I check my email and it has an image which is supposed to wave, or walk, etc. there is no movement unless I drag it to the desktop and open it in preview, but then it only shows a set of images which will move if you click through them fast enough.
    What can do to get the images to move again in mail.

    Greetings,
    You've posted in the Leopard forum, even though you're running Snow Leopard. You need to pay closer attention to be sure you're posting in the correct forum for the OS you're running. I will have the moderators move it.
    What can do to get the images to move again in [M]ail.
    You can't. The ability to see moving .gif images in Mail was removed in Leopard, without any notice by Apple. You can send them to others, but you won't see them move if they are sent to you.

  • Round badi does not work in default formulas triggered when sending a value

    I have implemented the round BADI from sdn (how to). Problem is that it works perfect when :
    -  I execute it in UKT
    - I run it as a data manager package
    - I put it in default formulas and run the default formulas as a packe
    It however doesn't work when it is executed in default formulas when sending a value from an input scheduls.It gives an error "error converting records -  the root element is missing"
    Anybody a clue ?
    Cheers
    Nico

    Answering to myself!
    Code correction required:
    loop at it_cv into ls_cv.
    *{   INSERT         BPCK900005                                        2
    CHECK ls_cv-dimension NE 'MEASURES'.
    *}   INSERT

  • My iPhone 4s is not making any noise except for when someone calls me, an alarm going off, or unlocking it.

    I have no sound except for my ringtone, alarm, and sometimes the unlocking noise. No text alerts, email alerts, media noise, Pandora noise, iTunes noise, anything. First on my own I restored it to factory settings, cleaned the dock and head jack, did the head phone trick in and out, and I have checked for water damage. I have searched the threads and Google for solutions but none have worked. I talked to Apple today and they made me restore it again and it still doesn't work.
    ^Usually theres a volume bar on videos, none here.
    ^Theres no thing to slide the sound back and forth here.
    ^Also no sound bar here.

    Also I should mention that Apple said it is a hardware issue, but a software issue.

  • Dequeue from an exception queue

    Hi,
    I am very new to oracle AQ and trying dequeuing of message from an exception queue. I have created a procedure for dequeuing a message from exception queue and is working fine. I have to execute this procedure manually each time a message is moved to the exception queue. Is there any mechanism to call this procedure automatically each time the message is moved to exception queue? Please help.
    Thanks in Advance
    Lokesh

    Hello,
    as you wrote you already have a code snippet with DBMS_AQ.DEQUEUE of an exception queue.
    Wrap this DEQUEUE in an infinite loop (LOOP ... END LOOP). In order to have this procedure as an autonomous session
    you can start it as a database job:
    DECLARE
       v_jobno NUMBER(6);
    BEGIN
        DBMS_JOB.SUBMIT( v_jobno,
                        'BEGIN <your module>; END;',
                        SYSDATE, NULL );
        COMMIT;
    END;
    /Kind regards,
    WoG

  • Business messages are not pushed back to the aq exception queue in case of errors

    Hi,
    I have the scenario, where I have configured the business events in ebs and implemented the soa interface which consumes the event message from wf_bpel_q.
    SOA interface is able to pickup the messages succesfully and same message will be pushed back to the same queue with the status=READY in case of exceptions as well. Ideally as per default functionality of AQ, in case of errors, messages will be pushed to exception queue.
    Please suggest why mesages are not pushed back to exception queue in case of errror scenarios with the status='Errored'.  Please let me know what i have been missing here in the setup.
    Regards,
    Anjana

    Hi Anjana,
    I am not familiar with the SOA interface, so I can't help you in detail, but take a closer look to the following documents.
    Doc ID 1374461.1 ,  Doc ID 1075611.1 , Doc ID 1356146.1
    Maybe you hit a known bug ....
    Hope that helps.

  • Cases where messages are not being consumed from a queue

    MQ 4.0
    I have a cluster of 3 brokers. Java clients use RANDOMIZE to connect to the cluster of brokers. Message selectors are not used. My consumers are all synchronous, and connection.start() is called prior to calling MessageConsumer.receive().
    What I have seen on random occassions are messages not being consumed from the queue. The problem seems to be sporadic.
    I was thinking that the reason it is sporadic is because of the RANDOMIZE configuration of the client connetion / object-store.
    That is, there is a possibility for the following to happen:
    1) There were messages produced on a queue on broker A, but before these messages were consumed, all the consumers have been shutdown. Thus, the messages on queue stayed on broker A .... and have not been copied / clustered to the other brokers in the cluster ( As per online documentation, a queue is "copied" to other brokers only when there is a consumer for that queue on the other brokers ).
    2) Then the client applications started up produced and consumers again. This time, the producers were all connected to broker B, and all consumers for the queue were also connected to broker B.
    3) Because there are no other consumers for the queue on the other brokers, the messages in the queue on broker A are never consumed.
    Can someone confirm that this is a possibility ?

    Well ... it does seem to be the case.
    I changed the object-store so that instead of using RANDOMIZE for imqAddressListBehavior, it uses PRIORITY. Therefore, all clients ( producers and consumers ) will connect to only 1 broker out of the 3 in the cluster.
    After restarting all JMS clients with the new imqAddressListBehavior, there were messages in various queues in the other brokers that were not being consumed, because there are no longer any consumers on any of the other brokers.
    All the messages in that broker that all JMS clients connect to are being consumed ...
    Except for about 6 messages that stays in the queue for whatever reason. All consumers receiving with receive( 10000 ), and after consuming all messages above the 6, it returns without any more messages in the queue.
    Well ... so much for cluster of brokers. I'll have to think of an alternative.

  • Orchestration exception:Exception occurred when persisting state to the database because of special character ' ' in HL7 message.

    In some scenarios HL7 message is coming with special character ‘’ and HL7 dis-assembler escaping this character with “&#x10;&#x1;”. But while sending out (pass thru pipeline but orchestration trying to persist here at last sendshape.) from orchestration
    this message failing with the error “Exception occurred when persisting state to the database.”
    As per the analysis , Orchestration is unable to convert to xml document from a
    XLANGMessage because of this special character. We have tried to call custom .net class with following code and its failing here as well (I think orchestration also trying to do same way and failing with the message and failing with same error.).
    public void ProcessRequest(XLANGMessage reqMessage)
    XmlDocument xmlDocument = (XmlDocument)reqMessage[0].RetrieveAs(typeof(XmlDocument)); It is failing here with the error
    “ ', hexadecimal value 0x10, is an invalid character. Line 1, position 1865. “
    Note : Please find the special character in the attachment circled in red color. 

    Hi ,
    Please find the xml and the screenshot.
    <OBX_ObservationResult>
      <OBX_1_SetIdObx>3</OBX_1_SetIdObx>
      <OBX_2_ValueType>TX</OBX_2_ValueType>
      <OBX_3_ObservationIdentifier>
        <CE_0_Identifier>P.112</CE_0_Identifier>
        <CE_1_Text>Where pt. will be transported to \T\ where &#x10;&#x1;famly can wait:</CE_1_Text>
      </OBX_3_ObservationIdentifier>
      <OBX_4_ObservationSubId />
      <OBX_5_ObservationValue>Y</OBX_5_ObservationValue>
      <OBX_6_Units>
        <CE_0_Identifier />
      </OBX_6_Units>
      <OBX_7_ReferencesRange />
      <OBX_8_AbnormalFlags />
      <OBX_9_Probability />
      <OBX_10_NatureOfAbnormalTest />
      <OBX_11_ObservationResultStatus>N</OBX_11_ObservationResultStatus>
    </OBX_ObservationResult>

  • Consume exception queue messages (Topic)

    Hi,
    Context : 1 topic - 2 consumers (BPEL consumers) A and B.
    If A fails to consume a message, this message is sent to the exception queue even if B managed to consume it.
    It's normal.
    If I move this message from the exception queue to the original queue, it will be consumed by A and again by B.
    Is it normal ?
    I expected that the message would be only consumed by A ...
    Is it possible ?
    Thanks,
    romain.

    i ll answer my question
    first set exception queue dequeue enable
    BEGIN
    dbms_aqadm.start_queue(queue_name => 'aq$_request_qt_e',dequeue => TRUE,enqueue => FALSE);
    END;
    then dequeue messages with null consumer name ;)

Maybe you are looking for

  • Problem in Update PO Function module in SRM

    Hi all, I am updating the existing PO with the Function Module 'bbp_po_app_update_po' in SRM system.When i execute this in my program , I am not getting any errors. After this function module call, I committed using 'Commit work and wait'. But my rec

  • Transporting XI from DEV to QA

    Hello All, I need your help in migrating DEV to QA of XI Objects. Could you please tell me the steps, how we can transport 1. SLD transports ? Do I need to create target groups in XID or XIQ ? we have the following landscape R/3 DEV -- XI DEV -- BW D

  • HT201263 Trying to restore ipod touch because it is disabled.

    I have an ipod and can't remember the passcode on it.  It is disabled at my many attempts to remember the code.  It has been sitting for a few months and the original computer died!  I tried to restore it with my current itunes but halfway thorough t

  • ColdFusion Builder won't start at all

    After installing Coldfusion Builder and Flash Builder as standalone installations on WinXP, I can't start either of them. In the Coldfusion Builder folder where the the .exe is located, I get the hs_pid.log log files that you would normally see from

  • SSH Error, While discovering AIX system~~~SCOM 2012 R2

    Hi Guys, While discovery linux system (AIX OS), I am getting below error. In my linux machine telnet port 23 in open so i am using 23 port in replace 22 port.