on 07-12-2007 9:52 AM
Hi,
I am getting following error when i am trying to insert data into z-table using JDBC recr adapter.
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTEST' (structure 'STATEMENT'): java.sql.SQLException: <u>[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name '<b>ZTEST</b>'.</u>
But the database table name 'ZTEST' exists in the system.
XML structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
<STATEMENT>
<TEST action="INSERT">
<table>ZTEST</table>
<access>
<ROLLNO>123</ROLLNO>
<FIRSTNAME>ABC</FIRSTNAME>
<LASTNAME>XYZ</LASTNAME>
</access>
</TEST>
</STATEMENT>
</ns0:MT_RECR>
Regards,
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did u check at the blog pointed. also are u refering to the right database as given in the connectivity string?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhu,
Yes, I have tried that blog too.Initially i have faced connectivity problems and after passing correct parameters that problem was solved.I dont know why it is giving error " invalid object name'.I have checked the table and settings in the system.here i am trying to insert into XI sys z-table.
any idea?
Regards,
srinivas
Hi,
Maybe I am sounding a bit dumb, but you can try restarting the JDBC Adapter from Visual Admin. One of our DB scenarios got an error intially, but after we corrected the error, the adapter did not refresh the metadata automatically. Restarting the JDBC adapter did the trick.
Keeping fingers crossed...
Regards,
Amitabha
hi Srinivas
Please check for any other table or do one thing
Please check ure Message type structure, the Table tag should be at the same level at the TEST level
Rgds
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have changed my MT str but still getting the same error.Is it possible to insert/ update a z-table using JDBC adapter.
XML str:
-
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
<STATEMENT>
<ZTEST action="INSERT">
<access>
<ROLLNO>123</ROLLNO>
<FIRSTNAME>abc</FIRSTNAME>
<LASTNAME>XYZ</LASTNAME>
</access>
</ZTEST>
</STATEMENT>
</ns0:MT_RECR>
Regards,
Srinivas
Hi,
Check wether the JDBC DRIVER, CONNECTION parameters that you are using is right one.
You xml structure has to be
<b><data type>
<sub element statement name>
<subelement table name>
<attribute action>
<subelement access></b>
Hope it work.
Cheers,<b>
*RAJ*
*REWARD POINTS IF USEFULL*</b>
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 | |
10 | |
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.