Error in the Receiver JDBC Adapter
Hi Guys,
Iam getting the below given error when trying to insert the data into the Legacy DB...
2006-06-20 01:16:25 Error Unable to execute statement for table or stored procedure. 'Table_Name' (Structure 'STATEMENT') due to java.sql.SQLException: ORA-01861: literal does not match format string
2006-06-20 01:16:25 Error Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table_Name' (structure 'STATEMENT'): java.sql.SQLException: ORA-01861: literal does not match format string
Can anybody tell me what the error is ?
Regards,
Kittu.
Kittu,
this is how your Target Datatype should be,
<nr1:MT_tablename xmlns:nr1="urn:XXXXXX.XX.yyyyy">
<StatementName>
<dbTableName action=INSERT>
<table>TABLENAMETO WHICH INASERTING DATA</table>
<access>
<ts_matl>2006-06-14</ts_matl>
<no_matl>M181127</no_matl>
<qt_do>1</qt_do>
</access>
</dbTableName>
</StatementName>
</nr1:MT_tablename >
Regards,
Bhavesh
Message was edited by: Bhavesh Kantilal
Similar Messages
-
Error with the Receiver JMS Adapter (Connection On-Demand feature)
Hi,
In high volume we are experiencing errors with the Receiver JMS Adapter and the connection On-demand feature:
Adapter Framework caught exception: while trying to invoke the method com.sap.aii.adapter.jms.api.connector.DisconnectorListener.notifyEvent(java.lang.String) of an object loaded from local variable 'listener'
Delivering the message to the application using connection JMS_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: while trying to invoke the method com.sap.aii.adapter.jms.api.connector.DisconnectorListener.notifyEvent(java.lang.String) of an object loaded from local variable 'listener'.
The message status was set to WAIT.
Looks like the message is successfuly reprocess after the wait period but the ALEAUD/Akcnowledgment are not successful in the sender ECC system. (SAP -> PI - > JMS)
Any idea?
PI 7.1 EHP1
Thanks,
Martin
/people/sunil.ojha5/blog/2010/08/31/review-of-sap-pi-jms-adapter-on-demand-connection-feature
Edited by: Martin Lavoie Rousseau on Jun 3, 2011 3:21 PMPlease ensure to have specified an User and password to connect to JMS server (don't leave the fields empty).
-
QUESTION abt "SQL_DML" of the Receiver JDBC Adapter
HI ALL,
i hav a doubt abt "SQL_DML" of the Receiver JDBC Adapter.
i wanna use two SQL Statements in the "SQL_DML" structure to manipulate two tables.
i.e.
<root>
<stmt>
<Customers action="SQL_DML">
<access>
INSERT INTO Customers VALUES (u2019$NAME$u2019, u2019$ADDRESS$', '$KEYFIELD$u2019);
INSERT INTO Companys VALUES('$NAME$')
</access>
<key>
<NAME>Company</NAME>
<ADDRESS>Street 3 </ADDRESS>
<KEYFIELD>CO</KEYFIELD>
</key>
</Customers>
</stmt>
</root>
BUT i cant ascertain if it permit like this writting above ??
Requset help in this regards.
Thx in advance.
brianHi,
You need to have two different statements. Each for one insert query. Your query will come under access tag and palceholders under kay tag. Action will remain same as you have given, but under both statements.
Ex:
<root>
<stmt1>
<Customers action="SQL_DML">
<access>
INSERT INTO Customers VALUES (u2019$NAME$u2019, u2019$ADDRESS$', '$KEYFIELD$u2019);
</access>
<key>
<NAME>Company</NAME>
<ADDRESS>Street 3 </ADDRESS>
<KEYFIELD>CO</KEYFIELD>
</key>
</Customers>
</stmt1>
<stmt2>
<Customers action="SQL_DML">
<access>
INSERT INTO Companys VALUES('$NAME$')
</access>
<key>
<NAME>Company</NAME>
</key>
</Customers>
</stmt2>
</root>
Hope this helps.
Regards,
Siddhesh S.Tawate
Edited by: siddhesh tawate on Apr 24, 2009 8:10 AM -
Error when using receiver JDBC adapter
i am using JDBC adapter as receiver(for oracle 10g) now, however i got ORA-00984 error. So i enable logSQLStatement.
then got the following SQL statement from communication channel monitoring:
INSERT INTO BASEINFO(APPNO, BUSSINAME, APPPERSON) VALUES (3, Steven, Lee)
I realize the statement is incorrect, which should be:
INSERT INTO BASEINFO(APPNO, BUSSINAME, APPPERSON) VALUES ('3', 'Steven', 'Lee')
So how can i correct the SQL statement? is there any setting i miss out in configuration?
ThanksYou may try this. For each field in datatype, add an attribute hasQuot. Map it to "no" in mapping. Then add single quotes to all the values by simply concatinating it on both sides of value.
Regards,
Prateek -
Error in the Receiver SOAP Adapter
Hello Experts,
I am sending an order number by running a report on the ECC 6.0 server to a web service for publishing the information on the web site. The receiver side is configured as Receiver SOAP Adapter . I am getting the following error in the SXMB_MONI Transaction.
com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Not enough message parts were received for the operation.
Kindly let me know to overcome this problem.
Thanks
Best Regards
S JoshiHi Ramesh,
The message Iam getting in MONI is as follows:
com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Not enough message parts were received for the operation.
This is the response for the request that i am sending for order creation. I did checked the fields also it is same and the values of the fields too. they all are correct. Over and above this it was working fine till last week , but suddendly this week I am getting this error.
Regards -
Error configuring the receiver http adapter.
Hi All,
I get the folllowing error in the ICM Monitor trace file after I configure teh HTTP Adpater.Please can anyone suggets what is this error message and how to fix it.
Thr 34] Thu Sep 3 07:59:18 2009
[Thr 34] *** ERROR => IcmConnRollInWP: AppServer context already released [icxxthr_mt.c 2388]
[Thr 12] *** ERROR => IcmPlAllocBuf: MpiGetOutbuf failed (rc = 14) [icxxplugin_m 1121]
Regards,
ShreshthaDo I have to set up certificates of that external server in my XI server.
Yes. You have to import certificates on abap stack using STRUST.
Second thing ,do I have to create an entry for https,port 443 in the parameter list of the ICM monitor.
Yes.
See this
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
Regards,
Prateek -
Error While Configuring Receiver JDBC ADAPTER
HI Experts,
while configuring the JDBC Receiver(Stored Procedure),I got the the follwing error's .PLease find the used data types and the exceptions (got) as follows.
1.Exception
<SAP:AdditionalText>
com.sap.aii.af.ra.ms.api.DeliveryException:
Error processing request in sax parser: Error when executing statement for table/stored proc.
'PRC_SET_MAIN' (structure 'InsertData'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'PRC_SET_MAIN' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored</SAP:AdditionalText>
1. Data Type eused.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Request_In xmlns:ns0="http://XXXXXXX">
- <InsertData>
- <PRC_MAIN action="EXECUTE">
<table>PRC_SET_MAIN</table>
<P_ID isInput="true" type="NUMERIC">245</P_ID>
<P_QID isInput="true" type="NUMERIC">245</P_QID>
</PRC_MAIN>
</InsertData>
</ns0:MT_Request_In>
2. Exception .
com.sap.aii.af.ra.ms.api.DeliveryException:
Error processing request in sax parser:
No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
</SAP:AdditionalText>
2. Datatype used .
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Request_In xmlns:ns0="http://XXXXXXX">
- <PRC_MAIN action="EXECUTE">
<table>PRC_SET_MAIN</table>
<P_ID isInput="true" type="NUMERIC">245</P_ID>
<P_QID isInput="true" type="NUMERIC">245</P_QID>
</PRC_MAIN>
</ns0:MT_Request_In>
PLease suggest meany ideas (which will be rewarded) to solve the problem.
Thanks and Regards,
Kiran.Hi,
I am using File to Jdbc (stored procedure) Scenario. Name of the Stored procedure is demoProcedure which inserts four fields (name,id,age,***) in a table.
Stored Procedure code as follows.
CREATE OR REPLACE PROCEDURE demoProcedure(
name VARCHAR,
id VARCHAR,
age INTEGER,
*** VARCHAR)
AS
BEGIN
INSERT INTO EMPLOYEE (NAME, ID, AGE,***)
VALUES (name, id, age, ***);
END demoProcedure;
Inbound (Generated XML file During Mapping Test):
<?xml version="1.0" encoding="UTF-8"?>
<ns3:MT_file2JavaProc_Sender xmlns:ns3="http://file2JavaProc">
<name>A</name>
<id>1</id>
<age>25</age>
<***>Male</***>
</ns3:MT_file2JavaProc_Sender>
Outbound (Generated XML file During Mapping Test):
<?xml version="1.0" encoding="UTF-8"?>
<ns2:MT_file2JavaProc_Receiver xmlns:ns2="http://file2JavaProc">
<Statement>
<demoProcedure action="EXECUTE">
<name type="VARCHAR">A</name>
<id type="VARCHAR">1</id>
<age type="INTEGER">25</age>
<*** type="VARCHAR">Male</***>
</demoProcedure>
</Statement>
</ns2:MT_file2JavaProc_Receiver>
I think this will solve your problem.
Thanks
Dipankar
Message was edited by:
Dipankar Sinha Sarkar -
Hi ,
Iam sending the message using the test message tab in the RWB.Iam getting the Error message which is given below :
2006-06-19 21:16:16 Success The message was successfully received by the messaging system. Profile: XI URL: http://XXXXXX/MessagingSystem/receive/AFW/XI
2006-06-19 21:16:16 Success Using connection AFW. Trying to put the message into the request queue.
2006-06-19 21:16:16 Success Message successfully put into the queue.
2006-06-19 21:16:16 Success The message was successfully retrieved from the request queue.
2006-06-19 21:16:16 Success The message status set to DLNG.
2006-06-19 21:16:16 Error Unable to find channel ID
2006-06-19 21:16:16 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: 5f5565f0-XXXXX. Setting message to status failed.
2006-06-19 21:16:16 Error The message status set to FAIL.
2006-06-19 21:16:16 Error Returning synchronous error message to calling application: Couldn't find delivery channel for message: 5f5565f0-fffaXXXXX.
Can any one throw some light on the above error.
It worked fine when we are triggering the message thru the normal SAP Proxy execution.
Regards,
Kittu.
Message was edited by: kittu chowdary
Message was edited by: kittu chowdaryHi Kittu,
First check your Pipeline URL in SLD.
Business System -><your Integration Server -> Pipe Line URL
It should be
http://Server:port/sap/xi/engine?type=entry
And here port should be http port(8xxx).
Is your scenario is Synchronous ?
Hope this helps,
Regards,
Moorthy -
Want Batch mode in the Receiver JDBC adapter
Hi,
My scenario is File to JDBC . from the source file I'm getting 20 records for file. after processing by XI while inserting the records into database level but due to some problem some records are not inserting.. suppose first 5 records got successfully inserted. but 6th record due to unique contarin problem that was failed. but due to this problem remaing records are also not inserting from the 6th record onwards it was not inserting any more records .
But i want to process all the Records or If any error is there in those records i want to fail all the records. I dont want any partial posting of the data.
Plesae suggest me some solution for this.
Regards
JainHi Joel,
Already i have selected that Batch Mode in Advanced tab. my transport protocol is JDBC 2.0 .
And my SQL query is only INSERT . in the mapping i have mapped action tag to INSERT Command for inserting the rows...
still my SQL query is inserting first 5 records only out of 20 records ... if the sixth record contain any problem the process has been terminating .
Please suggets me some solution for avoiding those problems. if any error is there then i want to fail teh complete message otherwise process all the records. I dont want any partial posting of the file.
Regards
Jain -
Table name in Receiver JDBC Adapter
Hi All,
I am using receiver JDBC adapter.
But table name consist of " like BPC."#II" .
After mapping table name becomes BPC."#II" .
I am getting error while pulling data from DB.
Is the table name creating a problem.
Please remedy of this if you have come across such scenario.
Regards
PiyushHi Piyush,
All that i could get from the SAP Help regarding JDBC Adapters are these links where i never found anything much regarding the table name.anyways just go through these links and see if you find anything useful.
http://help.sap.com/bp_bpmv130/Documentation/Planning/XIUnicodeGuide030411.pdf
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm">Configuring the Receiver JDBC Adapter</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm">Mapping Lookups</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/22/b4d13b633f7748b4d34f3191529946/content.htm">JDBC Adapter</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm">Configuring the Receiver JDBC Adapter - part 2</a>
This is all i got from the help files, anyways you can also go through those links and see if you find anything else useful.
- Escape Symbol for Apostrophe
The apostrophe character () is a reserved character in SQL syntax and is therefore replaced by an escape character if it occurs within value strings. This replacement character can be database-specific. Typical replacement characters are \ or (default value). If a character occurs that is invalid for the database being used, the adapter triggers an error message (an SQL exception) concerning the SQL syntax that is generated by the database.
- Column Name Delimiter
Depending on the database being used, column names can be enclosed by a special delimiter character, for example, if the names can contain special characters (such as ). This character can be specified at this point. The default setting is no delimiter character. If a character occurs that i
Also check if there are notes in the service market place related to the same.
Regards,
abhy
Message was edited by: Abhy Thomas -
RECEIVER JDBC ADAPTER----ROLLBACK IN XI
Hi Gurus,
I have a scenario with the receiver as JDBC adapter.If there is any error in updating to Database during the interface flow,how do Rollback occurs in XI???
Please help......
Regards,
SriparnaHi Sripam1,
select SQL statement 'batch mode' ,
i.e,
see
8. Defining Parameters in Advanced Mode
6. If you want to collect SQL statements in a batch, select Batch Mode.
of the SAP online help
[Configuring the Receiver JDBC Adapter|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/465581929734d9e10000000a42189d/content.htm]
Also ensure that 'Database Auto-Commit-Enabled (No Transaction Handling)' is not enabled.
Regards
Kenny -
How to handle BLOB field in receiver JDBC adapter into ABAP table
Dear Experts,
I am working in a synchronous scenario with Sender ABAP Proxy to Oracle Database as receiver via SAP PO 7.4.I will be calling a stored procedure view with fields ID, NAME,Age,*** and BLOB (Image binary).
1. The response from Oracle Database field BLOB is to be stored in ABAP table.Would I have to write any JAVA program to read the BLOB or the receiver JDBC adapter will handle it and store in a table by using ABAP proxy once it reaches ECC.
2. If yes, would the JAVA program have to deal with other 4 fields.
3. Can I use a UDF mapping to this BLOB field.
Regards
Rebecca...Dear Praveen,
Thanks for your response...
Please correct me if I am wrong.
1. For 1-1 response mapping for BLOB field, I will use just use the below UDF code.
public static byte[] hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
+ Character.digit(s.charAt(i+1), 16));
return data;
2. ===Using the byte data, create binary attachment in mapping for abap proxy response===
Could you please share how to create the binary attachment.. I am not clear
Regards... -
Specify Keys in Data Type for receiver JDBC adapter
Hi guys,
I have the following issue:
In a proxy to JDBC scenario, I want to specify somehow the key values for the SQL statement in the data type that I define for the receiver JDBC adapter. Thus, I am using the following structure in data type:
root
Statement
dbTable
action
table
access
CustomerID
Name
HouseNo
Key
CustomerID
But in the SQL statement that is produced (I can see that in RWB, CC Monitoring, Audit Log), the "Key" segment is translated into "OR". E.g. UPDATE_INSERT ("A100" "Evaggelos Gkatzios" "El Alamein 19") OR ("A100")
Do you have any ideas ?Hi,
Its clear from the statement in RWB (in CC monitoring's auditlog) you are using UPDATE_INSERT as the action.
Please correct me if this is OK. Now the interpretation of input xml file will be like this,
If the input XML is in the following format
<root>
<Statement>
<dbTable action=UPDATE_INSERT>
<table>EXAMPLE</table>
<access>
<CustomerID>ABC</CustomerID>
<Name>xyz</Name>
<HouseNo>123</HouseNo>
</access>
<key>
<CustomerID>DEF</CustomerID>
</key>
</dbTable>
</Statement>
</root>
Resultant SQL after parsing the XML file will be,
1. It will first check with the condition WHERE CustomerID = DEF. If it finds the record with this condition then it will update the record with CustomerID=ABC, Name =xyz & HouseNo=123.
2. If it doesn't find any record with that CustomerID then, it will insert a new record with the same details.
In auditlog, you will find two SQL statements like,
1.UPDATE EXAMPLE SET CustomerID=ABC, Name =xyz & HouseNo=123 WHERE CustomerId=DEF
2.INSERT INTO EXAMPLE VALUES(ABC,xyz,123)
hope this has given clear information about your query,
Regards,
Soorya -
Receiver jdbc adapter:how to implement the insert or update action in a sql
Hi,gurus:
I'm using receiver jdbc adapter now.
You know, we have to gave the action the value 'update' or 'insert',but in our case,the action is variant--update or insert.It decides whether the record exists in the outer database.
Can stored procedure do this?If I use stored procedure,then must I create a stored procedure in the outer database?
Or some other ways to solute my issue?
THanks in advance.Hi
Use Action UPDATE_INSERT .
This action check if a record exist with same key value then update that record. In case no record with key value found in database then record inserted to database.
look receiver structure
http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm -
ALEAUD back to ECC when we have an error in the receiver adapter engine
Hello friends,
My scenario is ECC (async) to SOAP (sync) and back to ECC (async = ALEAUD). I'm using aync/sync bridge is receiver SOAP adapter.
Is it possible to send back an ALEAUD automatically when I have an error in my receiver SOAP adapter? If so can you please explain how to achieve that?
Your help is greatly appreciated,
Thank you in advance,
Kind regards,
JohnHi,
The below reports will helps you to get alerts when any error in target end..
IDX_NOALE - you can configure what kind of acknowledgement you want to request for the send message type. for example you can configure for only error acknowledgements.
IDX_ALEREQUEST - you can configure to send back an acknowledgement as PI message, so that you can control the ALEAUD content by mapping.
Thanks & Regards,
A.Neelima.
Maybe you are looking for
-
HT204053 Same apple id for the icloud and app store
I have an apple id for the icloud and another one for the icloud. But i can t change the icloud id. The usermame is blocked. What should i do?
-
Open PDF not auto included when combining files in Acrobat X
If I have a PDF open in Acrobat X and I click Create -> Combine files into a single PDF, the PDF that is open is not automatically included in the list of files to combine in the Combine Files window. I need to click the Add Files drop-down and then
-
Can i connect AppleTV behind a HDMI switch?
-
How to identify default version for a process in 11g EM Console
Hi, In 10g, we had a "star" next to the default version in the bpel console to identify the default process. How does it work in 11g...how to identify the default process quickly. Thanks, Amit
-
Output determination in SNC for order confirmation
e want to use output determination to update SNC replenishment order when changes are done in R/3 sales order. We are not using new doc type. So no option left but to use 'Created by' as an option to trigger an output determination but it's not worki