on 02-27-2009 6:49 AM
hi
i'm following the document by Bhavesh kantilal on file to jdbc._https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3928_ [original link is broken] [original link is broken] [original link is broken]
however during execution,the JDBC communication channel throws the following error:Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COMPANY' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', key element 'NAME' contains no values
we have mapped the Name and IBU to empty constants as told in the doc.
Kindly advise how to debug the problem.
Check the JDBC document formats: [JDBC Document format for Receiver JDBC|http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm]
You have to provide the Mandatory fields.
Check my blog as well : [Best Practices with Receiver JDBC Adapter Document Formats|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12970] [original link is broken] [original link is broken] [original link is broken];
Thanks,
- Gujjeti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi praveen
thanks a lot for ur help.
its finally working:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The mistake lies in "we have mapped the Name and IBU to empty constants". If you read carefully the objective in the blog is "Letu2019s say, we have an Employee Table EMPTEST with EmpNo and Name. We use a File to pass the EmpNo and the Operator to the JDBC adapter. This will dynamically select the data that satisfies the query from the database and finally push this data back to a file."
how can you fulfill the objective if you have necessary fields as empty.
Rgds
joel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Check the table which you created.Name should not be a primary key.
One more choice.Unmark the key tags mandatory tag in the receiver communication channel.
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi prakasu
thanks to u, we unchecked the 'key tags madatory'.So now that error has gone.
however another error has come:Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COMPANY' (structure 'STATEMENT'): java.sql.SQLException: ORA-00936: missing expression
source structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_FILE_SRC xmlns:ns0="">
<REQUEST>
<EMPNO>1</EMPNO>
<OPERATION>GT</OPERATION>
</REQUEST>
</ns0:MT_JDBC_SELECT_FILE_SRC>
Db req:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_FILE_REQ xmlns:ns0=""><STATEMENT><COMPANY ACTION="SELECT"><TABLE>COMPANY</TABLE></COMPANY><ACCESS><NAME></NAME><IBU></IBU></ACCESS><KEY><EMPNO compareOperation="GT">1</EMPNO></KEY></STATEMENT></ns0:MT_JDBC_SELECT_FILE_REQ>
>
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_FILE_REQ xmlns:ns0=""><STATEMENT><COMPANY ACTION="SELECT"><TABLE>COMPANY</TABLE></COMPANY><ACCESS><NAME></NAME><IBU></IBU></ACCESS><KEY><EMPNO compareOperation="GT">1</EMPNO></KEY></STATEMENT></ns0:MT_JDBC_SELECT_FILE_REQ>
Your structure is wrong. It should be as below
<ns0:MT_JDBC_SELECT_FILE_REQ xmlns:ns0="">
<STATEMENT>
<COMPANY ACTION="SELECT">
<TABLE>COMPANY</TABLE>
<ACCESS>
<NAME></NAME>
<IBU></IBU>
</ACCESS>
<KEY>
<EMPNO compareOperation="GT">1</EMPNO>
</KEY>
</COMPANY>
</STATEMENT>
</ns0:MT_JDBC_SELECT_FILE_REQ>
Hence you have to change the Data Type Accordingly. Also Check Key Tags as Mandatory in
JDBC Receiver Communication Channel
Edited by: Praveen Gujjeti on Feb 27, 2009 1:25 PM
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.