DB Insert failed through JDBC Adapter

Hi all,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter. The XML arriving at JDBC adapter is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns:MaterialDataUpdate_Msg xmlns:ns="http://acsis.com/ManufacturingManagement">
<MaterialData>
<TMP_MAT_SERIAL action="INSERT">
  <table>TMP_MAT_SERIAL</table>
  <access>
  <MATNO>0000000012</MATNO>
  <BATCH>32151</BATCH>
  <ITM_SERIAL>453176587769</ITM_SERIAL>
  <WEIGHT>12.34</WEIGHT>
  <T_TIME>2005-01-21 13:21:34.432</T_TIME>
  </access>
  </TMP_MAT_SERIAL>
  </MaterialData>
  </ns:MaterialDataUpdate_Msg>
The connection to the database looks ok. My JDBC adapter config is pointing to "jdbc:microsoft:sqlserver://sapsrv03:1433;databaseName=JDE".
In rwb, I got the following error:
Unable to execute statement for table or stored procedure. "TMP_MAT_SERIAL" due to java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'TMP_MAT_SERIAL'.
I have checked the database "JDE", and the table 'TMP_MAT_SERIAL' does exist.
Does anyone have any idea about this error?
Thanks a lot for helping!
Hart

Hi Hart Liu,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter.
We have been facing with problem XSD structure in the jdbc side. We r manually created XSD structure. In the adapter engine we don’t have any action item. In u r mail
U r structure contains action attribute.
Can u plz help me out to generate the right XSD structure?
We have one more doubt, is there any automatically structure-generated option? plz let us know.......
We r waiting for u r reply....
Plz help me!!!!!!!!
Regards,
Anil

Similar Messages

  • Multiple table insert using receiver jdbc adapter

    Hi,
    I am trying to insert data in to two tables in a single structure using receiver jdbc adapter. I am not using any stored procedure to insert data instead directly inserting the data using PI. Please see the structure I am using.
    SOURCE side:
    DT_ABC_SENDER
    --IT_HEADER_TEXT
      -- EBELN
      -- LINENO
      --TDTEXT
    --IT_ITEM_TEXT
      -- EBELN
      -- LINENO
      --TDLINE
    TARGET side:
    DT_ABC_RECEIVER
    --InsertStatement
         --HEADER_TEXT
                -- action                         (insert)
                -- Table                          (Table 1)
                --access
                     -- IDS_ENQ_NO
                     -- IDS_DESC
                     -- IDS_TEXT
       --ITEM_TEXT
                -- action                         (insert)
                -- Table                          (Table 2)
                --access
                     -- IIS_ENQ_NO
                     -- IIS_DESC
                     -- IIS_TEXT
    Using the above structure I am able to successfully insert the data in Table 1 but data is not getting inserted in Table 2.
    In sxmb_moni it is saying message successfully delivered but I but there is data insertion took place in Table 2.
    Please help me urgently.
    Thanks in advance.
    Neeeraj

    Hi Neeraj,
    Add --InsertStatement statement for the second table structure in the same level of first InsertStatement.
    Target structure like this:
    DT_ABC_RECEIVER
    --InsertStatement
         --HEADER_TEXT
                -- action                         (insert)
                -- Table                          (Table 1)
                --access
                     -- IDS_ENQ_NO
                     -- IDS_DESC
                     -- IDS_TEXT
    --InsertStatement
       --ITEM_TEXT
                -- action                         (insert)
                -- Table                          (Table 2)
                --access
                     -- IIS_ENQ_NO
                     -- IIS_DESC
                     -- IIS_TEXT

  • How to send 1000 records per each time through JDBC adapter

    Hi all,
    In my JDBC to File scenario, SQL Server database having 10,000 records. I want to split these records into 1000 records and process 1000 records each time. How we can do in JDBC adapter. Is there any options in JDBC adapter. Please give me reply very thanks to all of u.

    Hi all,
    Thanks for your repsone. I am very happy.
    If it sender Jdbc we can write the query. If it is Receiver Jdbc adapter and I want to send the record as 1000 at a time. 
    You may give this advise that is you can use RecordsetPerMessage option at sender side. But here I want to read all the records and send 1000 records only.
    please give me valuable answer.
    thanks in advance...

  • Resent successful message failed at JDBC adapter

    Hello,
    I have successfully configured scenario IDOC to JDBC.
    Now I have one issue that if my message passes successfully from SAP XI and get stuck at JDBC adapter (not reached to database bcoz of any reason like server is shutdown, etc).
    I need to resent this message when oracle server problem is solved.
    Can I resent the message which is passed successfully thru XI and stucked at Adpater side?

    Hi,
    If the channel is inactive , it will error out in Integration Engine itself, so u can restart those messages manually.
    Also, lets say the receiver system is not reachable(example JDBC), then what happens? You can find those messages in
    http://host:port/MessagingSystem/monitor/monitor.jsp . In the window left frame choose Received Messages , in the right frame choose Status Not Delivered. Change the time frame and click tab(there is no enter) , u can find list of messages. Now for each message u can find two options Delete, Re-Deliver ,click on Re-Deliver the message, it will go thru.
    Regards
    Seshagiri

  • Zip the data and send through JDBC adapter.

    hi,
       I need to retrive the data from database, zip it and send to xi. At the receiver and i need to unzip it.
    I know that it can be achieved using java mapping. Is there any other solution?

    Hi,
    This will help you
    Zip-Transfer-Unzip: Increase the performance of your Java-ABAP applications
    Working with the PayloadZipBean module of the XI Adapter Framework
    REgards
    Seshagiri

  • Problem in JDBC Adapter Mapping

    Hi all,
    I am working on a scenario wherein i am trying to connect an ORACLE DB to SAP 4.7 system using XI 3.0 . I configured the JDBC Adapter and the JDBC adpter is picking up the message but i have a problem in JDBC adpter Mapping.
    The error message is like this:
    <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_ORACLE_MSGMAP_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_ORACLE_MSGMAP_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    How to map the "Resultset" from the Adapter to a target message? Can anybody throw some light on how to get the message from the JDBC adpter and map it to some other message format...Any documents regarding this ?
    Waitin for ur replies...
    Bye,
    Romit Shankar Arun.

    Hi,
    Does your other SDN post "Inserting data through JDBC adapter" refer to the same problem?
    I assume you use XMLSPY for creating XSDs.
    I used the XSD posted by you in the other forum thread and tried to generate the XML structure and it does not seem to generate the XML structure in the format required by the JDBC adapter.
    sample file generated from your XSD posted in the other forum thread:
    <?xml version="1.0" encoding="UTF-8"?>
    <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Untitled1.xsd">
         <row action="INSERT">
              <CUSTOMER_NUMBER>String</CUSTOMER_NUMBER>
              <COUNTRY_KEY>String</COUNTRY_KEY>
              <FIRST_NAME>String</FIRST_NAME>
              <LAST_NAME>String</LAST_NAME>
              <AUTHORIZATION_GROUP>String</AUTHORIZATION_GROUP>
              <INDUSTRY_KEY>String</INDUSTRY_KEY>
              <ACCOUNT_GROUP>String</ACCOUNT_GROUP>
              <INTIAL_CONTACT>String</INTIAL_CONTACT>
              <COMPANY_CODE>String</COMPANY_CODE>
              <CITY>String</CITY>
              <CITY_CODE>String</CITY_CODE>
              <COUNTRY_CODE>String</COUNTRY_CODE>
              <DISTRICT>String</DISTRICT>
              <FAX_NUMBER>String</FAX_NUMBER>
              <HOUSE_NUMBER>String</HOUSE_NUMBER>
              <POSTAL_CODE>String</POSTAL_CODE>
              <REGION>String</REGION>
              <TELEPHONE_NUMBER>String</TELEPHONE_NUMBER>
         </row>
    </resultset>
    Compare the above to the template i have mentioned.
    Hope this helps.
    Regards,
    Sridhar

  • JDBC Adapter Configuration

    Hello,
    In JDBC Adapter, is there any other way to fetch the data other than select query?
    Our Scenario is like Transferring Project Information (PS Module) from Primavera to SAP. We fetch data from Primavera Through JDBC adapter with writing a select query. And we also give poll interval so after every pollinterval JDBC adapter again run the query and send it to integration Engine.
    But our requirement is once the project query executed next time only updated record transfer to SAP. IS XI gives this kind of feature?
    Regards,
    Gaurav Jain

    Hi Giridhar,
    Check out this
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    also check this interesting blog by Bhavesh
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    Thanks,
    Prakash
    Message was edited by: Prakash Arunachalam

  • Windows Authentication in Sender Jdbc Adapter

    Hi,
    We have a sender jdbc scenario where there is no user id/passowrd maintained for the database. ONly the windows user id/password is used.
    Is it possible to connect to such a database through JDBC adapter. If so, please tell how to do that?

    Hi Aarthi,
    As per my knowledge there is not posssible to do that.
    Assumption :
    Database : MSSQL Database
    Authentication : Window only
    Solution :
    You need to change authentication type become mixed.
    There is some workaround for .NET webservices using windows domain authentication but not for JDBC.
    Regards
    Fernand

  • Problem in inbound JDBC Adapter

    My scenario is like sending data from SAP to database through JDBC adapter.
    but when i tried to excute my program it is giving follwing message:
    Error processing request in sax parser: Error when executing statement for table/stored proc.  java.sql.SQLException: ORA-00001: unique constraint (STSC.UDT_PRICELOCZONE_CPK) violated
    i am sure there is no duplicate records.
    can anyone tell me what the problem?

    Hi Suresh,
    that message is defintly from your database. Try to execute your stored procedure in debug mode with just the same parameters as in your XML message.
    Regards,
    Udo

  • JDBC adapter started but no message is created

    I am not able to read data through JDBC adapter.
    When we are starting our inbound JDBC adapter it get started and does not give any error
    but no message is created in XI.When we check status of adapters by clicking main menu it is red.
    Log of adapter shows.
    JDBC adapter initializd succesfully.
    JDBC adapter started.
    Process query select * from ??????.
    JDBC adapter processing complete.Restart for next processing.
    But no message is created in XI.
    Can the no of records be the cause of this problem.
    Any help appericiated

    Hi,
    You can change the logging and tracing level of the JDBC adapter using the trace and log properties.
    Some errors may appear in the adapter_x.log file (see traces from the main menu).
    Goodluck

  • Info reg reciever JDBC adapter's driver and connection

    Hello,
    I have following questions related to JDBC receiver adapter.
    1. can I supply jdbc driver and jdbc connection dynamically to supply the DB parameters dynamically?
    2. if I cant supply dynamically, how do i achieve this purpose?
    3. What are the receiver adapter parameters of JDBC receiver adapter that i can change dynamically?
    thanks and regards,
    Nikhil.

    Hi,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • JDBC adapter , problem in inserting Korean Charaters in MS SQL

    Hi ,
    We are facing a problem when we are inserting "Koren Charaters" in DB of type MS SQL using JDBC adapter.
    What we tryed is:
    We found that there is a problem in Code Page Conversion.  We tried adding a Modules in Receiver Adapter of type JDBC.
    Processing Sequence:
    AF_Modules/XMLAnonymizer--Bean Local Enterprise Bean 1
    AF_Modules/TextCodepageConversionBean-Bean Local Enterprise Bean-- 2
    CallSapAdapter----
    Local Enterprise Bean     -- 0
    Module Configuration:
    1 anonymizer.encoding UTF-16
    2 Conversion.charset  UTF-16.
    But we are getting the error in CC as:
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: ERROR occured parsing request:com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) feff, 3c, feff(:main:, row:2, col:6)(:main:, row=2, col=6) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) feff, 3c, feff(:main:, row:2, col:6)"
    also should I have to check any patches related to JDBC driver from MS SQL which supports korean Code Page?
    Any one who had face this problem pls give us inputs:
    Thanks
    Shankar

    Hi
    In the XML sent to the channel you will have to use a special quoting
    for any Unicode strings, which the JDBC Adapter will not produce on its
    own. Instead, you need to add an attribute 'hasQuot="no"' to those
    elements (most likely in the mapping where you produce the XML) and
    explicitly enclose the data in single quotes prefixed with the letter N.
    For clarity, one example:
    If your original "INSERT" operation looks like this:
    <StatementName2>
    <dbTableName action="INSERT">
    <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2</col2>
    </access>
    </dbTableName>
    </StatementName2>
    and "col1" contains Unicode data, change the document as follows:
    <StatementName2>
    <dbTableName action="INSERT">
    <table>realDbTableName</table>
    <access>
    <col1 hasQuot="no">N'val1'</col1>
    <col2>val2</col2>
    </access>
    </dbTableName>
    </StatementName2>
    Regards
    Shankar

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • How to insert a NULL value in SQL using JDBC Adapter

    Hi All,
    I have a File -> JDBC scenario.
    In the File and in the SQL table  I have a column called "MR_DATE" that needs to be mapped
    I have to do the following:
    If MR_DATE is NOT equal to "00000000"
             then pass MR_DATE to SQL table
    else
              set the MR_DATE column in the table as NULL.
    Please suggest
    regards,
    Piyush

    Hi Piyush,
    In the receiver JDBC adapter select the option Interpretation of Empty String Values as NULL.
    Pass date as empty, it will be interpreted as NULL by adapter and inserted in database.
    Regards,
    Gautam Purohit

  • Error while executing the stored procedure through sender JDBC adapter

    Hi All,
    I am getting below error while executing the stored procedure through sender JDBC adapter.
    Database-level error reported by JDBC driver while executing statement 'exec SapgetNextEntity 'SalesOrder''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.
    what is the problem? any idea to anyone...
    regards
    Ramesh

    hi Dharamveer,
    I am not getting below statement for your reply
    Try to use Refrence Cursor it will return u reference of resultset.
    I mention SP like this
    exec SapgetNextEntity 'SalesOrder'
    SapgetNextEntity -
    > SP Name
    SalesOrder----
    > Parameter I am passing...
    regards
    Ramesh

Maybe you are looking for

  • Are the iPhone 5 and 6 different kinds of devices?

    In reference to the section: "I want to use a backup of my iOS device for a different kind of iOS device" in Apple Support article HT201418 (If you need help restoring from an iCloud backup - Apple Support). That section lists the following as data t

  • Checkboxes are not rendering

    Ever since I upgraded to Firefox 4, checkboxes have stopped rendering within the browser. They will occasionally be visible upon a fresh launch of the browser, but disappear on mouse-over. They still function, but are completely invisible.

  • Why Once restarted, the wallpaper on restore?

    Google search to a tutorial, go to the resource library to find com.apple.desktop, delete a folder, but still not be effective

  • I am trying to sync ical with office 365.

    When using office 365 to enter calendar entries, they appear in my iCal.  However, if the entry is input in iCal, it does not syn with Office 365 calendar.  Anyone else have this issue?  Know a fix?

  • Error 42110 occurs

    ?Error 42110 occurs when starting itunes?? waht is to do?? pls hlp!