JDBC Adapter: unique constraint

Hi,
my scenario: IDoc -> XI -> JDBC.
I would like to know whether the data processing on my Oracle database was successful or not. If an unique constraint fails on oracle (i have test it)
the idoc has status successful although (XI: SXMB_MONI) . how i can make sure, that my idoc is in error state, if a unique constraint or any other error @oracle occurs ??
Note: JDBC is async
Thanks
Sebastian

Hi,
Few options~~
1. Make a Synch Call to the JDBC Insert so that you will get a response back with the Insert_Count etc. Wrap the SEND SYNCHRONOUS step with an Exception handler block of the BPM. If there is an Unique key violation, the Exception handler block of the BPM will be trigered. if everything is succesful, then terminate your BPM with the Send Synch call itself. No other step needed after this.
2.If you do not want to complicate your scenario by using a BPM , I would suggest that you continue with the existing IDOC --> JDBC scenario and you use adapter Engine Alerts of XI's alerts framework to trigger a notification when there is the error in your JDBC adapter.
Regards,
Bhavesh
What you can do is

Similar Messages

  • JDBC adapter error

    I am working on proxy to jdbc scenario where iam seeing error log  in jdbc adapter of communication channel monitering  like below:
    Kindly do the needful?
    Could not execute statement for table/stored proc. "ACU_LVL_ADDR_SRC" (structure "Statement_ACU_LVL_ADDR_SRC") due to java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
    JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated
    Adapter Framework caught exception: null
    Delivering the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ACU_LVL_ADDR_SRC' (structure 'Statement_ACU_LVL_ADDR_SRC'): java.sql.SQLException: ORA-00001: unique constraint (FSSMGR.ACU_LVL_ADDR_SRC_PK) violated

    Use structure like as below .....
    <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>

  • Messages are in hold state due to one message at receiver JDBC adapter

    Hello,
    I am using a receiver JDBC adapter and trying to send an XML file which has an insert query to insert some data into the database i.e., Oracle 9i.
    Here at the receiver side due to one message (  which is in to be delivered state) all other messages are got hold and waiting for long time.
    I am getting the exceptions as this,
    JDBC Adapter processing failed with Error processing request in sax parser: Error when executing statement for table/stored proc. 'FSASMGR.XTBL_KL06_IINQUIRY' (structure 'REC01'): java.sql.SQLException: ORA-12899: value too large for column "FSASMGR"."XTBL_KL06_IINQUIRY"."CASE_TITLE" (actual: 81, maximum: 80)
    Exception caught when executing statement for table/stored proc. 'FSASMGR.XTBL_KL01_ISTAFF_MST' (structure 'REC1'):
    java.sql.SQLException: ORA-00001: unique constraint (FSASMGR.XTBL_KL01_ISTAFF_MST) violated
    Can anyone help me out in solving this issue.
    THanks,
    Soorya

    hi surya,
    jdbc channel tries a request for n number of times(no of rettries),if that request fails it will take up the following requests,its not like it will process a request forever.
    to be delivered will be resulting if reciever is down or network between XI and database server is bad.
    try to ping databse server from XI host system.
    if everything is fine then look at the channel configuration->advanced->no of retries of database transaction on sql server.
    just redue the count to 1 and recheck.
    Regards,
    rama Krishna

  • 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

  • DuplicateMessageExc in Snder JDBC Adapter although succesfull in SXMB_MONI

    Hi Experts,
    I am getting "com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id 5b72a60b-b0e2-48f0-3701-cdb67ac1c5b2(OUTBOUND) already exists in duplicate check table: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00149397) violated  "  as well as   "Error during commit or rollback of database transaction: 'com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to commit transaction: The transaction has been rolled back: com.sap.engine.services.ts.transaction.TxRollbackException'   in the Sender JDBC Adapter. 
    The message is processed successfully in ABAP stack . I have stopped and started the relevant Communication channel from RWB however the message is   continually processed by the adapter with error.  Please assist , how to cancel the message.

    This error relates to a  JDBC sender adapter on a SAP PI 7.11 SP6 system.
    We have identified a problem with this particular interface. CC_JDBC_Send_FrontOffice_RJ35_NFE_CREATE. A specific message, b72a60b-b0e2-48f0-3701-cdb67ac1c5b2, continues to be sent. SAP PI is then rejecting the message as its unable to commit the record processing to an internal table and rolling back the transaction.
    When checking NWA Java logs we found the following error:
    Module Exception 'com.sap.aii.af.lib.mp.module.ModuleException: senderChannel 'ce6444c858cb3a9baef6b39c35f79106': Catching exception calling messaging system' found, cause: com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id 5b72a60b-b0e2-48f0-3701-cdb67ac1c5b2(OUTBOUND) already exists in duplicate check table: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00149397) violated
    So it appears that SAP PI attempts to update an internal table with the status of the message and fails due to duplicate records. In other words SAP PI knows its already processed the message. This message continues to be sent to the adapter for processing and continues to fail.
    How can we stop this message being procesed?

  • Strange behavior of JDBC Adapter

    Hello everybody!
    I found a pretty strange behaviour of JDBC Receiver Adapter during problems with network (big thanks to our Basis). According to the status in Adapter Engine, the message wasn't processed. In the database I can see these inserts. However, there are more lines in the XML than lines in the database. So, how it is possible that adapter commits only part of inserts. Logs and settings see below.
    My XML includes a SQL_DML statement and a few INSERT statements, each contains many inserts.
    It looks like that:
    <?xml version="1.0" ?>
    <MyMessage>
        <statement>
            <table1 action="SQL_DML">
                <access>here I delete old values</access>
            </table1>
        </statement>
        <statement>
            <table2 action="INSERT">
                <access>some data</access>
            </table2>
        </statement>
        <statement>
            <table3 action="INSERT">
                <access>some data</access>
            </table3>
        </statement>
    </MyMessage>
    Part of adapter log is here:
    Information
    Message successfully put into the queue
    Information
    The message was successfully retrieved from the receive queue
    Information
    Message status set to DLNG
    Information
    Delivering to channel: Adapter_Name
    Information
    MP: processing local module localejbs/CallSapAdapter
    Information
    Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    Information
    JDBC Adapter Receiver Channel Adapter_Name: Processing started; party / service BS
    Information
    Database request processed successfully
    Error
    MP: exception caught with message Ack handling failed: creation of messageFactory failed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Connection JDBC_http://sap.com/xi/XI/System is currently not started.
    Error
    Exception caught by adapter framework: Ack handling failed: creation of messageFactory failed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Connection JDBC_http://sap.com/xi/XI/System is currently not started.
    Error
    Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Ack handling failed: creation of messageFactory failed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Connection JDBC_http://sap.com/xi/XI/System is currently not started.
    Information
    Message status set to WAIT
    Information
    The asynchronous message was successfully scheduled to be delivered at ...
    Information
    Message status set to TBDL
    Information
    Retrying to deliver message to the application. Retry: 1
    Information
    The message was successfully retrieved from the receive queue
    Information
    Message status set to DLNG
    Information
    Delivering to channel: Adapter_Name
    Information
    MP: processing local module localejbs/CallSapAdapter
    Information
    Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    Information
    JDBC Adapter Receiver Channel Adapter_Name: Processing started; party / service BS
    Error
    Unable to execute statement for table or stored procedure. 'Table' (Structure 'statement') due to com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'fields'. Cannot insert duplicate key in object 'Table'. The duplicate key value is (field values).
    Error
    JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'fields'. Cannot insert duplicate key in object 'Table'. The duplicate key value is (field values).
    Error
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'fields'. Cannot insert duplicate key in object 'Table'. The duplicate key value is (field values).
    Error
    Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'fields'. Cannot insert duplicate key in object 'Table'. The duplicate key value is (field values).
    Error
    Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'fields'. Cannot insert duplicate key in object 'Table'. The duplicate key value is (field values).
    Adapter settings:
    Maximum concurrency: 20
    Persistence: Local
    Conflict Resolution: Redo
    Advanced Mode: On
    Number of Retries of Database Transaction on SQL Error: 0
    Transaction Isolation Level: serializable

    Dear All,
    Follow the steps below to resolve the "Connection JDBC_http://sap.com/xi/XI/System is currently not started." issue:
    1. Log in to NWA
    2. Navigate to Operations -> Systems -> Start & Stop
    3. Click on Java Services tab
    4. Search  the service Service "XPI Adapter: JDBC"
    5. Select the service XPI Adapter: JDBC and click on Restart button
    With the restart of JDBC Service in NWA, the channels should start working properly
    Regards,
    Shreyansh

  • PK with TIMESTAMP causes insert unique constraint error at DST switch

    Hi,
    I have a test that inserts rows in a table that has a TIMESTAMP in its PK.
    When inserting rows that cross over the November DST change, it tries to insert these dates:
    --- Sun Nov 02 02:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EDT 2008
    This is the output of 3 different UTC dates. We can see that there are 2 x 1am, but they differ in their DST. They are really 3 different UTC dates.
    But I get this error:
    --- Expected error: ORA-00001: unique constraint (DDLTEST1.SYS_C00142622) violated
    But I can get around that error and can insert these same dates if I set my JVM to UTC. The inserts work so I suspect this to be a JDBC issue.
    I am using the Oracle Thin driver in a spring app:
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
    <property name="url" value="jdbc:oracle:thin:@localhost:db" />
    I can post the sample code but wonder if there is an obvious answer to this.
    Note that MySql had the same problem. I fixed it by specifying the UTC timezone in the connection string, like this:
    jdbc:mysql://[host]/[db]?useLegacyDatetimeCode=false&useTimezone=true&sessionVariables=time_zone='UTC'
    Any idea how to get around that problem without setting JVM to UTC ?
    Claude
    Edited by: user2678899 on 10 juin 2009 10:09
    I removed #2 work around which was wrong
    Edited by: user2678899 on 10 juin 2009 10:23

    Timur Akhmadeev wrote:
    Hi,
    I suspect this to be a JDBC issue.Nope, this is your schema design gap. It breaks the main principle of PK: to uniquely identify a row in a table always. Your PK doesn't satisfy it, since it depends on client's settings.Why is setting the JVM to UTC working ? This is the part that confuses me.
    I create the 3 dates in Eastern time, then change the JVM default to UTC: the 3 inserts work.
    I create the 3 dates in Eastern time, then leave the JVM to Eastern time , the 3rd insert gets the unique constraint error.
    To me, the PK principle is not broken: these are 3 different UTC dates.

  • Problem in Receiver JDBC Adapter

    Hello Gurus,
    I am trying SAP -> Oracle Database Scenario.
    Where i am passing Id and Email address into the Oracle.
    In Runtime workbench, Receiver JDBC adapter Channel, i am able to see that message is in Success.
    But if i am going into the Database and looking for that Record, it is not updating that record.
    I am not able to understand what is happening.
    Please help me out in this issue.
    Thanks,
    Akhil

    HI Akhil,
    I know you might have verified alll datat hat will be passing to JDBC...but may I kindly request you to confirm about the table name that was passed in the Mapping once again.
    While inserting or Updating are you using all the Key fields..that will allow you to create the unique entry..as if in case if the record is already exists then there may be problem of Indexing...of adding duplicate entry...and due to partial key fields Update statement will not work properly..
    Also verify the ORACLE  Database log...to get anymore details.
    Thanks
    Swarup

  • SAP XI JDBC Adapter

    Hi,
    I have few question and I am requesting you to answer my questions.
    1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
    2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
    I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
    3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
    I am very thankful to you in advance.
    Nagarjuna.

    Hi,
    I have few question and I am requesting you to answer my questions.
    1. What is the purpose of Program ID to specify when we configure the Sender RFC communication Channel?
    Program ID : Program ID of the registered server program. The selected program ID must uniquely describe the RFC sender channel in the configured gateway (Application Server (Gateway) and Application Server Service (Gateway) parameters). Also this program where you execute your RFC function with specified RFC destination.
    2. How to get the JDBC Driver name , connection parameters, Host and Port for the JDBC Communication channel configuration. My Basis consultant said, he has not aware this JDBC Adapter?
    I need to use JDBC Adapter for my JDBCXIFile Scenario. Please explain me the step by step procedure. Please explain me from where we need to get the above parameters and JDBC Driver already configued in XI. I need the Driver name with syntax and connection parameters, host and port.
    Host and Port for the JDBC Communication channel configuration: there are DB parameters which you are using.
    info about installation drivers for JDBC & JMS adapters
    FIRST: drivertool you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
    Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 How to Install and Configure External Drivers for JDBC & JMS AdaptersDownload attached system files (ZIP 16KB)
    SECOND:installation guiade:
    External Driver Configuration for Process Integration 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
    Tips and Tutorial for Sender JDBC Adapter
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    File-to-JDBC(Receiver JDBC)
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    3. Where we need to write the SQL Query for SELECT, INSERT, DELETE, and UPDATE in configuring the Receiver JDBC Communication channel?
    You write them in action tag in Message Mapping.
    For the details find "Document Formats for the Receiver JDBC Adapter" on help.sap.com
    BR,
    Dzmitry

  • SAX Parser Error in JDBC Adapter

    I am using a JDBC adapter to execute SQL statements during mapping runtime. However, it issues me an error regarding the SAX Parser when I have a '&' character in the SQL statement. I am not able to remove the & since it is in the database that I access and it will result to data inconsistency. I think that when the JDBC adapter of XI converts the SQL string to the XML format, it does not include the amp; string to the &, thus causing the SAX Parser to throw the error.
    Is there someway I can configure the JDBC adapter in such a way that it will replace the & with &amp;. Or is there a way to display how the JDBC adapter converts the SQL statement to its the XML representation of it?
    Thanks a lot.

    Hi,
    For this kind of situation use some unique character combination  like "#@!" for replacing "&" then parse the document and the restore the "&" later .
    For this convert the input stream into Strring and then replace the occurences of "&".
    regards.

  • Insert / delete fails on unique constraint (order problem)

    Hi dear Kodo team,
    within a transaction, we are deleting a certain jdo object. The deletion is
    undone later (within the same tx), resulting in creating a new object with
    the same contents as the deleted one (gets another oid, of course). In our
    database, there is a unique constraint on two mapped fields of this object.
    Unfortunately, kodo issues the INSERT statement before the DELETE
    statement, thus producing a unique constraint violation.
    Is there a way to influence the statement order? Is there any solution other
    than disabling / deferring this constraint?
    Thanks in advance,
    Contus

    Beside Oracle, we are using our db schema on db platforms that do not
    support deferred constraints. That's why we would like to know if there is
    a way to influence statement order without removing those constraints.
    Thanks,
    Contus
    Alex Roytman wrote:
    In general the best option is to use deferred constraints on all your FK
    and unique constraints. You still get complete referential integrity but
    do not need Kodo to order your statements for you. If you are already
    doing it but still get this error message and you are using Oracle 9.2 it
    seems to be a bug in oracle JDBC. I submitted it to oracle - they accepted
    it and supposedly working on resolution
    "contus" <[email protected]> wrote in message
    news:bulku6$qad$[email protected]..
    Hi dear Kodo team,
    within a transaction, we are deleting a certain jdo object. The deletionis
    undone later (within the same tx), resulting in creating a new object
    with the same contents as the deleted one (gets another oid, of course).
    In our database, there is a unique constraint on two mapped fields of
    thisobject.
    Unfortunately, kodo issues the INSERT statement before the DELETE
    statement, thus producing a unique constraint violation.
    Is there a way to influence the statement order? Is there any solutionother
    than disabling / deferring this constraint?
    Thanks in advance,
    Contus

  • TopLink inserts when it should update, unique constraint exception

    The title says most of it. I am creating a series of objects and then updating them in rapid succession. It would be great to handle all the values during the insert, but it's not possible for this process. The majority of the time, the cached object is updated correctly and no problem occurs, but every once in a while TopLink tries to re-insert the previously inserted object, instead of updating it. Obviously this throws a unique constraint exception for the PK, and boots me out of the process.
    I can refreshObject and then it works fine. I'm looking for the underlying cause though. I want to be able to use the cache!
    Thanks!!
    Aaron
    Oracle JDBC driver Version: 10.2.0.3.0
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    TopLink Release-Designation: 10g Release 3

    Hello,
    How are you obtaining these objects to update them? The likely cause is that you are running out of memory and the objects in the shared identity map are getting garbage collected due to weak references. This means that when they get registered, TopLink can't find them in the cache so assumes they are new (the default existence check is check cache).
    If this is the case, there are a few options.
    1) Increase the size of the cache for the class in question to something more appropriate for your application, or use a fullIdentyMap so nothing ever gets pushed out. Of course, a FullIdentityMap should not be used lightly as it prevents its objects from beign gc'd and has consequences to related objects as described in:
    Caching Causing Memory Leak Effect
    Both these options will require more memory resources though, so if garbage collection is running and clearing out the references because you are already low on memory, this might make GC need to run more frequently
    2) Increase the JVM memory. This assumes completely that GC is clearing out the unused weak references from your cache because it is low on memory - GC can still occur so it doesn't guarantee the problem will be any better
    3) Read in the object through the UnitofWork before making changes (instead of using RegisterObject on existing objects), use the registerExistingObject for known existing objects or use the uow mergeClone method. Merge should cause the object to be read from the database if it is not in the cache, but it depends on the existence options used
    Best Regards,
    Chris

  • Getting unique constraint error when creating a logical schema

    Hi All,,
    I'm creating the logical schema and i'm getting the following error.
    to give you more clear picture on this....
    we are having the application called "DTA" in planning and i was able to set up as a data server with the same name both in essbase and planning....we got a naming issue and deleted the dataserver from essbase and trying to creat it back and i'm having the issue..
    FYI...i was able to create data server for the other application successful both in planning and essbase without any issues...
    java.sql.SQLException: ORA-00001: unique constraint (HYPODIMD.AK_LSCHEMA) violated
    java.sql.SQLException: ORA-00001: unique constraint (HYPODIMD.AK_LSCHEMA) violated
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.generated.GeneratedSnpLschema.insertAction(GeneratedSnpLschema.java)
         at com.sunopsis.dwg.DwgObject.insert(DwgObject.java)
         at com.sunopsis.dwg.DwgObject.insert(DwgObject.java)
         at com.sunopsis.graphical.frame.b.jt.cy(jt.java)
         at com.sunopsis.graphical.frame.bp.cB(bp.java)
         at com.sunopsis.graphical.frame.bp.bG(bp.java)
         at com.sunopsis.graphical.frame.b.jt.bG(jt.java)
         at com.sunopsis.graphical.frame.bo.q(bo.java)
         at com.sunopsis.graphical.frame.bo.bu(bo.java)
         at com.sunopsis.graphical.frame.bo.y(bo.java)
         at com.sunopsis.graphical.frame.bo.b(bo.java)
         at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Plz advise..
    Thanks in advance

    I don't have two logical schema's with one name.
    In general i had one more planning app called DFR. for this i created a physical/logical schema as planning.dfr for planning.
    And for essbase essbase.dfr and this is working well wn i'm trying to create for DTA it is giving the error which i mentioned.
    Plz Let me know your thoughts
    -K-

  • Unique constraint under hibernate

    Hello,
    I'm trying to run a java junit test in Eclipse.
    The test first inserts a few rows in different tables.
    But it gives an exception with an Oracle message.
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
         at com.ericsson.pii.dataaccessor.AccessDaoHibernateImplSpringTest.testAggregateSingleAccesses(AccessDaoHibernateImplSpringTest.java:74)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (PIIUSER_JUNIT.SYS_C009305) violated
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:342)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698)
         at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
         ... 24 more
    Here is the test source code:
              Transaction transaction = session.beginTransaction();
              Document d1 = ObjectMother.createSimpleDocument("d1", "a", "EN", documentDao);
              Document d2 = ObjectMother.createSimpleDocument("d2", "a", "EN", documentDao);
              ObjectMother.createAccess(accessDao, d1, DateUtil.createOneSpecificDay(2006, Calendar.AUGUST, 4, 10, 0, 0).getTime());
              ObjectMother.createAccess(accessDao, d1, DateUtil.createOneSpecificDay(2006, Calendar.AUGUST, 4, 10, 10, 0).getTime());
              ObjectMother.createAccess(accessDao, d1, DateUtil.createOneSpecificDay(2006, Calendar.AUGUST, 5, 10, 10, 0).getTime());
              ObjectMother.createAccess(accessDao, d2, DateUtil.createOneSpecificDay(2006, Calendar.AUGUST, 5, 10, 10, 0).getTime());
              ObjectMother.createAccess(accessDao, d2, DateUtil.createOneSpecificDay(2006, Calendar.AUGUST, 6, 10, 10, 0).getTime());
              transaction.commit();
    The exception message points to the transaction.commit();
    line.
    I'm in the dark and my search light is dying on me..
    Stephane

    And here is the verbose output in the Eclipse console:
    16:06:38,560 ERROR SchemaExport:272 - Unsuccessful: create table document (id number(19,0) not null, title varchar2(255 char), updateDate timestamp, archive varchar2(255 char), channel varchar2(255 char), documentNumber varchar2(255 char), revision varchar2(255 char), language varchar2(255 char), format varchar2(255 char), informationType varchar2(255 char), preparedBy varchar2(255 char), securityClass varchar2(255 char), sizeInBytes number(19,0), category varchar2(255 char), createDate timestamp, deleteDate timestamp, test number(1,0), accessClass varchar2(255 char), in1095 number(1,0), inDocNumber number(1,0), inDocPlan number(1,0), inFind number(1,0), piiAddDate timestamp, accesses30days number(10,0), documentUrl varchar2(255 char), accessesToTime timestamp, primary key (id))
    16:06:38,563 ERROR SchemaExport:273 - ORA-00955: name is already used by an existing object
    16:06:39,041 ERROR SchemaExport:272 - Unsuccessful: create table usage (id number(19,0) not null, document_id number(19,0), fromTime timestamp, toTime timestamp, type varchar2(255 char), count number(10,0), primary key (id))
    16:06:39,042 ERROR SchemaExport:273 - ORA-00955: name is already used by an existing object
    16:06:39,067 ERROR SchemaExport:272 - Unsuccessful: create index doc_no_rev_lang_index on document (documentNumber, revision, language)
    16:06:39,068 ERROR SchemaExport:273 - ORA-00955: name is already used by an existing object
    16:06:39,185 ERROR SchemaExport:272 - Unsuccessful: create index prevent_duplicates on usage (document_id)
    16:06:39,186 ERROR SchemaExport:273 - ORA-00054: resource busy and acquire with NOWAIT specified
    16:06:39,189 ERROR SchemaExport:272 - Unsuccessful: alter table usage add constraint FK6A67DA17CED002B foreign key (document_id) references document
    16:06:39,189 ERROR SchemaExport:273 - ORA-02275: such a referential constraint already exists in the table
    Hibernate: select relationty0_.id as id4_, relationty0_.name as name4_, relationty0_.distance as distance4_ from relation_type relationty0_
    Hibernate: insert into relation_type (name, distance, id) values (?, ?, ?)
    Hibernate: insert into relation_type (name, distance, id) values (?, ?, ?)
    Hibernate: insert into relation_type (name, distance, id) values (?, ?, ?)
    Hibernate: insert into relation_type (name, distance, id) values (?, ?, ?)
    Hibernate: insert into relation_type (name, distance, id) values (?, ?, ?)
    Hibernate: select hibernate_sequence.nextval from dual
    Hibernate: insert into document (title, updateDate, archive, channel, documentNumber, revision, language, format, informationType, preparedBy, securityClass, sizeInBytes, category, createDate, deleteDate, test, accessClass, in1095, inDocNumber, inDocPlan, inFind, piiAddDate, accesses30days, documentUrl, accessesToTime, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
    16:06:39,843 WARN JDBCExceptionReporter:71 - SQL Error: 1, SQLState: 23000
    16:06:39,844 ERROR JDBCExceptionReporter:72 - ORA-00001: unique constraint (PIIUSER_JUNIT.SYS_C009305) violated
    16:06:39,844 WARN JDBCExceptionReporter:71 - SQL Error: 1, SQLState: 23000
    16:06:39,845 ERROR JDBCExceptionReporter:72 - ORA-00001: unique constraint (PIIUSER_JUNIT.SYS_C009305) violated
    16:06:39,847 ERROR AbstractFlushingEventListener:300 - Could not synchronize database state with session
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
         at com.ericsson.pii.dataaccessor.AccessDaoHibernateImplSpringTest.testAggregateSingleAccesses(AccessDaoHibernateImplSpringTest.java:74)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (PIIUSER_JUNIT.SYS_C009305) violated
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:342)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698)
         at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
         ... 24 more

  • IS_BLOCKDATA - Unique Constraint

    Hello,
    I am facing below error while bootstrap after isreset. Any idea what could be going wrong?
    Caused By: com.interlacesystems.jdbc.ISSQLException: ORA-00001: unique constraint (IOP_INSTANCE11.SYS_C00139113) violated
            Error code: 1
            SQL State: 23000
            Statement: INSERT INTO IS_BLOCKDATA VALUES (25860,TRUE,7,0,2,<VAR>)
            Original SQL: INSERT INTO IS_BLOCKDATA VALUES (?,?,?,?,?,?)
            at com.interlacesystems.jdbc.SQLExceptionHandler.convertException(Unknown Source)
            at com.interlacesystems.jdbc.PreparedStatementWrapper.convertException(Unknown Source)
            at com.interlacesystems.jdbc.PreparedStatementWrapper.executeUpdate(Unknown Source)
            at com.interlacesystems.data.BlockDataAccess.insert(BlockDataAccess.java:273)
            at com.interlacesystems.data.SharedBlockData.insert(SharedBlockData.java:621)Thanks,
    Sumant

    Please review the data you are loading in dimensions for duplication.
    Also review the row source keys and see you are not loading the duplicate records into the row sources which are mapped to cubes.

Maybe you are looking for

  • Won't print in color from my Mac or iPhoto to HP designjet 500ps

    Won't print in color from my Mac or iPhoto to HP designjet 500ps

  • Cost Center value

    Hi all Can any one  explain me one thing in same connection of cost center At what time cost is captured at cost center in the below flow, please correct me if I am wrong At the time of GR Material A/C Dr To GR/IR At the time of IR GR/IR Ac Dr To ven

  • SXMB_MONI Error - transportation lane related

    I have transferred a PO from R/3 to SNC but I am getting an error in SXMB_MONI. It says 'ShipFromLocation could not be determined from transp. lane'. All products on the PO are present in the transportation lane. Yet the error message says 'Transport

  • ATG Configuration error

    I have Installed ATG 10.0.3 in my machine. While configuring Instance Manager of ATG I have completed the three steps of Database Configuration, Product Selection - Done (ATG Platform and Content Administration), Select Application Server - Done (JBo

  • Solaris

    Will the Iomega 250 zip run on Solaris?