cancel
Showing results for 
Search instead for 
Did you mean: 

jdbc reciever error

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

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>

Former Member
0 Kudos

Hi,

My structure is

recevier_DT

StatementName

EMPTABLE

action='INSERT'

access

empno

empname.

I create these for reciever side.Pls help this is perfect r erro.

prateek
Active Contributor
0 Kudos

Paste ur xml structure here. It would be helpful to ans then. U may get it from message mapping test tab -> source.

Regards,

Prateek

Former Member
0 Kudos

HI Ravi,

Have u created the Receiver JDBC structure like in this blog.

And also can you paste the xml format of the Receiver structure...

Regards

Goli Sridhar

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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>

Former Member
0 Kudos

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

Answers (3)

Answers (3)

dharamveer_gaur2
Active Contributor
0 Kudos

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>

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

What is </EMP> Node before access check your XML structure again

Former Member
0 Kudos

Hi Ravi,

It is giving error clearly that you didn't added the 'access' in the Receiver JDBC Structure.

Regards

Goli Sridhar