JDBC Adapter error"no action attribute find"
hi,
thnks
i checked the structure for sending and receiving both for JDBC and file i m getting this error AdditionalText>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>
Hi Aruna,
I think you have missed the action attribute in the data structure.
Please see the below structure.You need to map <b><i>'Action'</i></b> attribute with the kind of action you want to perform like select or update or delete etc.
<root>
<StatementName1>
<dbTableName action=UPDATE | UPDATE_INSERT>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2new</col2>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
</dbTableName>
</StatementName1>
</root>
Hope that helps!!
Regards
Sunita
Similar Messages
-
I am working on proxy to jdbc scenario where iam seeing error log in jdbc adapter of communication channel monitering like below:
Kindly do the needful?
Could not execute statement for table/stored proc. "ACU_LVL_ADDR_SRC" (structure "Statement_ACU_LVL_ADDR_SRC") due to java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
Adapter Framework caught exception: null
Delivering the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violatedUse structure like as below .....
<StatementName1>
<dbTableName action=u201DUPDATEu201D | u201CUPDATE_INSERTu201D>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2new</col2>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
<key2>
<col2>val2old2</col2>
</key2>
</dbTableName>
</StatementName1> -
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> -
Error in JDBC Adapter-"Error establishing socket"
Hi,
I am getting an error in the seander JDBC adapter. PFB the error:
Error during database connection to the database URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
Can any one hlep me to resolve the error.
Thanks,
RKHi,
Also check whether you have given database connection parameters in the following format:
JDBC Driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection: jdbc:microsoft:sqlserver://<HOSTNAME>:1433;DatabaseName=<xxxx>;SelectMethod=cursor
I think the deployment is done, because you have not got "SAPClassNotFoundException" error.(If the deployment is not done, the driver file cant be located so this will be thrown...)
Thanks & Regards,
Senthil. -
Handling JDBC adapter errors in BPM
Hi,
I am using BPM to insert data in SQL server using a snychronous send.However i am not able to trap the adapter errors like server is down or could not insert because of key violation.
Hence i decided to use transport level ack. But i understand that error description is returned in fault messages. Can i use fault messages in BPM???
And also if that is not possible, I would like to know how can i configure alerts in JDBC adapter.
Thanks in advance.Anand,
I dont think this is possible. Fault Messages should be sent by the Application System back to XI , the Database in our case. AFAIK< the database cannot send back such fault messages and the error message is trapped in the JDBC adapters log. Try using Adapter Engine Alerts and this will cause the Message to be passed to your ALert framework from the adapter.
Regards,
Bhavesh -
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 -
Hi all,
We are having an extrange problem. We are trying to read some info from an oracle Database, but we have always this error :
Error: SQLException during query 'SELECT * FROM XX': java.sql.SQLException: ORA-00942: table or view does not exist: SQLException: ORA-00942: table or view does not exist
And WE have checked it, and the table is there. To understand what is happening we try with another table and it works, we have compare both an has the same features.
Any Ideas?Hi,
This is the format in which your Data polled from the DB wiill be created,
<i><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></i>
Resultset is to be replaced by your DT / Message Type name.
In the Sender JDBC adapter, give the Document Name as the Message Type name and the Document Namespace as the Namespace of your Message Type.
Is this how you have created the source structure?
Regards
Bhavesh -
Reciever JDBC Adapter error (Oracle)
Hi,
I am trying FILE-XI-JDBC Scenario to get data loaded in Oracle. I have configured the reciever adapter in Communication Channel but while sending the message i am getting the following error:
<b>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null</b>
Can anyone guide me what needs to be done here?
Below are the settings that i am using:
JDBC Adapter: jdbc:oracle:thin:@<ipaddress>:<port>
Connection: oracle.jdbc.driver.OracleDriver
Thanks,
Rajneeshi am getting the following error:
>>>>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null
means connection to ORACLE DATABASE is not established.....check whethere oracle database is working or not...
2) check DATABASE CONNECTION fields....
jdbc driver and connection....
JDBC receiver
/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 - <u><i><b>File to JDBC</b></i></u>
How to use SELECT statement in JDBC scenario's.
Ref : https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1725 [original link is broken] [original link is broken] [original link is broken]
stored procedures
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures by siva
Best Regards,
Srikanth
Reward the useful answers and you will get one point yourself
/people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself ---onepoint blog -
Hi,
I am trying to implement JDBC to File scenario.
Trying to connect to Oracle Database. Oracle drivers are installed on XI server
JDBC Adapter parameters:
JDBC Driver - oracle.jdbc.driver.OracleDriver
Connection - jdbc:oracle:thin:@10.25.228.156:1521:databaseName=XE
Error which I can see in Communication Channel Monitoring is:
Error during database connection to the database URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE': SAPClassNotFoundException: oracle.jdbc.driver.OracleDriver'
All your inputs are welcome!
Thanks
Mugdha KulkarniHi
we are integrating XI with IBM DB2 database.
we have used 2 Jar files ( DB2jcc4.jar & DB2jcc.jar ).
but after deployment the jar file was deployed in different location, not in D:\usr\sap\XR3\DVEBMGS00\j2ee\cluster\server0\bin\ext\
trying many times this deployment, we manually copy/paste
our driver jar file to legitimate directory..
Now the error has change as .UnsupportedClassVersionError: com/ibm/db2/jcc/DB2Driver (Unsupported major.minor version 50.0)
Any one could through some light on it..
Regards,
Ashutosh
Edited by: ashutosh rawat on Dec 5, 2009 4:48 AM -
JDBC Adapter error (sender) from MS Access
Hi.
I have an error in a communication channel for an interface with MS Access Data Base.
The log info error is:
"#00144F46B52C00370000000000006B820034E8A65C6B9661#1232148827508#com.sap.aii.adapter.jdbc.JDBC2XI##com.sap.aii.adapter.jdbc.JDBC2XI.invoke()#J2EE_GUEST#19#####XI JDBC2XI[cc_s_jdbc_FuelBDDkt/BSC_Phoenix/]_2##0#0#Error#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC#Plain###Stopped unexpectedly - reconfigure and activate to continue processing. Error: 'java.lang.NullPointerException' #
If anybody has a tip to fix this problem, I appreciate your help.
Regards,
Fernando R.Hi,
This is the format in which your Data polled from the DB wiill be created,
<i><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></i>
Resultset is to be replaced by your DT / Message Type name.
In the Sender JDBC adapter, give the Document Name as the Message Type name and the Document Namespace as the Namespace of your Message Type.
Is this how you have created the source structure?
Regards
Bhavesh -
JDBC Adapter, error behaviours
Hi all,
My scenario is FILE --> JDBC, everything is ok but, My query contain multiple insertion or update. If there is an error during the process (insertion or what ever) all stop.
I do not want that behaviours, I would like my JDBC Adapter carring on the process even if there is some insertion failed !
How can I do that ?
ThanksGood, I didn't know that (i'm new in PI)
So after that change all my mapping crashed down so I recreated it.
Now, the message input has been changed by added those nodes :
<Messes1>
<message>
<DT_xxxxxx>
But in my file convertor its become the big mess. It cannot interpret the new message format
My data type in imput is :
<MT_2330003_TrainingCatalog_Request>
<recordset>
<training_catalog>
<field1/>
<field2/>
</training_catalog>
</recordset>
</MT_2330003_TrainingCatalog_Request>
Here is my configuration :
Document Name : Messages
Document NameSpace : http://sap.com/xi/XI/SplitAndMerge
Document Offset :
Recordset Name : massage1
Recordset NameSpace :
Recordset Structure: MT_2330003_TrainingCatalog_Request,recordset,training_catalog,*
Recordset Name : massage1
In properties :
MT_2330003_TrainingCatalog_Request.recordset.training_catalog.fieldSeparator = ;
MT_2330003_TrainingCatalog_Request.recordset.training_catalog.fieldNames = field1,field2,....
MT_2330003_TrainingCatalog_Request.recordset.training_catalog.processFieldNames = fromConfiguration
But the error is :
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Format error in 'xml.recordset' argument: 'recordset' is not valid -
Hi,
I am working in the following scenery: FILE->XI->JDBC.
I already accomplished all of the configurations in Integration Repository, Integration Directory and System Landscape. When it went to turn the scenery described above appears the following screen enclosed. We are using the database Oracle.
Error
Receiver Adapter v1718 for Party 'DATACENTER', Service 'CCD':
Configured at 10:38:06 2005-08-02
Initialization error: Loading jdbc driver 'oracle.jdbc.driver.OracleDriver' failed: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Found in negative cache
Loader Info -
ClassLoader name: [service:com.sap.aii.adapter.jdbc.svc]
Parent loader name: [Frame ClassLoader]
References:
service:com.sap.aii.af.cpa.svc
service:com.sap.aii.af.ms.svc
service:com.sap.aii.af.svc
service:com.sap.aii.adapter.xi.svc
library:com.sap.aii.af.lib
library:com.sap.aii.messaging.runtime
library:com.sap.xi.util.misc
common:service:iiop;service:naming;service:p4;service:ts
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:com.sap.security.core.ume.service;service:connector;service:dbpool;service:keystore;service:security;service:userstore
library:ejb20
library:sapxmltoolkit
library:com.sap.util.monitor.jarm
library:com.sap.guid
library:com.sap.tc.Logging
library:jms
Resources:
/usr/sap/XID/DVEBMGS14/j2ee/cluster/server0/bin/services/com.sap.aii.adapter.jdbc.svc/aii_adapter_jdbc_svc.jar
Loading model: {parent,local,references}
Available JDBC drivers:
No deployed JDBC Drivers found
This drive already default in database Oracle or should we download the drive and to install in the servant of the XI?
Does some note exist to be applied?
Which are the necessary steps to do the deployed of the drive?
Which are the steps to solve this problem?Hi Sergio,
U have to deploy the drivers for whatever DB u want to connect to.
U have to do the following :
1.Add all jars(drivers like msbase.jar,mssqlserver.jar,msutil.jar for MS SQL or classes12.zip for Oracle etc) to the archive aii_af_jmsproviderlib.sda, modify the provider.xml file and WinZip the .sda file again.
a)Copy the file: aii_af_jmsproviderlib.sda from the path ..\usr\sap\SID\DVEBMGS00\SDM\root\origin\sap.com\com.sap.aii.af.jmsproviderlib\SAP AG\3.0.20040112154003.0000. to any other drive on the server.
b)Unzip it. After Unzipping the archive there are 2 folders created under the provided directory
\META-INF
\server
c) Edit the file provider.xml
Add the vendor specific jar file names to the provider.xml file in between the tags <jars> </jars> and Save it.
For you it will be
<jars>
<jar-name>msbase.jar</jar-name>
<jar-name>mssqlserver.jar</jar-name>
<jar-name>msutil.jar</jar-name>
<jar-name>classes12.zip</jar-name>
</jars>
d)Copy the specific driver files to the same dirctory where u have unzipped the .sda
e)Now ZIP the following files/folders from the drive/dirctory.
Vendor driver files
META-INF folder
Server folder
The name of the zip file should be the same i.e aii_af_jmsproviderlib.sda
2.Deploy the archive aii_af_jmsproviderlib.sda on to the J2ee Engine using SDM tool.
U can also download the pdf of "How to Install and Configure External Drivers for JDBC and JMS Adapters " from the Popular Documents from th XI Homepage.
This will solve ur problem.
Regards
Sunita -
JDBC Adapter - Error - java.lang.NullPointerException
HI
I am working on a JDBC to IDOC Scenario in PI 7.1 version, and configured the JDBC channel, However when I activated I do see the following error on the LOG on NWA
Message: Stopped unexpectedly - reconfigure and activate to continue processing. Error: java.lang.NullPointerException
Date: 2010-03-04
Time: 10:14:50:113
Category: /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
Location: com.sap.aii.adapter.jdbc.JDBC2XI.invoke()
Application:
Thread: XI JDBC2XI[JDBCSender/MCM_XBOX_BS_DEV/*]_2153
Data Source: j2ee\cluster\server1\log\applications_01.log
Correlator ID: 17089510001881001
Argument Objects:
Arguments:
DSR Component: nent20_CWX_1708951
DSR Transaction: 3fb11ea7266c11df9a91001e0bc80f6a
DSR User:
Message Code:
Session: 11604
Transaction:
User: J2EE_GUEST
Host: nent29
System: CXW
Instance: DVEBMGS00
Node: server1
Can anyone give idea how to resolve this issue
Thanks
PR
Edited by: PR on Mar 4, 2010 1:23 PM
Edited by: PR on Mar 4, 2010 1:23 PM
Edited by: PR on Mar 4, 2010 1:23 PMError: java.lang.NullPointerException
this error usually comes when you have used the wrong connection parameters in the adapter.
confirm the parameters once again -
Hi,
I have a question with JDBC Sender Adapter. In my scenario, SAP XI will retrieve input data using JDBC Sender Adapter. Here is my question, What would happen if input data is wrong and cannot pass mapping in XI? Would XI send success record to target system?
For example, If XI retrieves 50 records from JDBC sender adapter and 3 records are identified as error record in XI mapping, would XI send 47 records(success records) to target system or all 50 records will be marked as error and no data will be sent to target system?
Regards,
PavinHi,
I'm using select query in Integration Directory to select input data from staging database. How would XI process input data? Would it see input data as one message or many messages according to no of records in staging database?
p.s. Currently, I don't have an access to XI system. So, I need help from someone who has been through this scenario before. Thank you.
Regards,
Pavin -
Can anyone Solve the JDBC adapter error :
Hi experts!!!
Whn I run File(FTP) to MSSQL Server ( JDBC), I m getting an error
<b>
Receiver Adapter v1027 for Party '', Service 'BS_JDBC_R2':
Configured at 12:16:42 2007-01-05
Last message processing started 12:17:09 2007-01-05, Error: Accessing database connection 'jdbc:Microsoft:sqlserver://sapep:1433;databaseName=tescra' failed: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
Addtional information: JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver' loaded successfully, additional driver information:
Available JDBC drivers:
com.microsoft.jdbc.sqlserver.SQLServerDriver, 2.2 JDBC compliant</b>
Pls help me.... I have to clear it up.....
<b>If anyone solves this they gud gud points from me...trust me..really!!!!!</b>
Thanks in advance....hi,
have a look at this:
http://support.microsoft.com/kb/313178
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Maybe you are looking for
-
Is there a way to add multiple outlines on the same layer?
Hi there! I'm trying to add an outline to text or objects through the style fx, then I want to add more outlines. It would be nice if you could just add a new stroke like in illustrator. I don't want copy the layer and just do a thicker outline behin
-
How to open a new pop-up window on click of a link using OAFunctions
Hi , I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions. Any idea, how can i open a new window while still keeping the paren
-
How to dynamically load any number of VIs and spawn a new thread for each
Hi, I'm trying to spawn several TCP listening threads, the number of which is dynamic based upon a configuration file which is read at runtime. With with the included code, I am attempting to open and call these listening threads from a for loop, thi
-
just says my ipod is over capacity when it's a 16gb ipod so it obviously isn't, can someone help!
-
Dear Guru's, Does anybody know how to export EWA's from one SolMan to another? I need historical data for SoDocA from another Solution Manager System....... Please advise! Regards, David