Error in File-JDBC Scenario

Dear All,
I am working on FILE to JDBC scenario in which I am facing with the following error:
- 2007-12-14 18:18:51 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TBL_SAP_PRODUCTS' (structure 'STATEMENTNAME1'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
the payload at the JDBC adapter is :
- <ns0:MT_JDBC_MARA xmlns:ns0="urn:abc:mm">
- <STATEMENTNAME1>
- <DbTablename action="INSERT">
  <TABLE>TBL_SAP_PRODUCTS</TABLE>
- <access>
  <MATERIAL_CODE>000000000001002021</MATERIAL_CODE>
  <DESCRIPTION>BASICS 7 FTBL.</DESCRIPTION>
  <PRODUCT_HIERARCHY_CODE>00</PRODUCT_HIERARCHY_CODE>
  <MATERIAL_GROUP_CODE>R1500</MATERIAL_GROUP_CODE>
  <MATERIAL_GROUP_DESC>Basics-FG</MATERIAL_GROUP_DESC>
  <BASE_UNIT>S07</BASE_UNIT>
  <SAP_ADD_DATE>20051219</SAP_ADD_DATE>
  <SAP_MODIFY_DATE>20051219</SAP_MODIFY_DATE>
  <EXTRACT_DATE>20071214</EXTRACT_DATE>
  </access>
Please guide me what is the error.
Warm Regards,
N.Jain

Hi nishu,
Go into the Repository (IR) and check the conditions mentioned for the field <STATEMENTNAME1>/TBL_SAP_PRODUCTS in the datatype, searching it by the respective namespace and check if the given input has the expected data type.
Change your payload date format according to the timestamp specified in the condition .
Regards,
Shibani
*reward with points if helpful*

Similar Messages

  • ATTRIBUTE_IDOC_RUNTIME error in File-IDOC Scenario

    Hi,
    I got this error in FIle-IDOC scenario.
    ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>Transaction IDX1: Port SAPMMX, client , RFC destination contain errors
    There are many threads on same issue. Almost in all threads, the suggestion given was, we need to check the Channel Definition(Port should be SAP<SYSID> and not SAP<SYSID>_<CLIENT>)
    I have given the proper values for RFC desitnation and port. Even then, I m getting this error.
    Is there any other suggestions?

    Hi aarthi,
    I suggest u chk all d settings dat u hav done..
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    Step 6)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 7)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.
    SAP r3
    sm59(status check)(no message)
    WE02(status check)
    WE05(status check)
    BD87(status check)
    Xi
    IDx5(Idoc check)
    SU53(authorization check)
    reward points if helpful...
    MenoN

  • File JDBC - scenario, no need of response

    File  to  JDBC scenario insert Async scenario....
    i dont want response back..but i am getting response and throws error ..how to make it without response?

    i was using file adapter as sync with requestresponse bean..which caused the issue..I removed it and issue resolved...

  • File-Jdbc scenario

    Dear Friends,
             I am performing Simple File to JDBC scenario. For this I am using MySql. I have designed and configured all the required steps and activated. Now I went to Runtime Work Bench monitoring.. Here in Message monitoring status is "waiting". Here it has thrown one exception like this, Exception caught : Jdbc Receiver Channel:Configuration not initialized due to loading Jdbc receiver
    "com.microsoft.sqlserver.SQLServerDriver" Failed :java.lang.ClassNotFound - Exception : com.microsoft.jdbc.sqlserver.SQLServerdriver.
    Please help me,Now what i have to perform.
    thanks in advance.

    check this
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/08546ff5200486e10000000a155369/content.htm
    and
    https://wiki.sdn.sap.com/wiki/x/sAA7AQ
    Regards,
    Ravi

  • Very strange error : IDOC to jdbc scenario

    Hi
    I am getting a very strange error when I see the log for the idoc to jdbc scenario that I am building.
    The mapping test shows the header record and line item record properly in the mapping result.
    insert, access nodes, fields with access nodes are all formed correctly.
    However the communication channel log shows below error.
    Could not execute statement for table/stored proc. "tblTestItem" (structure "Item") due to com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'tblTestItem' (structure 'Item'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    The message status was set to WAIT.
    The query that I see in the log is :INSERT INTO  tblTestItem () VALUES ()
    However mapping tool shows that all nodes are correctly formed.
    Please assist.

    Hi
    I am still getting this issue even after the below steps so kind of stuck - actually very much stuck.
    1. Restart of the dev environment
    2. Tried with a new extension of the idoc
    In the communication channel log for the JDBC receiver channel I still see
    INSERT INTO tblItem () VALUES ()
    The payload that I see in the message content tab is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_XXX_XXXX xmlns:ns0="http://capita.com/pi/XXXX">
    - <Statement>
    - <dbTableName action="INSERT">
      <table>tblItem</table>
      </dbTableName>
    - <access>
      <InvoiceNo>0000000009293467</InvoiceNo>
      </access>
      </Statement>
      </ns0:MT_XXX_XXXX>
    How do I debug the jdbc adapter to see how it converts the above xml output from the mapping step (note that this output is from an actual run and not test tool) to a sql query.
    Very strange that the column names are present in the target payload but it is not reflecting in the query.
    I have other tables being populated with the same jdbc receiver communication channel which makes this more and more confusing.
    PLEASE ADVICE.

  • Receiver communication chanel error in File conversion scenario

    Hi ,
    I am trying to implement a file-xi-file scenarion in which the input is a tab delimited file...The Sender channel works fine.
    The problem i am facing now is that the receiver commmunication channel throws an error in adapter monitoring..the error says ...
    "Receiver Adapter v2123 for Party '', Service 'FILE_TRANSFER2_SD':
    Configured at 2006-05-18 14:26:02 GMT+05:30
    History:
    - 2006-05-18 14:26:02 GMT+05:30: Error: Conversion initialization failed: Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing "
    If i remove the receiver content conversion then the channel works fine and gives me the output as one single string of charaters widout any formatting....
    I have added both the fields in the content conversion of the receiver channel...
    Plz help...
    Thanx ,
    Srestha

    Hi,
    You have to give in you field content conversion either the paramter 'field seperator' or 'fieldFixedLengths'
    <i>'If you make a specification here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
    If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
    If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.</i>
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • Error in File 2File scenario

    Hello Friends,
    when i am doing file 2 file scenario . my input file was picked but i was unable to show in reciever side . but in message moni it is showing black flag .. i am send ing the same file to database also in mesg moni it is showing 3 flags of it one showing message branched and the remaining interfaces it is showing black flag.\please solve my problem .

    Did you checked the detailed logs under  'versions' of the message in  'Message monitoring'?
    Go to Run time workbench.
    Select Message Monitoring
    Select your message and click on Versions.
    Select the Adaptor Engine(receiver)  and click on 'Details' button to view the detialed logs.
    I'm sure you will see something that stopping the message to go to receiver.
    Thanks,
    DV:)

  • File - Jdbc

    Hi,
    I configured FILE - XI - JDBC scenario. I am transferring data from a flat file to Oracle table. In the receiving communication channel, I gave the necessary parameters.
    The flat file is picking up, but at the receiving end its throwing an error that 'Class Name does not exist'.
    Plz help me how to resolve this...
    Thanks,
    Satish

    Hi Satish,
    Please have a look at these blogs.They clearly explain the File-JDBC scenario
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    cheers ,
    Prashanth

  • Error in File-XI-JDBC Scenario

    Dear All,
    I am working on File-XI-JDBC scenario which is using stored procedure (SP_UPDATE). When I am processing the file it is giving me the following error in the message monitoring:
    Unable to execute statement for table or stored procedure. 'SP_UPDATE' (Structure 'Statement') due to java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'access' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
    Please guide me what is this error all about and how this can be resolved.
    Warm Regards,
    N.Jain

    Dear All,
    Now, I am able to update the SQL Server database but only one record is coming at the target. Can anyone please guide me what is he error in my Data types o in my mappings. Following is the source Data Type:
    MT_TEST_FILE_T179T      1..1     DT_TEST_FILE_T179T
         ROOT                         1..unbounded
            PRODH                    1..unbounded     xsd:string
            VTEXT                      1..unbounded     xsd:string
            DATUM                     1..unbounded     xsd:string
    Following is the target Data Type:
    MT_TEST_JDBC_T179T      1..1     DT_TEST_JDBC_T179T
         STATEMENT                1..1
            SP_UPDATE             1..1
                action                    required     xsd:string
                TABLE                  1..1                     xsd:string     
                    PRODH             1..unbounded     xsd:string
                       type               optional            xsd:string
                    VTEXT               1..unbounded     xsd:string
                       type               optional            xsd:string
                    DATUM              1..unbounded     xsd:string
                       type               optional            xsd:string
    Following are the mappings done:
    EXECUTE-->@action
    storedprocedurename-->TABLE
    PRODH-->PRODH
    VTEXT-->VTEXT
    DATUM-->DATUM
    CHAR-->@type.
    With this stucture and mapping i am able to insert only one recored in the database even though there are multiple entries in the file.
    Please guide me in solving this error so that multiple records can be inserted.
    Warm Regards,
    N.Jain

  • Strange error in File-XI-JDBC scenario

    Dear All,
    I am working currently on File-XI-JDBC scenario and is facing with a stange problem.
    I have writtern one simple query which is downloading the data from R/3 and is sending to XI Server local folder. From that folder File is getting picked by XI and is posted into SQL database.
    Now, when I am generating the required file from R/3-DEV server then my scenario is getting executed successfully but if file is generated thru R/3-QAS Server then the scenario is giving the following error "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MARA_UPDATE' (structure 'Statement'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Error converting data type nvarchar to smalldatetime."
    Also, if I am copying the complete data from the error file and paste it into a new file and executing again then the scenario is executing correctly.
    I have checked the payload and didn't find anything there.
    Kindly help me in solving this error.
    Regards,
    N.J

    Hi Farooq,
    Thanx for your reply. But this scenario is running when we are sending the file from R/3-DEV Server and also if I am copying all the contents of the error file and pasting it into a new file and then processing the file then the scenario is getting executed and I am getting no error with the same data which I have processed earlier and has thrown error.
    Reg,

  • Error comming in File to JDBC scenario.

    Hi Frnds,
    I am trying to do the File to JDBC scenario and is using the SQLServer.
    After processing the message, it is showing executed successfully in moni but for the receciver communication channel  i am getting the error like---->
    Error during database connection to the database URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB': SAPClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver'
    What could be the possible solution for it.
    Thnx
    Raj.

    Hi Raj,
    As Prateek mentioned, the error you are getting is because of an improper installation of a driver.
    Check out the doc for the driver installtion steps : [How To Install and Configure External Drivers for the JDBC & JMS Adapters|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f]
    Also, the following thread contains some more useful links : Re: What's necessary to connect SQL server to XI?
    Thanks,
    Pooja Pandey

  • Test cases for File to JDBC scenario?

    Hi Experts,
    I would like to know what are the things needs to be tested to ensure that the File to JDBC scenario holds good in the PI box. Your valuable inputs are required to verify /check my scenario configuration is free of errors.
    Thanks & Regards,
    Pcv.

    Hi,
    You can try the following:
    1) If the end systems require authentication and the same is not provided in PI then it should throw an error.
    2) Check what happens when you dont give a mandatory field.
    3) check what result you will get when you give a wrong input.
    4) Check whether all your restrictions (in mapping and/or in receiver determination) are working properly.
    5) Check what you need to do when the target system is down.
    6) If using any FCC then check whether the conversion is done properly.....
    7) See to it that you have defined a proper DB structure when you are communication with JDBC
    8) Check with the end system whether your statement (Insert/Update/Delete etc) is performed properly
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 4, 2008 9:58 AM

  • IDOC to JDBC Scenario error

    Hi All,
    I am doing a IDOC to JDBC Scenario.I am done with IR and ID.
    The Table in the DB is TABLE1 with Field1 and Field2.
    Now when I run thescenario it throws an error ,
    2009-03-19 12:41:06 Success INSERT INTO  TABLE1 (Field1, Field2) VALUES (KM247850, FINJTIA)
    2009-03-19 12:41:06 Error Unable to execute statement for table or stored procedure. 'TABLE1' (Structure 'Statement') due to java.sql.SQLException: [EUDNT038]The name "KM247850" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
    But it has successfully generated the SQL Query which I think is perfect.
    But whats the error which follows that?
    How do I resolve it?
    Thanks,
    Venu

    Hi,
    It could be due to wrong structure of JDBC, compare your target structure with this blog..
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Regards,
    Sarvesh

  • File to Jdbc Scenario

    Hi All,
           I am doing a File to JDBC scenario, where sender side message type occurance is 0..unbounded and receiver side message type occurance is 1 in message mapping. The whole scenario working fine when both sender and receiver side message type occurance is 1 in message mapping.
    When Sender side occurance is 1.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_smtjdbc_sender xmlns:ns0="http://SmartJDBC">
       <NAME>A</NAME>
       <DEPT>B</DEPT>
    </ns0:mt_smtjdbc_sender>
    When Sender side occurance is 0..unbounded.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:mt_smtjdbc_sender xmlns:ns1="http://SmartJDBC">
             <NAME>Dip</NAME>
             <DEPT>xi</DEPT>
          </ns1:mt_smtjdbc_sender>
       </ns0:Message1>
    </ns0:Messages>
    If I use Sender side occurance as 0..unbounded I am getting the following error in adapter engine Communication channel monitor (for receiver communication channel)
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    Can anybody please help me how to solve this problem?
    Dipankar

    Hi,
    My Sender side structure as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:mt_smtjdbc_sender xmlns:ns1="http://SmartJDBC">
             <NAME>DIp</NAME>
             <DEPT>XI</DEPT>
          </ns1:mt_smtjdbc_sender>
       </ns0:Message1>
    </ns0:Messages>
    My corresponding Receiver side structure as follows.
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:mt_smtjdbc_receiver xmlns:ns1="http://SmartJDBC">
    <Statement>
    <dbTableName action="INSERT">
    <TABLE>SMARTOP</TABLE>
    <access>
      <NAME>DIp</NAME>
      <DEPT>XI</DEPT>
      </access>
      </dbTableName>
      </Statement>
      </ns1:mt_smtjdbc_receiver>
      </ns0:Message1>
      </ns0:Messages>

  • Error in File to Jdbc.

    Hi all
    I am trying to do a simple File to Jdbc scenario.table has 2 fields empno and empname.i am able to insert records into the database successfull without any data in empname ,but when trying to insert a record with value in empname it is giving me the error " Error when executing statement for table/stored proc. 'EMPLOYEE' (structure 'STATEMENT'): java.sql.SQLException: ORA-00984: column not allowed here  ".
    empname in database is of type varchar and length 100
    and in IR it is of type string.
    plz help me in resolving the issue
    <It is against the rules of Engagement to post a question with the catch of awarding points. Please refrain from the same.>
    Regards
    Bhasker
    Edited by: Bhavesh Kantilal on Dec 3, 2008 10:26 AM

    Hi all
    Thank u for response and feedback.
    my xml payload in adapter engine looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:employee_MT xmlns:ns0="http://filetojdbc.com/employee">
    -   <STATEMENT>
    -    <EMPLOYEE action="INSERT">
         <table>EMPLOYEE</table>
    -    <access>
            <EMP_NO>2548</EMP_NO>
            <EMP_NAME>abc</EMP_NAME>
         </access>
        </EMPLOYEE>
       </STATEMENT>
      </ns0:employee_MT>
    is anything wrong in this payload.?
    as mentioned earlier i am able to insert data without the any value in <EMP_NAME>
    please help me in resolve this issue.
    Regards
    Bhasker

Maybe you are looking for