Resent successful message failed at JDBC adapter
Hello,
I have successfully configured scenario IDOC to JDBC.
Now I have one issue that if my message passes successfully from SAP XI and get stuck at JDBC adapter (not reached to database bcoz of any reason like server is shutdown, etc).
I need to resent this message when oracle server problem is solved.
Can I resent the message which is passed successfully thru XI and stucked at Adpater side?
Hi,
If the channel is inactive , it will error out in Integration Engine itself, so u can restart those messages manually.
Also, lets say the receiver system is not reachable(example JDBC), then what happens? You can find those messages in
http://host:port/MessagingSystem/monitor/monitor.jsp . In the window left frame choose Received Messages , in the right frame choose Status Not Delivered. Change the time frame and click tab(there is no enter) , u can find list of messages. Now for each message u can find two options Delete, Re-Deliver ,click on Re-Deliver the message, it will go thru.
Regards
Seshagiri
Similar Messages
-
Need to throw an alert or send an email if a message fails in the adapter e
Hello Guys,
We have 2 different types of scenarios Idoc to file and File to Idoc.
1) Idoc to File:
We need to send an email if the idoc message fails in the Adapter engine ( system error in the adapter engine)
2) File to Idoc:
We need to send an email if the incoming file fails in the Adapter engine ( system error in the adapter engine) or fails in the communication channel.
How can this be acheived ?Hi,
U can send mails if either sender or receiver side message fails and any error in intergration engine or adapter engine using Alert management.
Alerting is an function of Runtime Workbench along with Message archiving,End-to-end monitoring, Performance Monitoring,Cache monitoring.
Alerting is no longer dependent on the configuration and activation of end-to-end
monitoring. Consequently, the delay between when an error occurs in message
processing and the creation of an alert is significantly reduced. Furthermore, you no
longer need to schedule the report SXMSALERT_PROCESS_DATA_GET as a
background job.The Runtime Workbench has CCMS Alert Monitor thru which
You can now configure one new CCMS Alert Monitor per Adapter Engine for
adapter-specific processing errors.Alerts triggered by the Runtime Workbench can now be forwarded to the CCMS Alert
Monitor and displayed there.
See also SAP Note 824039.
Thru Runtime Workbench we can access alert inbox, alert configuration
In process Integration with Central SAP Monitoring Infrastructure we Drill down to individual process steps and Use SAP Web AS Alert Framework.
In SAP Web AS Alert Framework, we Classify errors and Alert channels (such as e-mail) available.
Alert-Configuration
Objective: Active Monitoring
CCMS Alerts + message-oriented alerts
Based on SAP's Basis Alert Framework
Alerts propagated through E-Mail, SMS,
In Monitoring the SAP Exchange Infrastructure, Message Alerting is part of Runtime Workbench.
Alerting Framework
?? Configuration of alerts to reflect the needs of specific processes
?? Part of SAP Web AS
Alert Configuration
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
Alert Inbox
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
Alert Notification Step-by-Step
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Defining Alert Classifications
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Triggering Alerts
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Setting up alerts
Setting up alerts in RZ20
Alert Management
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062c2df
Alert Notification
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90f449a8-a6db-2910-a386-d2b5999f5751
Custom Alerts in CIC Win Client for CRM 5.0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601db2b2-2839-2a10-0381-8807979f6ff8
Understanding u'r SAP EarlyWatch Alert Report
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4b88cb90-0201-0010-5bb1-a65272a329bf
For raising an alert you need to first configure the alert please follow the below weblog written by Michal Krawczyk
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
Regards,
Phani
Reward points if Helpful -
Response message timed out - JDBC adapter - PI 7.1
Hi All,
I have a synchronous Proxy <-> XI <-> JDBC scenario. The interface works fine in most of the cases, but when my proxy sends data to UPDATE the receiver SQL server 2000 with more than 1000 records, I do not find the response message in SXMB_MONI. But all the records have been successfully updated in SQL database. The response message in my case is the number of records that have been updated.
Initially I got the message "Synchronous response expired" in RWB, and based on SAP note 791379 and 1078420 , I changed the xiadapter.inbound.timeout.default parameter from 180000 to 600000 and added the parameter 'sqlquerytimeout' in my receiver JDBC adapter configuration with value as 600 seconds.
I have also enabled batch mode in my receiver adapter.
Now my problem is I don't see any error message in RWB , but still in SXMB_MONI I am not able the response message, but can see only the log version of my request message.
Any idea on what needs to be done in this case ? Any help will be greatly appreciated.
Regards,
SandeepHello,
Could you pease let us know how thiswas solved ?
Same problem i am having.
Thanks in advance -
Messages are in hold state due to one message at receiver JDBC adapter
Hello,
I am using a receiver JDBC adapter and trying to send an XML file which has an insert query to insert some data into the database i.e., Oracle 9i.
Here at the receiver side due to one message ( which is in to be delivered state) all other messages are got hold and waiting for long time.
I am getting the exceptions as this,
JDBC Adapter processing failed with Error processing request in sax parser: Error when executing statement for table/stored proc. 'FSASMGR.XTBL_KL06_IINQUIRY' (structure 'REC01'): java.sql.SQLException: ORA-12899: value too large for column "FSASMGR"."XTBL_KL06_IINQUIRY"."CASE_TITLE" (actual: 81, maximum: 80)
Exception caught when executing statement for table/stored proc. 'FSASMGR.XTBL_KL01_ISTAFF_MST' (structure 'REC1'):
java.sql.SQLException: ORA-00001: unique constraint (FSASMGR.XTBL_KL01_ISTAFF_MST) violated
Can anyone help me out in solving this issue.
THanks,
Sooryahi surya,
jdbc channel tries a request for n number of times(no of rettries),if that request fails it will take up the following requests,its not like it will process a request forever.
to be delivered will be resulting if reciever is down or network between XI and database server is bad.
try to ping databse server from XI host system.
if everything is fine then look at the channel configuration->advanced->no of retries of database transaction on sql server.
just redue the count to 1 and recheck.
Regards,
rama Krishna -
DB Insert failed through JDBC Adapter
Hi all,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter. The XML arriving at JDBC adapter is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns:MaterialDataUpdate_Msg xmlns:ns="http://acsis.com/ManufacturingManagement">
<MaterialData>
<TMP_MAT_SERIAL action="INSERT">
<table>TMP_MAT_SERIAL</table>
<access>
<MATNO>0000000012</MATNO>
<BATCH>32151</BATCH>
<ITM_SERIAL>453176587769</ITM_SERIAL>
<WEIGHT>12.34</WEIGHT>
<T_TIME>2005-01-21 13:21:34.432</T_TIME>
</access>
</TMP_MAT_SERIAL>
</MaterialData>
</ns:MaterialDataUpdate_Msg>
The connection to the database looks ok. My JDBC adapter config is pointing to "jdbc:microsoft:sqlserver://sapsrv03:1433;databaseName=JDE".
In rwb, I got the following error:
Unable to execute statement for table or stored procedure. "TMP_MAT_SERIAL" due to java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'TMP_MAT_SERIAL'.
I have checked the database "JDE", and the table 'TMP_MAT_SERIAL' does exist.
Does anyone have any idea about this error?
Thanks a lot for helping!
HartHi Hart Liu,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter.
We have been facing with problem XSD structure in the jdbc side. We r manually created XSD structure. In the adapter engine we dont have any action item. In u r mail
U r structure contains action attribute.
Can u plz help me out to generate the right XSD structure?
We have one more doubt, is there any automatically structure-generated option? plz let us know.......
We r waiting for u r reply....
Plz help me!!!!!!!!
Regards,
Anil -
NCHAR issue with oracle database using JDBC adapter
Hi,
We have a requirement to develop an XI interface from FTP server(File adapter) to oracle database using JDBC adapter. In the oracle database table few fields are of type NCHAR/NVARCHAR. when we try to insert the character(A,B,c..) values into oracle table fields of type NCHAR/NVARCHAR, we are getting the following error message in the JDBC adapter audit log. IF we pass the numeric value to the same field, then we are able to insert the records successfully.
Unable to execute statement for table or stored procedure. 'IPCSDD_DOWNLOAD_PROCESS' (Structure 'StatementName1') due to java.sql.SQLException: ORA-00904: "P": invalid identifier
2010-10-19 22:29:59 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
2010-10-19 22:29:59 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
Please find the system information below.
Oracle version- 10.2.4
XI version - 3.0/ service pack 19
JDBC driver- oracle.jdbc.driver.OracleDriver
Please suggest.
Thanks,
Venkata
Edited by: Venkata Narayana Eepuri on Oct 21, 2010 12:10 AMDear Venkata Narayana,
Concerning the error, kindly go through the following note :
731 - Collective note: ORA-00904
follow the recommendations mentioned in that and please check if that helps.
Best Regards
Nishwanth -
JDBC Adapter-XML Document Name
I am working on XI 2.0 and need to change the XML document name I am receiving from an inbound JDBC adapter. The document I am receiving is:
<resultset>
<row>
<col1>ABC</col1>
<col2>123</col2>
</row>
</resultset>
I want to receive:
<MyDocumentName>
<row>
<col1>ABC</col1>
<col2>123</col2>
</row>
</MyDocumentName>
Does anyone know how to override the default "resultset" name from the JDBC adapter??? The reason I need to do this is because my message mapping does not work properly unless I have the Message type of the message from my JDBC adapter as "resultset".
Thanks for your help!
Dan Pettingill(Note: I work with Dan Pettingill, the starter of this thread)
I decompiled the class Renato suggested, but I don't
think that's going to be the solution. The DB2XMBProcesser is dependent on XI properly setting the properties values for the jdbc adapter. DB2XMBProcesser will use a property named "db.documentname" to set the name of the root node of the DB2 results. If no such property is defined, the default value of resultSet is used.
[documentName = getParaWithDefault("db.documentName", "resultset");]
Our problem seems to be that XI is not passing along the parameters we define in the adapter configuration. We've tried numerous combinations and names, but they never take.
The only way we can get XI to recognize that we are sending in a documentName parm is to call it "docName". Any other name is essentially ignored (including db.documentname, documentname, XMB.docName, and a lot of other permutations as well).
But here is the log from that adapter when we do so. Not that it sees the value we're setting, but it won't set the documentname parm going to the jdbc.
2004-08-31 17:33:45 : jdbcListener
Raw configuration data ***
Transport protocol: JDBC, version
Message protocol: JDBC, version
pollInterval|301
additionalParameters|true
jdbcDriver|com.ibm.db2.jcc.DB2Driver
retryInterval|null
dbpassword|***
queryStatement|SELECT * FROM RBPRDB.T1256;
queueName|null
autoCommit|false
updateStatement|Delete from RBPRDB.T1256 Where GUID Is Not Null;
dbdisconnect|false
dbuser|r50445
adapterStatus|active
isolationLevel|2
addParameterParams|*** TABLE , 2 ROWS DEFINED ***
addParameterParams|addParameterParams$0$addParameterParamName$docNamespace
addParameterParams|addParameterParams$0$addParameterParamValue$urn:freescale.com
/xi/db2-ims/wms
addParameterParams|addParameterParams$1$addParameterParamName$docName
addParameterParams|addParameterParams$1$addParameterParamValue$SelectAckQueue
pollIntervalMsecs|null
execute|null
connectionURL|jdbc:db2://WACCTSO.sps.mot.com:9003/WACCDB2T
qualityOfService|EO
Used configuration data ***
'MessageProtocol': 'JDBC'
'adapterStatus': 'active'
'addParameterParams.dbEncoding': ''
'addParameterParams.docName': 'SelectAckQueue'
'addParameterParams.docNamespace': 'urn:freescale.com/xi/db2-ims/wms'
'addParameterParams.docNamespaceScope': 'root'
'additionalParameters': 'true'
'autoCommit': 'false'
'connectionURL': 'jdbc:db2://WACCTSO.sps.mot.com:9003/WACCDB2T'
'dbdisconnect': 'false'
'dbencoding': ''
'dbpassword': '***'
'dbuser': 'r50445'
'documentname': 'resultset'
'documentnamespace': ''
'execute': ''
'isolationLevel': '2'
'jdbcDriver': 'com.ibm.db2.jcc.DB2Driver'
'pollInterval': '301'
'pollIntervalMsecs': '0'
'qualityOfService': 'EO'
'queryStatement': 'SELECT * FROM RBPRDB.T1256;'
'retryInterval': '301'
'updateStatement': 'Delete from RBPRDB.T1256 Where GUID Is Not Null;'
OK - initialized -
JDBC Adapter - Established database connection failed
Hi Guys,
we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
So in my point of view we have done everything right during the installation.
Now the developer tested theJDBC Adapter and he comes back with following Error:
Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
Do you have any ideas?
Regards
MarkusHello Markus,
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I - R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Thanks,
Satya Kumar
Reward Points If it is Useful.. -
Jdbc adapter error on confirmation message in message monitor (rwb)
I have the scenario iDoc -> PI 7 - > jdbc (AS400 odbc driver).
When I do INSERT statements, the data is stored in the Database and the RWB message monitoring shows status Successfull.
However, for every insert, an other message shows up in the message monitoring with reversed Sender and Receiver (so it looks like a confirmation message is trying to find its way back to XI). This message first is is Status "Waiting", and after some time gets in Status "System Error".
As I am not expecting any responses in my XI configuration (as I have no place to send them to), I want to stop these messages showing up in the Adapter Engine (as there will be many Error Status messages that are of no interest to me).
How can I stop these messages, or what should I do in XI to process them (and dump them in my receiver determination). I have NO BPM involved .Hi,
For each open connection a entry is made j2ee stack.So when the it reaches to max and execption is thrown.
In Jdbc adapter configuration -> advance mode -> Set -> Disconnect from the database after processing each message.
Should solve the prob
<b>Cheers,
*RAJ*
*REWARD POINTS IF FOUND USEFULL*</b> -
JDBC adapter and message split
Hello, does anybody know how I can make a split of a document created by the JDBC adapter and that should look like
<resultset>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
</resultset>
into several's independent documents of type:
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
May I create the messages in the dispatcher?
Thank you
Ernesto DuranHello, isn't it possible to create an inbound abap Proxy in XI that wait for the message then this inbound proxy loops into the message and call and outbound proxy for each entry(row).
The outbound proxy is working well for me but I'm having problems routing the message back to XI... I get the problem "SAP:Code p1="No inbound interface found for sender" But when I route the message to a business systems everything is ok.????
Anyway what I want to do is:
jdbc adapter --> XI --> inbound proxy --> XI --> outbound proxy --> XI --> Idoc adapter --> R3
And the steps inbound proxy --> XI --> outbound proxy --> XI are used only to split the message.
The reason why I try to use this approach is that I don't understand how I can split a message in java or XSLT maybe someone know???
Thank you
Ernesto Duran -
Auto restart of messages failed in Adapter Engine PI 7.0 and 7.1
Hi,
I am trying to figure out a way to automatically restart the messages failed with in the adapter engine (because of the target system not available etc.). These messages are in System Error status and I can restart them from RWB. But I am looking for any report or something available either on Java or ABAP engines so that I can automate the process.
Thanks for the help.
VJI have come across the web service AdapterMessageMonitoring in PI 7.0 (Found it in Web service navigator) with possibly useful methods. But I could not find the same service on PI 7.1. Any clue on this?
Also, the getMessageList methods works perfectly as expected but the resendMessages mehtod fails with the exception -
com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Exception in method resendMessages.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException>
Will post more if move forward.
VJ -
Passing JDBC adapter error message back to SOAP fault message
I have a JDBC adapter that is returning an error in the response message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAPINS' (structure 'StatementName1'): java.sql.SQLException: ORA-01843: not a valid month ORA-06512: at "SAP.SAPINS", line 129 ORA-06512: at line 1</SAP:AdditionalText>
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I would like to pass the error message back to the fault section of a SOAP adapter.
Is there an easy way to do this using fault messages, or is there some other way to do this?
BR,
Tony.HI,
DId you install JDBC driver ?
If not check this guide-https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
Thread-
Legacy_XI_MySQL
Regards,
Moorthy -
"Recordsets per Message" for jdbc adapter
Hi all,
is "Recordsets per Message" kind of option is available for JDBC adapter.
Any help will be appriciated
Thanks
-KulwantHi Kulwant,
its not available.
You can a stored procedure whick picks only certain number of records per each call.
Regards
Inder -
Only 5 messages at a time being delivered thru JDBC adapter
We have an XI interface that is delivering updates to a SQL Server database through the JDBC adapter. Our problem is only 5 will deliver at a time, and we have thousands to deliver so it takes forever. The messages queue up in 'To Be Delivered' status and eventually get through. Is there a parameter to set which controls how many messages can be delivered through a JDBC adapter at one time ?
Thanks in advance.How do you deliver these updates? I mean, with a single message or one update per message?
I think that you should try to put all the update in a single JDBC message in order to have them delivered at the same time.
HTH
Alessandro -
Message error ORA-00936 when using JDBC adapter
Hi all,
I'm using the folow scenario:
RFC --> XI --> JDBC
RFC <-- XI <-- JDBC (response)
It's a SYNCHRONOUS interface.
RFC call without COMMIT WORK:
CALL FUNCTION 'Y_TESTE_NEI'
DESTINATION 'RFC_XI'
EXPORTING
DATE_FROM = v_data_from
DATE_TO = v_data_to
TABLES
t_return = t_dados.
I'm not using KEY in JDBC message, because for test I want to get entiry table, and I set the communication channel JDBC to KEY not mandatory.
I'm not having mapping error, in SXMB_MONI I can see the two messages of interface, but both with SYSTEM ERROR.
In JDBC adapter in Runtime Workbench apears the follow message error:
com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 't7_productionorder' (structure 't7_productionorder'): java.sql.SQLException: ORA-00936: missing expression
And DUMP in function call in R/3: CALL_FUNCTION_REMOTE_ERROR
Could anyone help me about this problem ?
Thanks in advance.
Regis FerratoHi Regis,
I did the same scenario just now. The error you get is, you need to check whether the fields you are entering into the database have correct datatypes.
Check out your database structure with your structure in XI, and also test in Message Mapping, to make sure you are sending correct values.
In my case I was sending date like this '10-12-06', but my DB accepts only '101206'. So I removed the '-'. It was fine .
The Dumping error is not due to your ABAP, due to the DB operation.
Let me know Whether I am correct.
Raj.
Maybe you are looking for
-
My built in webcam will not connect when i want to use it.
Whenever I try to use my built in webcam, on facebook, photobooth, or skype it says that there is no connected camera. It just randomly started doing this. Any way to fix this problem? Thanks!
-
Selecting sequence of operations
Imagine that you have 5 independent measurements using 3 instruments. I have them defined in separate flat sequence structures. Depending on front panel input, I want the ability to run these measurements in a user-defined sequence - say 1,2,3,4,5 or
-
How to write python code in Data Services ?
I read that you can use python programming to do tasks that custom SAP Data Services Designer components cannot do. Here is the link for that - SAP Data Services/BODS equivalent of Microsoft SSIS Script Task I don't know where I can type my code in D
-
i cant upload some photo albums onto my adobe revel account. I have a subscription. I might have accidently uploaded them previously, but I deleted them. Now when i try to upload them again, nothing happens. The bar shows its uploading photos, but ac
-
I'm currently on the 12.043 firmware, and I'm trying to update to the 20.050 firmware. The upgrade starts, but it seems to hang at 14 minutes, then it says that the phone disconnected and it can no longer continue the upgrade. It tells me to unplug