Java program to restart failed message in Adapter Engine

Hi,
I am using PI 7.0.
Could anyone tell me whether there is an automated job or URL I can schedule in order to periodically resend messages sitting in the Adapter Engine receive queue that are in status System Error, Holding, or Waiting?
I want to avoid having to monitor the system through message monitoring and manually resending the messages...
Many thanks
Brian

Hi,
please check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/05/b1b740f83db533e10000000a155106/content.htm
Restarting
Instead of restarting messages with errors manually with message monitoring, you can schedule a job to automatically restart these messages. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the System Error status).
You can define one or more rules for each job to restart messages; these rules contain conditions that a message must meet in order to be restarted by the job. At least one of the defined rules must be met for archiving to take place.
Rescheduling
A standard job to reschedule messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are rescheduled. You can schedule additional rescheduling jobs; however, you cannot define rules for them.

Similar Messages

  • Failed Messages In Adapter Engine in Pi 7.1 EHP1

    Hi All ,
    We have observed that Java stack AE  shows some error messages, but when we tried to open those failed messages, shows they were already processed successfully. And observed that this case is only happens in java stack only, we couldn't find any error messages in ABAP Stack moni. We thought this might be java stack issue.
    Please find the below screen shots attached for your reference,
    But above failed messages processed successfully in adapter engine please find below screen shot,
    ABAP Stack Moni: no messages .
    Regards ,
    Ravindar.a

    Hi ,
    Thanks for reply..
    Actually issue happened at that moment. But we were resend all the failed messages and they were processed successfully. We have observed no error messages found in ABAP stack MONI. In Java Stack adapter engine still observe the same error messages showing.

  • Automatic restart of Error-Message in Adapter-Engine (Job?)

    Hi,
    we are working on PI 7.11 and facing following problem:
    Often in message-monitoring error-messages are forgotten because of wrong date-selections by the monitorer (not enough days back). It would be very nice, if there is a function witch is repeating error-messages in adapter-engine automaticly and witch can be scheduled.
    Does anybody know something about an excisting program / function on PI?
    Regards
    Jürg

    Hi,
         By default if any failure occurs in adapter engine (in case of receiver,during delivery to target system)
    it will retry 3 times after a period interval of 5 minutes..this is by default even this can be change if needed with the help of the proeprties at NWA/VA...
    but in case of failures at IE level (mappings,...) then you need to schedule the report RSXMB_RESTART_MESSAGES....
    search SDN if like to know more about the reports...
    HTH
    Rajesh

  • Unable to cancel messages in adapter engine

    Hello,
    We have implemented an interface with file connector. Since one week, all messages are hanged in the adapter engine with status TO BE DELIVERED.
    I tried to cancel but the folowing error message appears :
    Could not fail message. Reason: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not fail message 0013211d-2dc8-1def-a8a4-938b4635c3af(INBOUND), as triggered by admin action. Reason: Predecessor not in final state.
    This interface is a proxy from ECC6-->csv file and i can't see the corresponding messaging in any queues SMQ1..
    They are only available in the RWB/message monitoring/adapter engine
    Can you tell me how to process these messages or cancel ?
    Regards

    Hi
        Messages will go in to the state Tobe delivered if there are no threads available for the particular adapter.. and lack of threads is due to the state of the messages in DLNG...
    Check the messages which are in DLNG and the reason behing long time for processing the same..(can be restart of the target system...)
    if you get the error saying predecessor is not in final state...
    for this you need to check the parent message in the queue which is causing this. this can be done using messaging system url
    http://host:port/MessagingSystem/
    go here and check the tab EOIO message ..... and there check the messages which are blocked and check the queue names if need to find the paticular queue..and reprocess if the error occured can be rectified...
    HTH
    Rajesh

  • Cannot resend messages in adapter engine

    Hi all,
    I encountered thousand messages in adapter engine yesterday with error category: XI_J2EE_ADAPTER_ENGINE, error code: JMS_TRANSMISSION_ERROR.
    First I checked the affected communication channel, and there was an error in MQ side. Also, our database crashed. But these issues were resolved already. Then I tried to resend the messages, but still it ended up in system error. As I looked in the log,
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Connector for ConnectionProfile of channel: JMS_--_Receiveron node: -having object id: - encountered error: MQJMS2007: failed to send message to MQ queue in sending to destination queue:///?targetClient=1, the message message: JMS Message class: jms_text  JMSType:         null  JMSDeliveryMode: 2  JMSExpiration:   0  JMSPriority:     4  JMSMessageID:    null  JMSTimestamp:    1193614619284  JMSCorrelationID:--
    Exception caught by adapter framework: Connector for ConnectionProfile of channel: JMS_----
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Pending message discovered: -
    .The channel is configured throw an recoverable, temporary error for this warning (default). Decide whether you want to bypass this message. If so, set the Pending Handling  channel parameter to 'Bypass' and restart the message afterwards.
    Exception caught by adapter framework: Pending message discovered: -
    .The channel is configured throw an recoverable, temporary error for this warning (default). Decide whether you want to bypass this message. If so, set the Pending Handling  channel parameter to 'Bypass' and restart the message afterwards.
    Every time I tried to resend the message, it ended up in error stated above. But there are successful messages today which means that the communication channel is working fine.
    How can I resend the messages stucked in the adapter engine? Hope someone can help me.
    Thanks a lot in advance.

    May be when u tried to send the message some of the message got stuck in AE due to some Error.
    As I no the message can stuck in AE when....Target Systems is down, Test data is not valid for receiver..then few of the messages goes in System Error and later message come in waiting/Holding/To be Delieverd state...
    Check all the messages that has in System Error status...
    Thanks
    Farooq.

  • CPALookupException while sending a Test message to Adapter engine

    Hello Experts,
    I am getting following exception while sending a test message to Adapter engine through Runtime Workbench.
    Error while sending message: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=<Configured Party>;TP=;FS=<Configured Communication component>;TS=;AN=<Configured Outbound Interface>;ANS=<Configured Namespace>
    This scenario works fine when I submits the message through Integration engine. So ID configuration is perfect. Also cache contents are upto date.
    Thanks in advance.
    Regards
    Rajeev

    Error is clearly saying that it is unable to find receiver agreement for that particular interface.
    Please check your receiver agreement for the interface.
    If your receiver agreement is fine then do CPA cache refresh using following URL:-
    http://<host>:<port>/CPACache/refresh?mode=full

  • PI 7.1 - Message Monitoring - Adapter Engine (Database Overview)

    Hi Friends,
    In Message Monitoring --> Adapter Engine --> Database (Overview) is not working. It throws the following error message.
    no_connection Exception Message: RemoteException in Method: CentralViewManager: getIProfiles( IApplication, boolean ). Communication-related failure. Message: java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientProtocolException: An error occured while reading data from the destination sap.com/com.sap.aii.af.service.profile.proxy/com.sap.aii.af.service.statistic.proxy.ProfileProcessor/basicPort_Document. The error was: com.sap.security.core.server.destinations.api.DestinationException An error occurred while reading the destination sap.com/com.sap.aii.af.service.profile.proxy/com.sap.aii.af.service.statistic.proxy.ProfileProcessor/basicPort_Document, type WebService. The error was Internal error during the decryption process...
    But, Adapter Engine --> Database option is working. What could be the problem ?
    Kindly clarify, friends.
    Kind regards,
    Jegathees P.

    Hello friend,
    May be it is related with connection problem check with your basis people .
    Regards,
    Ravi.

  • Message in adapter engine

    Hi all,
    We monitor messages in adapter engine through RWB.
    Can anyone tell me where these messages are stored?

    hi,
    it has the misconception that RWB uses the same data base as of sxmb_moni.
    but this is not true. actually RWB has a java componenet and IE is  a abap componenet.
    RWB getting tha data from SXMB_MONI  db(abap table) through the jrfc call and storing it into the XI_AF_MSG table. this can be verified because, when u try to fatch payload for the sych message in RWB ,it is showing payload is deleted to save memory . but the same message with the payload can be displayed at SXMB_MONI .but  for this u need to set the retention period at sxmb_adm---intigration engine configuration.by default value for this is 0 days.please have a look of below link.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/xi%252btables
    the XI_AF_MSG_AUDIT  table stored the detail of all the audit log.thats why the no of entrieds in this table is more than XI_AF_MSG table.
    now Q is how to access these DB.
    these DB can be access through the DB tool say SQLplus.
    to get the total no of entries byststus u can use the fllowing query.
    select status, count(1) as
    current_number from sap[sid]db.xi_af_msg
    group by status;
    regards,
    navneet

  • Archiving message in Adapter Engine in XI 3.0

    Dear all,
    Could you please explain the procedure of Archiving Messages in Adapter Engine in XI 3.0.
    I have read many blogs regarding deleting messages in Adapter Engine, but nowhere i can see about Archiving.
    I have been told that activating and scheduling "Default Version Archive Job" in RWB->Components->Adapter Engine->Background Processing would solve the purpose.
    But while activating, i am unale to set rules, as it gives error " Rules are not allowed for jobs with set 'archive edited messages only' flag."
    Thanks and regards

    Hi,
    Please check the [link|http://www.****************/Tutorials/XI/Archiving/Index.htm]
    Also check this
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890
    Regards,
    Naveen.

  • SOAP messages not visible in RWB - Message Monitoring - Adapter Engine

    Hi,
    following scenario:
    ERP is sending IDocs to PI.
    Within PI an integration process sends the IDoc data through a SOAP (WS) receiver channel to a system far far away.
    In RWB -> Communication Channel Monitoring I can see all delivered messages selecting my SOAP channel.
    But:
    I can´t see the SOAP messages in RWB -> Message Monitoring -> Messages of Adapter Engine.
    In RWB -> Message Monitoring -> Messages of Integration Engine I only see SOAP messages with status "Error".
    Successful column is empty.
    Do I have to adjust some system / monitoring parameters also seeing SOAP messages in RWB->Message Monitoring?
    Thanks in advance,
    André

    Hi Ravi,
    thanks.
    But there are thousands of successful messages delivered to the receiver.
    These successful messages can only be seen in the Channel Monitoring.
    I can´t find these successful messages in Message Monitoring.
    Only some with status "Error" are displayed.
    Strange...
    Cheers,
    André

  • How to see old successfully delivered messages in Adapter Engine

    We are unable to see the messages that were successfully delivered  by Adapter Engine more than a day.Ho do we see old successfully delivered messages by Adapter Engine.We are only able to see the messages that were 1 day old.We are using PI 7.1.
    We are able to see the older messages in Integration Engine as per the config  in sxmb_adm.
    Any Help greatly appreciated.
    Thanks,
    Aravind

    Only message that contain error,holding,not delivered are getting persisted not the sucessfully delivered ones.
    Is there any Archiving scheduled for your Adapter Engine?
    I want to see the old messages that were delivered sucessfully
    In Message Monitoring Itself select Archive (instaed of Database) and make a search.....if archiving is scheduled then you should be able to see the messages by this option.
    Regards,
    Abhishek.

  • Monitor message in adapter engine through java code

    Hi all,
    I need to write a java code to monitor message using message ID in adapter engine.
    Is it possible to write such a code?
    If yes, then please provide information regarding to that.

    Hi,
    Check these threads
    Retrieving a message id
    Re: How to extract XI-header fields from XI-message in JAVA?
    Thanks!

  • Problem With Seeing Message in Adapter Engine

    Hello Everyone,
    We are facing a strange problem while running an <b>Integration Process</b>, <b>BPM</b> in PI. In the process, we are trying to read a .CSV File and convert it into a .XML File via FCC. The .CSV file is placed in the XI box itself, under a certain directory. We have configured the process such that whenever the .CSV file is read, its attributes are set to <b>'read only'</b>. After configuring the process, the required XML file did not show up. So we checked that whether the .CSV file was read and it showed up attributes of 'read only'.We cross checked
        -First by going to <b>SXMB_MONI</b>; here it said 'No messages available for selection'
        -Then by examining the 'channel monitoring' in AE; where we found both the sender and receiver channel are showing green. The sender channel first shows up that <b>'Processing started'</b> and then <b>'Processing Completed Successfully'.</b> The receiver channel does not show up any messages.
        -we checked for the XML messages that are in the Adapter in <b>IDX5</b>; it shows <b>'no messages selected'</b>.
        -We anticipated that it may be a cache problem and cleared all the caches; but when we tried to clear the Adapter Framework Cache, it popped up an authorization error and the problem persisted.
    We are using NW2004s with SP6 at the ABAP and BASIS stack and SP 9 at the Java Stack. Also, all the required connections made in SM59 are in order.
    Now, <b>What can be the problem? Is it the difference in SP level that is causing the problem? Or is it something else? What have we missed?</b> Guys, please help us solve this problem.
    Need Help. Pleae Reply. Points will be awarded.
    Thanking in anticipation.
    Amitabha

    Hi Shabarish,
    1.Document name <b>is indeed</b> the name of message type in our case.
    2. We did not use delete mode; but once the file was read- we manually changed its attributes from 'RA' to 'A'..and it became 'RA' again after 2 seconds; which is our polling interval.
    3. And we have discovered that the file is being read properly..because we can see the XML payload of it and it contains the correct data.But still it does neither show up in SXMB_MONI..nor in IDX5.
    <b>Can you please tell us what are the necessary roles for the User PIAFUSER?</b> We suspect that somewhere's an authorization error we are getting; because the AF cache refresh attempt shows "Forbidden" and we are getting an error in Tcode SXI_SHOW_MESSAGE as:
    <b>AE_DETAILS_GET_ERROR: no_adapter_engine_found: Unable to find Adapter Engine:</b>; Stack trace shows:<b>Error while reading access data (URL, user, password) for the Adapter Engine</b>

  • Looping message in Adapter Engine

    Hello!
    We had a message  which went fine in mapping (IDOC -> proxy) / integration engine (check flags in sxi_monitor) but stopped in Adapter Engine with status "To be delivered". No jammed queues or anything. It didnt help to restart the message, it was just looping. We had to restart one of the PXI-servers and after that it worked succesfully.
    Any ideas what could have caused this or how I can fault-trace / debug this?!

    Hi Stefan,
    To be Delivered can happen because of two reasons:
    1. PI Performance due to sudden heavy loads OR
    2. in this case Receiver system Perfomance may be the case ..
    pls check once with the receiver system performance .. and also the note suggested above(1623356) which mentions thread increase for that particular adapter type.
    I hope this will help..
    Thanks,
    Praveen

  • Strang problem when searching error message in Adapter Engine

    Hi all,
    In RWB message monitoring, I tried to search all the error messages for yesterday and got no results. But I know there were actually several error messages for yesterday because I got several alert mails.
    Then I went to my mail box and copy the message id and used it to search again. Then I found this message was exactlly in "System Error". But if I search all the error messages for yesterday, I get no results.
    Anyone knows the problem?
    Regards,
    Hui

    Hello  Hui Wang,
    <b>Adapter engine resides on Java stack and u view sxmb_moni on the ABAP stack which displays only Integration Server related errors.</b>
    Message that passes the Integration pipeline are visible in sxmb_moni. Errors related to CC can be traced in CC monitoring or adapter monitoring in RWB.
    With Regards,
    Vidya
    **************PLEASE REWARD POINTS IF FOUND USEFUL

Maybe you are looking for