Messages getting stuck in Delivering status in AE

Hi all,
Recently we are coming across messages that go into Delivering status. These messages mostly belong to File Sender/Receiver Adapter but not confined to them. Here is the audit log of one such message:
2011-03-21 10:01:55 Success Write to file "/usr/sap/ZX2/EXT/XI_INTERFACES/SCP2PIF016/NOT_PROCESSED/goodsReceiptPosting_InvalidRecords20110321-100155-650.xml" as binary, size 1949 bytes
2011-03-21 10:01:55 Success File processing complete
2011-03-21 10:01:55 Success MP: Leaving module processor
2011-03-21 10:01:55 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
2011-03-21 10:01:55 Error Setting the message status to DLNG failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: Error updating status..
On searching in SDN I found one work around-- to restart Messaging Service in Visual Admin. This did work as the messages got processed after that. But, the problem seems to be recurring now(once in every two days).
Can any body shed some light on this to find the permanent fix?
Thanks a lot,
Gokul.

Hi,
Make sure you have set the MaxThreadCount parameter to 350 or higher depending of the case and of the resources available.
To increase the parameter, please follow the instructions below:
1. In the left frame choose Server -> Kernel -> ApplicationThreadManager
2. In the tab Display Configuration (right frame) choose Switch between view and edit mode to activate the edit mode.
3. The parameter MaxThreadCount must be set to 350.
4. You will then need to restart the J2ee
For reference see note #937159 - XI Adapter Engine is stuck
For specific setting to an adapter can be done by going to the Visual Administrator -> Services -> SAP XI AF Messaging
Look at the property 'Messaging connections' here you will see the following queues:
Send.maxConsumers (asynchronous sending - outbound)
Recv.maxConsumers (asynchronous receipt - inbound)
Call.maxConsumers (synchronous sending - outbound)
Rqst.maxConsumers (synchronous receipt - inbound)
Depending on where the bottleneck is occurring (i.e. too many entries in the Send.maxConsumers) you can increase these parameters.
Example of parameter value syntax (sample for FILE adapter):
(name=FILE_http://sap.com/xi/XI/System, Send.maxConsumers=10, Recv.maxConsumers=10, Call.maxConsumers=10, Rqst.maxConsumers=10)
For reference see note:
#791655 - Documentation of the XI Messaging System Service Properties
And see the link:
/people/kenny.scott/blog/2007/08/20/messaging-system-queue-properties-after-xi-30-sp19-xi-70sp11
Regards,
Caio Cagnani

Similar Messages

  • Messages are stuck in "delivering" status

    Hi
    We are doing Async RFC to JDBC Scenario. Messages are successful from R/3 to XI but getting stuck at receiver jdbc adapter . subsequent message are also stuck because of this
    Below is the audit log of the message
    2007-06-29 10:33:08
    Success
    The message status set to DLNG.
    2007-06-29 10:33:08
    Success
    Delivering to channel: CS_CUS_PS_MAINTENANCE
    2007-06-29 10:33:08
    Success
    MP: entering
    2007-06-29 10:33:08
    Success
    MP: processing local module localejbs/CallSapAdapter
    2007-06-29 10:33:08
    Success
    Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2007-06-29 10:33:08
    Success
    JDBC adapter receiver channel CS_CUS_PS_MAINTENANCE: processing started; party  , service BUS_MES
    After then it just hangs and it shows "delivering" status only
    There is no error in SXMB_MONI
    Any clues!!!!!!!!!!!!!!
    Regards
    Vijay

    Vijay,
    The queues in adapter are different from the queues in Integration Engine.
    You can restart failed msg in adapter queues also. Stefan Grube has shown this in a weblog. Just do a search, you will get the blog.
    Regards,
    Jai Shankar

  • PI RWB-Messages stuck in Delivering Status

    Hi Experts,
    PI 7.1
    Scenario: Proxy to Mail (Outbound)
    QOs: Exactly Once in Order
    We are facing problem while sending messages to receiver.
    Messages are stuck in Delivering status and the messages followed by them are going into holding status.
    Messages in Delivering status has no audit logs.
    Issue has started couple of months back. We took restart initially to rectify the barrier but it is happening again. This is repetitive issue and we are looking for permanent fix. Restart is not preferred resolution as it is a production system.  Please suggest how can we overcome it? It would be a great help.

    Hi Hardik
    I've blogged about this issue recently. Please check out the blog:-
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/03/27/handling-and-preventing-messages-stuck-in-to-be-delivered-status
    Rgds
    Eng Swee

  • Receiver JDBC channel is stuck in "delivering" status.

    Hi experts,
    I have a IDoc -> JDBC scenario, and when the JDBC channel tries to process a message, it get stuck in "delivering" status. Here's the log of the message process:
    2011-04-25 17:38:10 Success Message successfully received by messaging system. Profile: XI URL: http://xq0ds001:50100/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    2011-04-25 17:38:10 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2011-04-25 17:38:10 Success Message successfully put into the queue.
    2011-04-25 17:38:10 Success The message was successfully retrieved from the receive queue.
    2011-04-25 17:38:10 Success The message status set to DLNG.
    2011-04-25 17:39:08 Success Delivering to channel: CC_JDBC_NA_Familiares_BUXIS_Receiver
    2011-04-25 17:39:08 Success MP: Entering module processor
    2011-04-25 17:39:08 Success MP: Processing local module localejbs/CallSapAdapter
    2011-04-25 17:39:08 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2011-04-25 17:39:09 Success JDBC adapter receiver channel CC_JDBC_NA_Familiares_BUXIS_Receiver: processing started; party  , service BS_NA_BUXIS_QA
    Any ideas of what could be causing this?
    Many thanks!
    Vanesa.-

    Hi Vanesa,
    Make sure you have set the MaxThreadCount parameter to 350 or higher depending of the case and of the resources available.
    To increase the parameter, please follow the instructions below:
    1. In the left frame choose Server -> Kernel -> ApplicationThreadManager
    2. In the tab Display Configuration (right frame) choose Switch between view and edit mode to activate the edit mode.
    3. The parameter MaxThreadCount must be set to 350.
    4. You will then need to restart the J2ee
    For reference see note #937159 - XI Adapter Engine is stuck
    For specific setting to an adapter can be done by going to Services -> SAP XI AF Messaging
    Look at the property 'Messaging connections' here you will see the following queues:
    Send.maxConsumers (asynchronous sending - outbound)
    Recv.maxConsumers (asynchronous receipt - inbound)
    Call.maxConsumers (synchronous sending - outbound)
    Rqst.maxConsumers (synchronous receipt - inbound)
    Depending on where the bottleneck is occurring (i.e. too many entries in the Send.maxConsumers) you can increase these parameters.
    Example of parameter value syntax (sample for JDBC adapter):
    (name=JDBC_http://sap.com/xi/XI/System, Send.maxConsumers=15, Recv.maxConsumers=15, Call.maxConsumers=15, Rqst.maxConsumers=15)
    For reference see note:
    #791655 - Documentation of the XI Messaging System Service Properties
    And see the link:
    /people/kenny.scott/blog/2007/08/20/messaging-system-queue-properties-after-xi-30-sp19-xi-70sp11
    Regards,
    Caio Cagnani

  • Messages getting stuck in QRFC Queue

    Hi,
    Today I noticed that a message had gotten stuck with the status "Sheduled for Outbound Processing" (scenario IDOC->XI->File), XI 3.0 SP11.
    This in turn had the effect that the whole QRFC queue got stuck, and all following messages got stuck with status "Sheduled".
    I had to remove the first message from the queue manually so that XI could start to purge the other messages from the queue.
    What could be the reason for the first messages getting stuck with this status ("Sheduled for Outbound Processing")?
    The message was very small, just a couple of lines. One thing that comes into mind, is that XI received 4 IDOCS for the same interface, within one second. These 4 messages were assigned to different queues, but one of them got stuck. Could there be problems with XI when several messages arrive on the same interface within a very short time?
    Is it possible to use Alerts to detect this kind of problem in the future? As I have understood, Alerts only handle XI "errors", but according to XI, this message did not have an "error status", it just had the status "Sheduled for Outbound processing"..
    Thanks for any help,
    Hans

    Hi,
    If the message got struck in Queue, you try to activate the queues in smq2 to reprocess the data instead of deleting it. This is the final solution. But you should able to see a dump in ST22 for this problem.
    thanks,
    sasi

  • Issue with PI messages in "To be Delivered" Status

    Hello Experts,
    We have a Mail to SOAP scenario on PO 7.4 single stack PI system. Currently we are facing issue with messages where messagess are in status "To be Delivered". Messages dont get processed further.
    Two days back, we had issue with file system table overflow and this cause messages remained in "Delivering" status. I can see Audit log with error emssage for table space full.
    I couldnt cancel/resend those messages.
    I believed these messages are causing rest of the messages to go in "To be Delivered" status. I found few blogs to check resources in Java Engine Additional Data->Queues and its looks good.
    we had system restart and these "Delivering" messages were cancelled but again when we tried a fresh run and first message went into "Delivering" Status with 500 server error message in audit log and subsequent messages started going into "To be Delivered" status. This is happening only for one scenario, rest of the message are working fine.
    I tried wit new BS, Channel, Integrated scenario for same functioanlity but its not working.
    Recent messages with "To be Delivered" can be seen with below audit log
    Information MP: processing local module localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    Information Mail: Calling the module processor for channel CC_Sender_V2
    Information Mail: Message leaving the adapter (call)
    Information Trying to put the message into the send queue
    Information Application attempting to send an XI message asynchronously using connection AFW
    Information Message successfully put into the queue
    Information Trying to put the message into the send queue
    Information Mail: Call completed
    Information Message successfully put into the queue
    Information The application sent the message asynchronously using connection AFW. Returning to application
    Information Mail: Call returned for channel CC_Sender_V2
    we have latest patch(SAP_XIESR Version 1000.1.70) applied 10 days back only
    Kindly suggest.

    Hi All,
    Thanks for your reply and suggestions.
    Now messages are flowing properly. Issue was with data population in the target structure. Receiver side we have Knowledge Management portal website and CreateDocument operation fields were expecting some values to be populated. We tried few combinations and it worked.
    We also tried changing mapping and we could reproduce messages with "To be delivered" status.
    Now we are searching for KM Portal Webservice documentation where information about every field of operation is mentioned. If we straight away pass source mailbody to webservice, its not working. failing at webservice end with error 500 internal server error. It expects data to be in Base64 format and also fields like Length of data to be populated. If we get documentation then things would be more easy. We are also passing attachment but its not getting generated at target end. We are not sure if webservice support that feature.
    Thanks,
    Vinit.

  • Messages gets stuck up in active state

    Hi ,
    In our production environment, we are facing strange issues for the past 1 week.
    Issue 1:
    Messages gets stuck up in active state. In our message tracking mechanism ,the status is successfully sent to destination party. The message should not hold up in active state in first place?
    If we restart the Host instance, it is creating duplicate and processing it which is creating misssing ICR issue.
    Per day message flow-200 messages
    Please suggest ?
    Kind Regards,
    Giri.a
    girishkumar.a

    Hi Girish, 
    I believe OFTP adapter is not native adapter(in box) for BizTalk Server.
    So, is there any logging mechanism in OFTP adapter?
    Also, can we connect to the FTP server using some other tool like Filezilla etc. If other 3rd party products are also not able to connect to this server then we can say that its not a BizTalk issue.
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Messages getting stuck in SMQ2

    Messages get stuck in SMQ2 with the Error msg "SQL error on database occurred when accessing a table".
    This is happening on PI system 7.11 SP04 with Max DB version 7.7.06.07.
    This typically happens when sending messages from one BPM to another although it has more of a random pattern.
    A corresponding dump is also seen in ST22.
    The dump details are as below:
    Runtime error : DBIF_RSQL_SQL_ERROR
    Exception : CX_SY_OPEN_SQL_DB
    Database error text : Invalid numeric value for parameter/column (10)
    Internal call code : "[RSQL/UPDT/SWFRXIHDR ]"
    Any help is highly appreciated in resolving this issue.
    Regards,
    Murali Narayanan

    > The dump details are as below:
    > Runtime error : DBIF_RSQL_SQL_ERROR
    > Exception : CX_SY_OPEN_SQL_DB
    > Database error text : Invalid numeric value for parameter/column (10)
    I would update the kernel (plus the database interface library lib_dbsl) to the latest patchlevels and try again. If the error persists I'd upgrade the database to the latest patchlevel. If it still doesn't work I'd open an OSS call (BC-DB-SDB).
    Markus

  • Message getting stuck in XBQO queue - Time limit exceeded

    Hi All,
    We have a BPM scenario in our project (on PI 7.0 SP18), where bundle of PEXR2002 Payment IDocs are received as a single flat file. This file is then consumed by the BPM, to split the message into multiple payments using Java Mapping.
    However, when we get an IDoc file of size greater than 5 MB (more than 500 IDocs), the message gets stuck in XBQO queue and eventually giving a SYSFAIL with the message "Time limit exceeded". Could you please let us know if you have encountered a similar issue and are aware of a possible solution.
    Any pointers to this will be really appreciated.
    Thanks & Regards,
    ROSIE SASIDHARAN

    H Rosie,
    1)  Goto SXMB_ADM-> Integration Engine Configuration->Parameter  EO_MSG_SIZE_LIMIT->possible values 0 - 2,097,151 (KB)
    The parameter EO_MSG_SIZE_LIMIT enables serial processing of messages of a particular size. This applies for messages with the quality of service Exactly Once (EO). If the message is larger than the parameter value, the message is processed in a separate queue.
    2)  Goto SXMB_ADM-> Integration Engine Configuration->Parameter  HTTP_TIMEOUT->possible values n Seconds, where n is a whole number.
    The parameter Specifies the timeout for HTTP connections (time between two data packages at line level). This value overrides the system profile parameter icm/server_port_n (for example, icm/server_port_0 : PROT=HTTP, PORT=50044, TIMEOUT=900). If you do not set the parameter HTTP_TIMEOUT or if you set the parameter to 0, then the setting for the system profile parameter is used.
      See SAP Note 335162  for sysfail issue....
      Hope these will help u....
    Regds,
    Pinangshuk.

  • Messages getting stuck in tcp_local Channel

    Hi All
    Version
    Sun Java(tm) System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004)
    libimta.so 6.1 HotFix 0.01 (built 12:52:04, Jun 24 2004)
    SunOS dakota 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V440
    Background
    In the last week we've been experiencing problems with outgoing messages getting stuck in our tcp_local channel. They can stay for up to 4 hours before dequeuing. We plan to install Patch 116568 which is the latest core patch for our version of the Messaging Server.
    To date we haven't experienced any DNS problems and have not made any configuration changes.
    However I was just wondering if anyone had come across this type of problem before? We're hoping the patch will resolve the issue but would be interested in other alternatives.
    Thanks in advance
    Paul

    You'll have to do more research before I can offer help. . .
    It's not unusual for some messages to be retried, and depending on the destination, that may take a while.
    Some outside domains are always slow. If you have many messages queued for such outside domains, they can involve the whole server, and cause mails to queue up behind them.
    Many installations create a new channel, such as, "tcp_slow", and use rewrite rules to move messages addressed to these domains (aol, hotmail, earthlink, etc.) into this separate channel. You can "tune" that channel differently, and messages there won't block tcp_local.

  • Urgent - Messages in "To Be delivered" status

    Hi XI ers,
    We have around 150 messages in "To Be delivered" status. Tried resending a couple of them but no sucess.
    When tried to resend a message, it gives message 2 Audit log entries in MDT (Message Display Tool). The first entry is "Try to fail the message" and "Trying to resend the message"
    After that in RWB, message monitoring, the status of the message is "To Be delivered" forever.
    >>there are no queue entries (smq1 and smq2)
    >> tried cancelling the first message in the list of "To Be delivered" status.. and that did not work.
    The error being in Receiver end, there are no error entries in sxmb_moni also.
    Can any help me with what the issue could.
    Any suggestions on directing me are welcome,
    thanks,

    hey
    have a look at the followin
    Status:  TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Solution:
    This is done via the Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
    /<PROTOCOL>
    Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
    Try logging into Sap GUI with two users:  XIAPPLUSER & XIAFUSER
    to see if they are blocked 
    We can check the messages:
    AdapterFramework 
    com.sap.aii.adapterframework.serviceuser.language 
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd 
    ApplicationSystem 
    com.sap.aii.applicationsystem.serviceuser.language 
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER 
    com.sap.aii.applicationsystem.serviceuser.pwd
    in the exchange profile to make sure the right passwords
    thanx
    ahmad

  • Async call gets stuck with pending status

    Hi,
    I am working on Tasklayer where need to invoke Async. call, the .bpel file has Invoke activity and below that it has pick activity with branches one for OnMessage and another is also OnMessage but, this is for fault. Now, when it invokes the Async. what i see in the instance is that the OnMessage activity gets stuck in Pending status, it doesn't proceed further. Kindly let me know if any one has faced similar issue.
    Thanks & Regards,
    Sanjay

    Hi Sanjay,
    you are saying that u r calling an asyc process.
    So as an async process do not send the response back to parent through same port, you have to send the fault back to parent by invoking it(parent).
    Here you can send the fault by using existing callback port otherwise you can define separate port for fault can send through that(you have to do it in WSDL).
    So here for the first case no need to have the pick as u r getting both success and fault through same port. If you are going for separate one you have to have pick(one for success and other for faulted one)
    So as Steven said you have to have a catch and invoke to send the fault back to parent.
    Regards
    PavanKumar.M

  • From time to time, my outgoing mail messages get stuck in the "outbox".  I'm having trouble resolving the problem.

    From time to time, my outgoing mail messages get stuck in the "outbox".  I'm having trouble resolving the problem.

    I use Comcast. My computer (Mac Air) also uses my iCloud and Me accounts. The message I get back says they are all offline.

  • Messages stuck in delivering status

    Hi all,
    I have an idoc-xi-ftp scenario with EO quality of service. For the very first tests we set up a file CC using nfs and everything worked fine.
    Today I received the info to connect to the FTP server and introduce it on the file CC. The issue comes because some kind of problem writing on the ftp server leaves the messages in status "delivering" (DLNG).  While FTP guys try to fix the issue (they don't know where he tissue is right now) I have switch again to NFS with the old configuration in order to allow the users to keep testing.
    But the issue comes because now the messages being sent to NFS scenario are marked as to be delivered and they are not processed.
    I'm suspicious about the delivering ones and I'd like to cancel, but the cancel button doesn't allow me to do it so I'm hanged in a circle.
    Any ideas?
    Thanks in advance,
    David R.

    Hi,
    Yes, ABAP +Java implies a complete restart of the PI server, which is not recommended in the production environment.
    Generally, this case is like a deadlock situation. We will not be able to either resend/cancel the messages in delivering.
    So , best option would be to identify which server node these messages are stuck and then restart that server node.
    With the server node restart these messages in Delivering are again reprocessed by the server.
    Regards,
    Younus

  • Email messages getting stuck in Outbox

    I have regular problems with my sent emails getting stuck in my Outbox when using verizon.net mail.   The problem only occurs with verizon.net and only on my tablet (Nexus 7), not on my PC.   Both are on same wireless network so I don't think it is due to interruption in connection.   Is there some adjustment I need to make?

    Gmail is a deliberately broken implementation of IMAP that often causes problems with Mail. The problem seems to have gotten worse in Mavericks. Google has no incentive to make Gmail work well with any mail client, because the company makes money by delivering targeted ads via the Web. The Gmail servers analyze your messages to gather information about you and your contacts that Google can then sell to marketers, or to anyone who will pay for it. You agreed to those terms when you registered a Gmail address. The marketers—not Gmail users—are Google's customers and the ones it aims to please.
    I suggest either not to use Gmail at all, or to access it through the website as Google intends. You might get better results with another email client. I don't recommend any one in particular.
    If you insist on trying to make Gmail work with Mail, the following links may help:
    Configuring OS X Mail For Gmail Without Duplicates
    Setting up Apple Mail to Rock and Roll with Gmail
    Apple Mail and Gmail Part Deux

Maybe you are looking for

  • How do I get my signature at the bottom of a letter in Mail?

    I have my signature in the signatures box in Mail as a .jpg. How do I get it to the bottom of any letter that I write? Many thanks forr your help.

  • Skip table during automatic standby database

    We would like to skip a table from being replicated into a standby database. We do the following on the standby database startup nomount; alter database mount standby database; recover automatic standby database; and cancel the process. and then brin

  • Im trying to pass in a bindable property into a click argument

    Im trying to pass in a bindable property into a method like so: <mx:Button label="Submit" click="myService.insertData({selectedItem.staffID})"/> However since braces {} are not allowed in the method how can I get round this?

  • I am looking for an applic for blogs! Is it typeface?

    Hello wise people I am trying to locate a blog application which I believe is called typeface but I can't find it...can anyone help? Has it been removed from the apps store? Many thanks Lisa

  • Any Data Stored on RAM?

    I was wondering if it is safe to sell RAM's (I recently upgraded), or if there is any data stored in them? I think there is not, but is that correct? thank you for your inputs!