Quantcast
Viewing all articles
Browse latest Browse all 8735

JDBC receiver error - stored procedure

Hi Experts,

 

My scenario is File to JDBC, calling stored procedure using JDBC connection.

 

Getting below error in JDBC receiver communication channel, below is target structure. Can you please help on what is causing error

 

Error:

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Storedprocedurename' (structure 'Statement'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'table' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)

 

Target Structure:

 

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Receiver xmlns:ns0="Namespace">

<Statement>

  <Storedprocedurename action="EXECUTE">

   <table>Storedprocedurename</table>

   <Delivery_Number isInput="true" type="CHAR">1234</Delivery_Number>

   <Order_Number isInput="true" type="CHAR">30296310</Order_Number>

   <Cust_PO_Number isInput="true" type="CHAR">474187</Cust_PO_Number>

   <Origin_Name isInput="true" type="CHAR">3011</Origin_Name>

   <Origin_Code isInput="true" type="CHAR">3011</Origin_Code>

   <Shipped_Datetime isInput="true" type="CHAR">20140114042121</Shipped_Datetime>

   <Seal_Numbers isInput="true" type="CHAR">-</Seal_Numbers>

   <Mode_Code isInput="true" type="CHAR">TRUCK</Mode_Code>

   <Manual_Carrier_Desc isInput="true" type="CHAR">WATSON POWELL INC</Manual_Carrier_Desc>

   <Tractor_ID isInput="true" type="CHAR">7</Tractor_ID>

   <Trailer_ID isInput="true" type="CHAR">5</Trailer_ID>

   <UOM isInput="true" type="CHAR">UOM</UOM>

   <Product_Code isInput="true" type="CHAR">PrdCd</Product_Code>

   <Gross isInput="true" type="CHAR">123</Gross>

  </Storedprocedurename>

</Statement>

</ns0:MT_Receiver>

 

Thank you.


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>