on 07-07-2008 12:35 PM
Hi friends,
When we do Web Service to JDBC scenarios, if we try to insert the duplicated records, XI throws the following error.
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Call Adapter --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code area="MESSAGE">GENERAL</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'EMPL' (structure 'STATEMENT'): java.sql.SQLException: ORA-00001: unique constraint (JDBCPOC.SYS_C00139857) violated
</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack/><SAP:Retry>M</SAP:Retry></SAP:Error>
-
I want to map from the error message <SAP:AdditionalText> to our source structure field 'AdditionalText'.
Is it possible ?. (Because, Error message is in different namespace)
Kindly reply, friends.
Kind Regards,
Jeg P.
HI,
You can raise the Alert Notifications to map the JDBC erros stating the relevant information.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your immediate reply. In our case , we have 3 WSDLs they are for : insert, update, select. So, before insert and do the select is double process work. Moroever, we want not only duplicate records insertion problem and also whatever the problems while inserting the records in table. We will try your 2nd solution and let you know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
being inside a BPM you have a great advantage: you can do whatever you want, basically!
So, in my opinion the best way to get what you want is to
1) either prevent the error, by doing a SELECT before the INSERT with that primary key and check whether you get a result
2) or use an exception handling branch , which would handle all possible errors, not only duplicate key (but in this case I don't know now how much control you get over the error message)
In both cases, you can then raise an alert directly from the BPM, and that's it!
Let me know if ti suits.
Cheers,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
This links might help you
Alerts with variables from the messages payload (XI) - UPDATED -
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
From HelpFile
regards,
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swarup,
Could you kindly elaborate how do we map JDBC error thru Alert Notifciation ? Please ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.