on 11-11-2008 10:37 AM
hi,
My scenario is rfc to jdbc.Reciever shows the follwing error.
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TBLTSEMPLOYEES_INTRA' (structure 'StatementName'): java.sql.SQLException: FATAL ERROR document format in structure 'StatementName': expected 'access' tag(s) not found.
Pls help me.
clearly mentioned error
in receiver structure use access tag
your receiver structure should be in format
<StatementName>
<dbTableName action=INSERT>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2</col2>
</access>
</dbTableName>
</StatementName>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is my structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>
</EMPID>
<REASON>
</REASON>
<CATEGORY>
</CATEGORY>
</EMP</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
Pls help me.
hi check wether u have of below format
<root>
<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>
<root/>
rgds
srini
Hi Ravi,
Check the tag in bold. There is something wrong:
Hi,
This is my structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>
</EMPID>
<REASON>
</REASON>
<CATEGORY>
</CATEGORY>
</EMP</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
Regards,
Carlos
Hi,
This is your structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>
</EMPID>
<REASON>
</REASON>
<CATEGORY>
</CATEGORY>
</EMP</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID></EMPID>
<REASON></REASON>
<CATEGORY></CATEGORY>
<EMP></EMP>
</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
you are missing the tag <EMP> .
Also put some values in the parameters,
like,
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>001</EMPID>
<REASON>xyz</REASON>
<CATEGORY>abc</CATEGORY>
<EMP>abcdef</EMP>
</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
The resultant query will be,
insert into TBLTSEMPLOYEES_INTRA values('001','xyz','abc','abcdef')
Assuming all the fields are String type.
Urs,
Soorya.
I miss tag in structure.AGAIN I past here.pls help me.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>
</EMPID>
<REASON>
</REASON>
<CATEGORY>
</CATEGORY>
</EMP>
</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName></ns1:mes_emp_info>
Hi Ravi,
Please check this format,
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>001</EMPID>
<REASON>xyz</REASON>
<CATEGORY>abc</CATEGORY>
<EMP>abcdef</EMP>
</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName>
</ns1:mes_emp_info>
You are missing <EMP></EMP> in the input file.
PLease check and correct it.
Urs,
SOorya
Hi
look again bold tag that dont have any open tag
<?xml version="1.0" encoding="UTF-8"?>
<ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
<StatementName>
<TBLTSEMPLOYEES_INTRA action="INSERT">
<access>
<EMPID>
</EMPID>
<REASON>
</REASON>
<CATEGORY>
</CATEGORY>
</EMP>
</access>
</TBLTSEMPLOYEES_INTRA>
</StatementName></ns1:mes_emp_info>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
What is </EMP> Node before access check your XML structure again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
It is giving error clearly that you didn't added the 'access' in the Receiver JDBC Structure.
Regards
Goli Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.