JDBC UPDATE_INSERT not working

Hi Experts,
I have an issue with the JDBC Update_Insert action with the SQL database.
When I tried with the Update function and Insert Function seperately the data was updating in the database fine.
When I use the UPDATE_INSERT action with the same data getting below error.
Error while parsing or executing XML-SQL document:
Error processing request in sax parser: Error when executing statement for
table/stored proc. 'CUSTMAST' (structure 'Statement'):
com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be
truncated.
And the query that was running in the background was as follows
10.04.2014 16:34:45
Information
JDBC
Adapter Receiver processing started, required QoS ExactlyOnce
10.04.2014 16:34:45
Information
JDBC
Adapter Receiver Channel CC_Laserfische_FetchDate:  processing started; party *
/ service SYS_DB_BIS.
10.04.2014 16:34:45
Information
UPDATE CUSTMAST SET COMP_CODE='ESSR', CUST_ID='20035780',
CUST_NAME='PRAVEEN', CITY='HYD', PINCODE='500060', COUNTRY='IN',
EMAIL='[email protected]', REC_INSR_DATETIME='2014-04-10 16:34:45' WHERE
(COMP_CODE='ESSR' AND CUST_ID='20035780')
10.04.2014 16:34:45
Information
INSERT INTO  CUSTMAST (COMP_CODE, CUST_ID, CUST_NAME, CITY, PINCODE,
COUNTRY, EMAIL, REC_INSR_DATETIME) VALUES ('ESSR', '20035780', 'PRAVEEN', 'HYD',
'500060', 'IN', '[email protected]', '2014-04-10 16:34:45')
When I try this query manually in the database it is working fine but when I trigger the data from SAP PI 7.1 we are facing error as mentioned above.
Please help me with this.
Thanks in advance.

Hi Praveen,
Error "String or binary data would be truncated." comes when the incoming data length is more than the length specified in Database.
Cross check the lengths in Database with your data.
Reagrds,
Sudhasree

Similar Messages

  • JDBC control not work after upgrade application from workshop 8.1 to 9.2.3

    Hi,
    We upgraded application from workshop 8.1 to 9.2.3. After that, the JDBC control not work any more. We got the following exception:
    java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:192)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:202)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:87)
    at weblogic.jdbc.wrapper.Connection.getMetaData(Connection.java:435)
    at org.apache.beehive.controls.system.jdbc.parser.SqlStatement.createPreparedStatement(SqlStatement.java:128)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:272)
    at com.bea.wlw.runtime.core.control.internal.JdbcControlImpl.invoke(JdbcControlImpl.java:136)
    at controls.SecurityBean.getUpdateDocPermission(SecurityBean.java:598)
    at security.SecurityManagerImpl.getUpdateDocPermission(SecurityManagerImpl.java:110)
    at security.SecurityManagerBean.getUpdateDocPermission(SecurityManagerBean.java:509)
    The control that throw the exception has "transactionattribute" annotation added automatically by upgrade wizard during upgrading. Related classed are as follows:
    @ControlInterface()
    public interface SecurityManager
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    boolean getUpdateDocPermission(java.lang.String userId);
    @ControlImplementation()
    public class SecurityManagerImpl implements SecurityManager, Serializable
    * @common:control
    @org.apache.beehive.controls.api.bean.Control()
    private controls.Security security;
    static final long serialVersionUID = 1L;
    * @common:operation
    public boolean getUpdateDocPermission(String userId)
    if ( security.getUpdateDocPermission(userId) > 0) {
    return true;
    else
    return false;
    @ControlExtension()
    @JdbcControl.ConnectionDataSource(jndiName = "EventDesk")
    public interface Security extends JdbcControl
    static final long serialVersionUID = 1L;
    * @jc:sql statement="select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;"
    @JdbcControl.SQL(statement = "select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;")
    int getUpdateDocPermission(String userId);
    Thanks for your help

    Hi. The issue is a level or two above JDBC. I suggest
    opening an official support case. It's probably a
    WLW issue.
    Joe

  • TP3 - Generic JDBC Seems Not Working - Connection Worked in TP2 but Not TP3

    I had a connection working in TP2 to a PosgreSQL database. I have done in TP3 exactly what I did in TP2 to set up the connection but the connection test fails listing the name of the driver.
    I put the JAR in jdev\lib, I added a class/library to the default project properties with the classpath listing the location of the JAR including the filename, then I created a new connection with the same driver name, user/password, and JDBC URL I used in TP2. None of this worked though. I even tried restarting JDeveloper.
    Any ideas on what I could be doing wrong or if something new needs to be done in TP3?
    On a side note, although I got the connection working to the PostgreSQL db working in TP2, JDeveloper was never able to find its tables like when creating an entity from a table for example. I know this is not an issue with the driver JAR because this works flawlessly in Netbeans 6.
    Thanks in advance for any help.
    KurzHome

    Hi CM and Chris,
    I have the exact same problem when I tried to create a connection to SQL Server 2005 using Generic JDBC. It worked well for TP2 but does not work for TP3. Further more if you create it anyway, you will get following message in testing:
    An error was encountered performing the requested operation:
    com.microsoft.sqlserver.jdbc.SQLServerDriver
    Vendor code 0.
    I tried to export the working connection from JDeveloper 10.1.2. and import it to TP3. I could not solved the problem.
    Then I export the SQL server connection from TP3. The connection is expressed as
    <Reference credentialStoreKey="yuwyuw" className="oracle.jdeveloper.db.adapter.DatabaseProvider" name="yuwyuw">
    <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="subtype">
    <Contents>thirdParty</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="user">
    <Contents>yuw</Contents>
    </StringRefAddr>
    <SecureRefAddr addrType="password"/>
    <StringRefAddr addrType="driver">
    <Contents>com.microsoft.sqlserver.jdbc.SQLServerDriver</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="DeployPassword">
    <Contents>false</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="customUrl">
    <Contents>jdbc:sqlserver://host:1433</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    It seems DatabaseProviderFactory could not create connection other than Oracle. BBut JDev10.1.2 does not use Factory class. I tested Driver and URL by a small program that created a connection using connection string. No problem at all.
    Now I have 2 questions:
    1)How can we access the source code to see what happens when we submit connection creation request?
    2)You mentioned that we can swap JVM version. But this can only be done on project level. Can we do it on IDE level, because IDE connection is not associated with any project.
    Thanks,
    wyuwyu

  • JDBC drivers not working in QA for multibye characters

    Hi,
    we have a problem with JDBC and deployed in DEV system and its works fine, but the same when we deply in QA its not working.
    the problem we are trying to use the simple select query from ORACLE DB.
    In ORACLE DB they converted the chenise char to English after that our JDBC drivers are not able to pick the multibite char.
    XI JDBC Adapter shows below error with a SELECT Query
    SELECT Query:SELECT * FROM APPS.ITEM_XI_V The Chinese character are converted to English and becomes multibye characters.
    Error:Error during conversion of query result to XML: java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv
    Assumption is that the issue with older version of  ojdbc14.zip (JDBC Driver file)
    Reference:http://www.coderanch.com/t/299231/JDBC/java/UTF-conversion
    implement SAP Note 941317 in order to resolve the current issue.
    Note 941317 - XI / PI JDBC Adapter: Known Problems / Incompatibilities JDBC Driver Deployment. Refer to  SAP Note 831162
    after apply as per note for DEV system its works fine, but the same when we did for our QA system still the same error.
    Thanks,
    Venkat.

    Hi Gurus,
    Any idea where i am doing wrong.. in QA i am able to extract data with simple select statment with normal tables...
    Thanks,
    Venkat

  • JDBC (SQL) not working in thread

    I was surprised by a strange (bug?)
    I had two programs that were implementing the Java Serial Port API, each interfaced to a specific instrument. I was asked to combine the two programs into one, run it on one workstation, and run it as a service. This is on an W2K machine and they want it to work even if no one is logged in.
    Well, I started each class as a serial port listener and a runnable, thinking it might be best for each listener to have its own thread. That runs just fine. But, one of the instruments sends a lot of data, so once I had a buffer full of stuff to parse and upload (to Oracle), is started another processing thread to handle the data, and let the parent thread get back to listening to the serial port.
    Well, I parsed the data just fine, but after I created the connection, created a statement, and then tried to execute a line of SQL, it just stopped, no exceptions, but no results. I keep a log of what is going on, and it looks like the thread just dies.
    So, for experimenation, I changed the parent threads back to plain classes and created the instances of them, still leaving the processing piece as a thread. (The only draw back to this is that I cannot transmit from both instruments at the same time.) Well, the SQL worked fine, so I am wondering if there is a problem with the JDBC and threads, or inner threads?
    Anyone have any suggestions?
    Thanks,

    As I understand it, your code does not work only when you run it as a service. Although I may well not understand it (for example I don't know what you think an "inner" thread is, and I don't understand your distinction between "class" and "thread", since everything runs in some thread or other in Java).
    Is this correct? Have you managed to get the original (single instrument) code running as a service? My guess is that there's nothing wrong with Java, but there is some issue with running it as a service.

  • Update_Insert not working properly

    Hi,
    I started trying JDBC adapter and i wanted to do an update/ insert depending upon the record exists in the DB or not. But when i am performing such  an activity, the data is getting only updated/ inserted. ( it is dependent upon the first record... If the first record is a insertion, it will insert all the records.. and if the first record is updation, it will try updating all the records and i am getting an error....
    is my understanding of UPDATE_INSERT wrong..?
    sonali.

    Hi Michal,
    When u perform a update_insert with multiple records, and map the records with the statement, multiple staements will be generated like :
    <ns:RoleDetails_DB_MT xmlns:ns="urn:Update_Insert">
    + <Statement>
    + <Statement>
      </ns:RoleDetails_DB_MT>
    and the result will be as follows:
    - <ns:RoleDetails_DB_MT_response xmlns:ns="urn:Update_Insert">
      <Statement_response>
        <update_count>1</update_count>
        <insert_count>0</insert_count>
      </Statement_response>
      <Statement_response>
        <update_count>0</update_count>
        <insert_count>1</insert_count>
      </Statement_response>
      </ns:RoleDetails_DB_MT_response>
    dependign upon the record is inserted/ updated into teh table the value is reflected into the respose.
    Is this what you wanted to know...
    Cheers,
    Siva Maranani.

  • JDBC DRIVERS not working

    Hi All,
    WLS 10.3.5 installed.
    Configuring data source to 11g database and get this error:
    IO Error: The Network Adapter could not establish the connection
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:443)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:670)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:230)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
    oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:404)
    oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:694)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:267)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:134)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:745)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    org.apache.beehive.netui.pageflow.FlowController.internalExecute(Fl
    WHAT I have done:
    1). tested telnet to the DB server port and it works

    Hi,
    Try to upgrade your ojdbc6.jar file to latest one, and try to access it should work.
    Regards,
    Kal

  • Jdbc program not working

    I am trying to make a table in ms access through java and im able to compile this program also but i am not able to get its output.........................
    import java.sql.*;
    class databconnection1
    public static void main(String args[])
    try
    String n;
    int sal;
    String url="Jdbc:odbc:SS";
    //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection(url);
    Statement stmt=con.createStatement();
    String sel="CREATE TABLE Teach (Name Text(20),Salary Number)";
    stmt.executeUpdate(sel);
    stmt.executeUpdate("INSERT INTO Teach VALUES ('namrata',900)");
    ResultSet rs=stmt.executeQuery("SELECT Name,Salary FROM Teach WHERE Salary>100");
    //System.out.println("Name Roll Marks");
    while(rs.next())
    n=rs.getString("Name");
    sal=rs.getInt("Salary");
    System.out.println(n+" "+sal);
    System.out.println("Name:"+n);
    System.out.println("Salary:"+sal);
    catch(Exception e)
    }

    1) Post the code again in [co[b]de] tags.
    2) Post the error message and stack trace if you get one, or the output if not.
    3) Never suppress exceptions:
    catch(Exception e) {
    }When you do that, you have no way of knowing if something went wrong, and what it was. Do this:
    catch(Exception e) {
       e.printStackTrace();
    }

  • Jdbc synchronous not work

    I design a test scenario, http to jdbc synchronous.
    I send a test message in rwb, integration Engine. but I can't see message entry in sxmb_moni, and rwb message monitoring.
    When I send  error sql, I can see message in sxmb_moni.
    I don't know why.
    Reciever sql request message is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:sd025QR xmlns:ns0="http://topfine.com/TG/BPM"><ST1><DML action="SQL_QUERY"><access>select  * from o_tns16_base where sapflag=&apos;0&apos;</access></DML></ST1></ns0:sd025QR>
    response message structure is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:sd025QR_response xmlns:ns0="http://topfine.com/TG/BPM">
       <ST1_response>
          <row>
             <compcd/>
             <custcd/>
             <cigcd/>
             <baseqty/>
             <unitid/>
             <upddate/>
             <mq_lsh/>
          </row>
       </ST1_response>
    </ns0:sd025QR_response>

    got to SXMB_ADM -- > integration engine -- > specific configuration -- > change your logging_synch parameter value to 1

  • Jdbc Drivers not working properly

    Hello I am new to java and oracle. I have installed Oracle 8.0.5 on a NT server and install the oracle 8.0.5 client on a nt workstation for developing. When trying to get a resultset my program just stops running. I am using Jbuilder but I also have the same problem just running notepad and the jdk1.2.1. It seems that the drivers seem buggy. There is no download for 8.0.5 to support jdk1.2. I am wondering have anyone else seen this problem.

    Hi Gurus,
    Any idea where i am doing wrong.. in QA i am able to extract data with simple select statment with normal tables...
    Thanks,
    Venkat

  • Report with JDBC connection does not work when they includes CommandTable

    I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
    when i use the previes version of crystal SDK it works fine.
    after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
    i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.

    That appears to be a known issue:  Eclipse JRC: To change the JDBC connection at run time
    Sincerely,
    Ted Ueda

  • Update query not working in the JDBC sender Communication channel

    Hi,
    We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
    Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
    Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
    Please advise.

    Hi Rumi,
    See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
    8.  Transaction Handling (Sender)
    Q: If I have the following configured in a JDBC Sender:
    Select Query:
    SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
    Update Query:
    UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
    How do I know that the JDBC adapter will not update newly added rows (rows that were
    added between the time that the SELECT and UPDATE queries were executed) that were
    not read in the initial SELECT query?
    A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
    have the same view on the database.
    Make sure that both statements use the same WHERE clause. An additional
    requirement for the correct operation of this scenario is the configuration of
    an appropriate transaction isolation level on the database
    (i.e., repeatable_read or serializable). You might also consider using a
    "SELECT FOR UPDATE" statement instead of a plain SELECT statement to
    ensure proper locking on the database. "SELECT FOR UPDATE"
    is not supported in MS SQL database. In this case please make use of an
    appropriate transaction isolation level on the database. For more details
    please contact your DB vendors.
    After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
    Best Regards.
    Pedro Baroni

  • JDBC stored procedure not working in Weblogic 12.1.3

    Hi,
    We are migrating from WLS 12.1.2 to 12.1.3.
    We have a JDBC stored procedure which used to work correctly under 12.1.2. I understand that 12.1.2 uses ojdbc5/ojdbc6 jars (11.2.0.x). After migrating to 12.1.3, the stored procedure is not working.
    We have narrowed it down to the different between 12.1.2 using ojdbc5/6 and 12.1.3 using ojdbc7 jars, though we do not understand what the difference here is.
    Connection connection = getConnection();
    CallableStatement callableStatement = connection.prepareCall("{call RECEIPT_LOG (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
    callableStatement.registerOutParameter("PIO_RECEIPT_LOG_ID", java.sql.Types.INTEGER);
    callableStatement.setLong("PIO_RECEIPT_LOG_ID", 0);
    callableStatement.setString("PIO_DRAWER_NAME", request.getDrawerName());
    callableStatement.setString("PIO_DRAWER_FIRST_NAME", request.getDrawerFirstName());
    callableStatement.setString("PIO_DRAWER_OTHER_NAMES", "");
    callableStatement.setString("PIO_DRAWER_STREET_NO", "");
    callableStatement.setString("PIO_DRAWER_STREET", "");
    callableStatement.setString("PIO_DRAWER_LOCALITY", "");
    callableStatement.setLong("PIO_DRAWER_POSTCODE", 0);
    callableStatement.setString("PI_PAYMENT_TYPE", request.getPiPaymentType());
    callableStatement.setLong("PI_APPLICATION_ID", request.getApplicationId());
    callableStatement.setString("PI_PRIMARY_ID", request.getPiPrimaryId());
    callableStatement.setString("PI_SECONDARY_ID", request.getPiSecondaryId());
    callableStatement.setDouble("PI_AMOUNT", request.getPiAmount());
    callableStatement.setInt("PI_TAX_AMOUNT", 0);
    callableStatement.setNull("PI_VPC_TXNRESPONSECODE", java.sql.Types.VARCHAR);
    callableStatement.setInt("PI_VPC_TRANSACTIONNO", 0);
    callableStatement.setString("PI_VPC_MESSAGE", "");
    callableStatement.setString("PI_VPC_ACQRESPONSECODE", "");
    callableStatement.setString("PI_VPC_RECEIPTNO", "");
    callableStatement.setString("PI_VPC_BATCHNO", "");
    callableStatement.setString("PI_VPC_CARD", "");
    callableStatement.setString("PI_VPC_MERCHTXNREF", "");
    callableStatement.setString("PI_VPC_MERCHANT", "");
    callableStatement.setString("PI_VPC_ORDERINFO", "");
    callableStatement.setInt("PI_VPC_AMOUNT", 0);
    callableStatement.setString("PI_VPC_AUTHORIZEID", "");
    callableStatement.registerOutParameter("PO_RECEIPT_NO", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_SOURCE_ID", java.sql.Types.INTEGER);
    callableStatement.registerOutParameter("PO_PAYMENT_METHOD_TEXT", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_CREATE_COMMENT", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_ERROR_MESSAGE", java.sql.Types.VARCHAR);
    boolean isSuccessful = callableStatement.execute();
    Long receiptLogId = callableStatement.getLong("PIO_RECEIPT_LOG_ID");
    Here, when the callableStatement.execute() is fired, the isSuccessful is false and the output parameter receiptLogId is 0
    Any help appreciated.
    Regards,
    Rahul

    Hi All,
    We still haven't figured out what the problem is with JDBC when using ojdbc7.jar but, as an alternate solution we ported the code to Spring JDBC and got it working.
    Regards,
    Rahul

  • Delete Operation in JDBC Sender Adapter not works

    Hi,
        I have one student table which contains the fields ID,Name,BirthMonth,BirthYear,ReadFlag fields. ReadFlag is a character field or lenght 1 which contains only values either 'Y' or ' '. 
         I want to execute delete operation in this table ie to delete the records which contains the readflag = 'Y'. So, I set the below values for the following parameters.
    DELETE FROM student WHERE READFLAG = ' Y '
    Query SQL Statement : SELECT * FROM student WHERE readflag = 'Y'
    Update SQL Statement : DELETE FROM student WHERE READFLAG = 'Y'
    Poll Interval : 60 Seconds.
        There are more records in this table which contains readflag = 'Y'. But, the Adapter does not delete those records from the table i.e delete operation is not executed. At the same time, in Comm. Channel monitoring it does not show any error, but the delete operation is not carried out in the table.
         I tried after 'COMMIT' the table also. But it does not work. What could be the reason ? or How to use Delete Operation effectively on the table ?
         Kindly help me friends to solve this problem.
    Thanking you.
    Kind Regards,
    Jeg.

    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm >>>
    <i>Adapter Work Method
    You must add an indicator that specifies the processing status of each data record in the adapter (data record processed/data record not processed) to the database table.
    The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
    <b>Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
    Example
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    processed is the indicator in the database.</b></i>
    try with repeatable_read or serializable !!!
    Also go thru this thread - DELETE Querey in JDBC SENDER

  • IDoc string field to JDBC date field - Not working

    Hello everyone,
    Once again I must ask you something that is keeping me..
    I had a interface type RFC ASync to JDBC SQL Server, it was working fine. Then, I was asked to change to a type iDoc ASync to JDBC SQL Server.
    At first, it was not a problem, just manual work. But them, I am getting an error.
    In the RFC, I had a date field, that was directly related to the date field on the JDBC destination, so the mapping was pretty much straight forward. The SQL INSERT command was working fine on this cenario.
    Now, in iDoc, this field was automatically converted to a string, and somehow, PI is not understanding that string has to be mapped to a date field in the JDBC.
    Is there any 'workaround' for me to do this?
    Thanks!
    Ricardo Sancio Lóra
    Brazil

    The issue here is that somehow, the same SQL insert command that was working, does not work anymore.
    This is the SQL command took from RWB log monitor:
    INSERT INTO  aniversariantes_sap (matricula, nome, nascimento, unidade) VALUES (00000070, 'Ricardo Lora', '19851216', 00000000)
    If I run this query on my DB it works.
    But, in PI, it's not, here is the error:
    Could not execute statement for table/stored proc. "aniversariantes_sap" (structure "ANIVERSARIANTES_SAP") due to com.microsoft.sqlserver.jdbc.SQLServerException: Syntax error converting datetime from character string.
    I´ve tried cast() and convert() using mapping 'habilities', but also, does not work. Work if I run in the DB, but not if PI runs it.
    Wierd..
    Ricardo

Maybe you are looking for

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL? I've oracle 8i. Have you some example of code? Thanks Paolo

  • Mail Conditions not working in mail Form

    Hi all, Please kindly help me with the issue I faced. I created mail form with 2 Text elements. Each text element has condition from marketing attributes ( text element 1 - condition BPs are owners of freedges),  ( text element 2 - condition BPs are

  • Group Account No

    hi I have mentioned in this mail,  what i understood ......tell me whether correct or not by mail itself The following examples has be create in account group : Expenses, Income, Asset , Liability The following examples has be create in GL : Expenses

  • Mac: Copy/paste GPS Exif data in LR 2? Or workaround?

    Hello, does someone here know a workflow to transfer GPS Exif metadata from a tagged JPEG to DNG/Raw pictures in LR 2 on Mac? I have a Nokia 6220 classic mobile to shoot geotagged pictures. The pictures I take with my DSLR in the same location should

  • Time Machine and .dmg files

    Ok, this isn't technically a TM issue, but I'm posting in here as it directly affects TM backups. I'm running OS X 10.5.2, and whenever I mount an encrypted disk image and open the disk image folder, the modified date of the disk image changes. This