on 07-08-2008 8:54 AM
I am writing data in oracle database through jdbc adapter there are some fields for which null is allowed. But when i am sending those fields with no value i am getting error " java.sql.SQLException: ORA-00936: missing expression".
I have selected NUll VALUE in jdbc adapter.
Although i have tried withboth Empty String and Null value but it's not working. When i am hardcoding "null" for any such field than only its inserting value in database.
regards,
indu
Edited by: Indu Khurana on Jul 8, 2008 9:56 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this complete JDBC adapter configuration guide:
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm
Thanks,
Boopathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Indu,
Please go ahead and use NULL VALUE option only.
Also check advance mode > additional parameters, include logsqlstatement = true.
Run the interface once more. Check the communication channel now. It will show the actual insert statement which is trying to insert into the DB.
This will give you better clarity as to why the erro missing expression is coming. This also due to some syntax error in the insert statement.
-Regards,
Shamly
Hi Indu,
For those fields which you are having this problem use trim function in message mapping. This had worked for me once. This removes any urecognisable white spaces. Give it a try.
InputField ->trim-->TargetField.
Also,
Make sure you give the logSQL statement in the Receiver communication channel.
To view the SQL log Click on the message ID of the communication channel monitoring.
or, alternatively, in Runtime workbench, click your message> details> audit log tab.
-Hope it solves for you too.
Shamly.
Edited by: Shamly MM on Jul 8, 2008 11:32 AM
Hi Indu,
logSQLStatement : check the case. SQLS is in capital.
You have to to type logSQLStatement in the name column and true in the value column.
Missing expression is caused due to some non numeric values in numeric field. Are your concerned fields numeric in the DB table?
Please update the thread if the issue is already resolved.
-Regards
Shamly
Hi Indu,
Please check the link related to Receiver JDBC Adapter.
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm
Hope that will help you
Thanks
Sudharshan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.