Duplicate Keys

Hi,
i have a question: Because of same Problems with replication, i had to apply again some replicated trailfiles.
It worked fine, some duplicate have been written to the discardfile, but this has been the expected result.
My Question: In such a case where i EXPECT duplicate keys in the replicat process, it would be great to configure the replicat
so that it just skips duplicate entries without writing them to the discard file, because an 'abbend' happens if the discardfile becomes too
big.
So, is it possible to configure the replcat that it just ignores duplicate entries without writing them to the discard-file ?
Regards, Felix

Felix,
you might use HANDLECOLLISIONS parameter. Please have a look at the Orcle Support note: What Does The HANDLECOLLISIONS Parameter Do? [ID 966207.1] for more details.
Thanks,
Klaus

Similar Messages

  • Error in Executing a Interface -- Index Duplicate Keys

    Hi All,
    I ran my Interface 2 times , it was working fine..... but after that when I ran I got these Error...where I am doing the mistake.............
    KM I used :
    LKM SQL to ORACLE
    IKM ORACLE INCREEMENTAL UPDATE
    CKM ORACLE
    The Step I am getting this Error is : Create Unique Index on Flow Table
    1452 : 72000 : java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
         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.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Thanks
    AK
    Message was edited by:
    Ananda

    Hi Anand-
    This is completely data issue, when executing the unique index step it will create unique index with the column name you mentioned.
    When you ran the first two loads there was no duplicate keys found in the data that's why you didn't get the error but the third run you got the problem.
    Check your data records and made changes in the KM as Bouch told if you don't want to create unique index.
    Thanks & Regards,
    Saravanan Rajavel

  • Db adaptor for insert- SQLException: [SQL0803] Duplicate key value specified

    While invoking db adaptor for insert on table 1 selecting values form another table, i am gtting error ; before3 insert i am updating table 2nd using db adaptor
    QUERY insert into CRPDTA.F5504579 (SELECT * FROM CRPDTA.F5504571 WHERE PAHDC=#v_updatedRecord_HDC)
    Error :
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert_Ledger_F5504579' failed due to: Pure SQL Exception. Pure SQL Execute of insert into CRPDTA.F5504579 (SELECT * FROM CRPDTA.F5504571 WHERE PAHDC=?) failed. Caused by java.sql.SQLException: [SQL0803] Duplicate key value specified.. The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "--803" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>[SQL0803] Duplicate key value specified.</detail></part><part name="code"><code>-803</code></part></bindingFault></bpelFault>
    Please suggest....

    Easter1976 wrote:
    Hi please can you help me. I think I am having problems with tranactions. I am deleting from a table and then inserting in the same table with the same key that I have just deleted. Simple then - don't do that. It suggests a flaw in the design. Either use a new key or do an update.
    Note that you would get a duplicate key error if the table is set up such that it doesn't
    actually delete but doesn't something such as creating a log entry with a delete flag set.

  • BizTalk 2006 Event Log Warnings - Cannot insert duplicate key row in object 'dta_MessageFieldValues' with unique index 'IX_MessageFieldValues'.

    We have been seeing the following 'warnings' in the event log of our BizTalk machine since upgrading to BTS 2006. They seem to occur randomly 6 or 8 times per day.
    Does anyone know what this means and what needs to be done to clear it up? we have only one BizTalk server which is running on only one machine.
    I am new to BizTalk, so I am unable to find how many tracking host instances running for BizTalk server. Also, can you please let me know that we can configure only one instance for one server/machine?
    Source: BAM EventBus Service
    Event: 5
    Warning Details: Execute batch error. Exception information: TDDS failed to batch execution of streams. SQLServer: bizprod, Database: BizTalkDTADb.Cannot insert duplicate key row in object 'dta_MessageFieldValues'
    with unique index 'IX_MessageFieldValues'. The statement has been terminated..

    Other than ensuring that there exists a separate and single tracking host instance, you're getting an error about duplicate keys.. which implies that you're trying to Create a BAM Activity twice with the same data.
    I suggest you have a in-depth examination of the BAM (TPE or API) associated with the orchestration. In TPE ensure that the first binding you select is the "Instance Id" or "Message Id" before going ahead to map the ports or others.
    Regards.

  • The record has duplicate key values - "Include in Unique Index" checkbox missing

    I have a Silverlight client app that I'm developing in Lightswitch in VS2013 Ultimate Update 1, and have run into a problem when adding records.
    I am working against an external SQL Server 2008 database, and the table in question only has the primary key constraint, meaning that the ID field is an identity field, set as the primary key.
    When I try and add records to the table from the app, I get an error "The Shiur record has duplicate key values." This seems to happen when I add a row that has the same Speaker as an existing one. If I add one with a new Speaker then
    it inserts OK.
    Whilst searching for information on this error, I saw many comments around about there being a problem in earlier releases with the "Include in Unique Index" not working properly. This looked like my problem, except for two points...
    1) This table doesn't have anything in a unique index (as far as I know), as I never set it up to have any. You can see the details here...
    This looks to me like there is only the one index, which is the primary key one.
    2) The "Include in Unique Index" checkbox doesn't appear on my Properties panel at all. If I open the table in the designer, then click in the Speaker row, I don't see "Include in Unique Index" at all...
    Actually, I don't see "Include in Unique Index" at all, irrespective of what I click. It's just not there.
    So, I don't seem to have a unqiue constraint to violate, and VS doesn't show me the "Include in Unique Index" to allow me to check this, but I still get the error on insert. Anyone any ideas what's going on here?
    Thanks
    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
    Download from the Visual Studio Gallery.
    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
    http://dotnetwhatnot.pixata.co.uk/

    Hi Alan,
    'Include in Unique Index' is for intrinsic database entity properties.
    Ah, that explains why I can't see it then :)
    Is LightSwitch or SQL throwing the error?
    Ah, you're a genius! Well, not quite, but your question led me to the answer.
    For some odd reason, the primary key fields on my tables seem to have lost their identity setting, so when it tried to insert a new record, the ID wasn't automatically increased, so was going in as zero. This worked fine for the first insert, as there wasn't
    a record with zero ID, but failed for the second.
    Changed the ID fields to be identity, and all works fine now :)
    Thanks very much.
    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
    Download from the Visual Studio Gallery.
    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
    http://dotnetwhatnot.pixata.co.uk/

  • Inbound IDOC processing, error duplicate key

    We want to retrieve certain order-idocs in our system, before they are processed, to change AND insert segment data.
    Flow we use in our current program
    - DOC_STATUS_WRITE_TO_DATABASE
    to change the status of the idoc (ok) (status 69)
    - EDI_DOCUMENT_OPEN_FOR_EDIT (ok)
    - EDI_CHANGE_DATA_SEGMENTS (ok)
    - EDI_DOCUMENT_CLOSE_EDIT => not ok
    This program gives SAPSQL error
    Via debugging, we see that a new idoc number is
    called (save as backup idoc ?), but we want the
    current IDOC to be processed.
    The system wants to insert in EDID4 => dump :
    "Use an ABAP/4 Open SQL array insert only if you
    are sure that none of the records passed already
    exists in the database."
    ( I prefer to use these standard functions, in stead of just deleting and inserting into "EDID4" )
    regards,
    answers will be rewarded.
    code extract
    INCLUDE ZBE01458_TOP.
    INITIALIZATION.
    V_EDIT_STATUS = '69'.
    V_PROCESSED_STATUS = '32'.
    start-of-selection.
    clear t_edidc. refresh t_edidc.
    SELECT * FROM EDIDC into table t_edidc
    WHERE DOCNUM in S_docnum
    and mestyp in S_mestyp
    and idoctp in S_idoctp
    and credat in S_credat
    and rcvpor in S_rcvpor
    and rcvprt in S_rcvprt
    and rcvprn in S_rcvprn
    and sndpor in S_sndpor
    and sndprt in S_sndprt
    and sndprn in S_sndprn
    and status in S_status.
    loop at t_edidc.
    move t_edidc-docnum to v_docnum.
    refresh v_status.
    V_STATUS-docnum = V_DOCNUM.
    V_STATUS-status = V_EDIT_STATUS.
    clear EDIDS.
    select single * from EDIDS where docnum = v_docnum.
    if sy-subrc = 0.
    MOVE EDIDS-STACOD to V_STATUS-STACOD.
    endif .
    APPEND V_STATUS.
    PERFORM CHANGE_IDOC_STATUS tables V_STATUS USING V_DOCNUM.
    changing part for DEDIDD "idoc data
    PERFORM OPEN_IDOC_FOR_CHANGE.
    PERFORM CHANGE_IDOC.
    PERFORM CLOSE_IDOC_FOR_CHANGE.
    refresh v_status.
    V_STATUS-docnum = V_DOCNUM.
    V_STATUS-status = V_PROCESSED_STATUS.
    APPEND V_STATUS.
    PERFORM CHANGE_IDOC_STATUS tables V_STATUS
    USING V_DOCNUM.
    endloop.
    *& Form OPEN_IDOC_FOR_CHANGE
    text
    --> p1 text
    <-- p2 text
    FORM OPEN_IDOC_FOR_CHANGE.
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
    EXPORTING
    DOCUMENT_NUMBER = V_DOCNUM
    ALREADY_OPEN = 'N'
    IMPORTING
    IDOC_CONTROL =
    TABLES
    IDOC_DATA = DEDIDD
    EXCEPTIONS
    DOCUMENT_FOREIGN_LOCK = 1
    DOCUMENT_NOT_EXIST = 2
    DOCUMENT_NOT_OPEN = 3
    STATUS_IS_UNABLE_FOR_CHANGING = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " OPEN_IDOC_FOR_CHANGE
    *& Form CHANGE_IDOC
    text
    --> p1 text
    <-- p2 text
    FORM CHANGE_IDOC.
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
    TABLES
    IDOC_CHANGED_DATA_RANGE = DEDIDD
    EXCEPTIONS
    IDOC_NOT_OPEN = 1
    DATA_RECORD_NOT_EXIST = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " CHANGE_IDOC
    *& Form CLOSE_IDOC_FOR_CHANGE
    text
    --> p1 text
    <-- p2 text
    FORM CLOSE_IDOC_FOR_CHANGE.
    CLEAR t_EDI_DS40.
    t_edi_ds40-docnum = v_docnum.
    t_edi_ds40-status = '51'.
    t_edi_ds40-repid = sy-repid.
    t_edi_ds40-tabnam = 'EDI_DS'.
    t_edi_ds40-mandt = sy-mandt.
    t_edi_ds40-stamqu = 'SAP'.
    t_edi_ds40-stamid = 'B1'.
    t_edi_ds40-stamno = '999'.
    t_edi_ds40-stapa1 = 'Changes made to idoc ...'.
    t_edi_ds40-stapa2 = t_new_kunnr.
    t_edi_ds40-logdat = sy-datum.
    t_edi_ds40-logtim = sy-uzeit.
    APPEND t_edi_ds40.
    CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
    EXPORTING
    DOCUMENT_NUMBER = V_DOCNUM
    DO_COMMIT = 'X'
    DO_UPDATE = 'X'
    WRITE_ALL_STATUS = 'X'
    TABLES
    STATUS_RECORDS = t_EDI_DS40
    EXCEPTIONS
    IDOC_NOT_OPEN = 1
    DB_ERROR = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " CLOSE_IDOC_FOR_CHANGE
    *& Form CHANGE_IDOC_STATUS
    text
    --> p1 text
    <-- p2 text
    FORM CHANGE_IDOC_STATUS tables P_IDOC_STATUS structure V_IDOC_STATUS
    USING P_DOCNUM.
    CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
    EXPORTING
    IDOC_NUMBER = p_docnum
    IDOC_OPENED_FLAG = ' '
    NO_DEQUEUE_FLAG = 'X'
    IMPORTING
    IDOC_CONTROL =
    TABLES
    IDOC_STATUS = P_IDOC_STATUS
    EXCEPTIONS
    IDOC_FOREIGN_LOCK = 1
    IDOC_NOT_FOUND = 2
    IDOC_STATUS_RECORDS_EMPTY = 3
    IDOC_STATUS_INVALID = 4
    DB_ERROR = 5
    OTHERS = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    commit work.
    ENDIF.
    ENDFORM. " CHANGE_IDOC_STATUS

    Urmila,
    I tried this sequence : code extract follows...
    I got the duplicate key errors again.
    what about delete first and then insert again in EDID4 table ?
    source code extract:
    INCLUDE ZBE01458_TOP.
    INITIALIZATION.
      V_EDIT_STATUS = '69'.
      V_PROCESSED_STATUS = '32'.
      V_SAPCODE = 'SAPE0184'.
    start-of-selection.
      clear t_edidc. refresh t_edidc.
      SELECT  * FROM  EDIDC into table t_edidc
             WHERE  DOCNUM  in S_docnum
               and  mestyp  in S_mestyp
               and  idoctp  in S_idoctp
               and  credat  in S_credat
               and  rcvpor  in S_rcvpor
               and  rcvprt  in S_rcvprt
               and  rcvprn  in S_rcvprn
               and  sndpor  in S_sndpor
               and  sndprt  in S_sndprt
               and  sndprn  in S_sndprn
               and  status  in S_status.
      loop at t_edidc.
        move t_edidc-docnum to v_docnum.
        move-corresponding T_EDIDC to WA_EDIDC.
        V_STA-docnum      = v_docnum.
        V_STA-status      = '51'.
        V_STA-repid       = sy-repid.
        V_STA-tabnam      = 'EDI_DS'.
        V_STA-mandt       = sy-mandt.
        V_STA-stamqu      = 'SAP'.
        V_STA-stamid      = 'B1'.
        V_STA-stamno      = '999'.
        V_STA-stapa1      = 'Changes made to idoc ...'.
    t_edi_ds40-stapa2      = t_new_kunnr.
        V_STA-logdat      = sy-datum.
        V_STA-logtim      = sy-uzeit.
        V_STA-STACOD       =  V_SAPCODE.
        PERFORM OPEN_FOR_PROCESS.
        PERFORM SET_IDOC_STATUS USING V_DOCNUM V_STA.
        PERFORM CLOSE_IDOC_FOR_PROCESS.
        PERFORM OPEN_IDOC_FOR_CHANGE.
        PERFORM PROCESS_IDOC_STRUCTURE.
        PERFORM CHANGE_IDOC.
        PERFORM CLOSE_IDOC_FOR_CHANGE.
       refresh v_status.
       V_STATUS-docnum = V_DOCNUM.
       V_STATUS-status = V_EDIT_STATUS.
       V_STATUS-STACOD = V_SAPCODE.
       clear EDIDS.
       select single * from EDIDS where docnum = v_docnum.
       if sy-subrc = 0.
        MOVE EDIDS-STACOD to V_STATUS-STACOD.
       endif .
       APPEND V_STATUS.
       PERFORM CHANGE_IDOC_STATUS tables V_STATUS USING  V_DOCNUM.
      endloop.
    *&      Form  OPEN_IDOC_FOR_CHANGE
          text
    -->  p1        text
    <--  p2        text
    FORM OPEN_IDOC_FOR_CHANGE.
      CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
       EXPORTING
         DOCUMENT_NUMBER                     = V_DOCNUM
      ALREADY_OPEN                        = 'N'
    IMPORTING
       IDOC_CONTROL                        = WA_EDIDC
       TABLES
         IDOC_DATA                           = DEDIDD
      EXCEPTIONS
        DOCUMENT_FOREIGN_LOCK               = 1
        DOCUMENT_NOT_EXIST                  = 2
        DOCUMENT_NOT_OPEN                   = 3
        STATUS_IS_UNABLE_FOR_CHANGING       = 4
        OTHERS                              = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " OPEN_IDOC_FOR_CHANGE
    *&      Form  CHANGE_IDOC
          text
    -->  p1        text
    <--  p2        text
    FORM CHANGE_IDOC.
      CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
           TABLES
                IDOC_CHANGED_DATA_RANGE = DEDIDD
           EXCEPTIONS
                IDOC_NOT_OPEN           = 1
                DATA_RECORD_NOT_EXIST   = 2
                OTHERS                  = 3.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " CHANGE_IDOC
    *&      Form  CLOSE_IDOC_FOR_CHANGE
          text
    -->  p1        text
    <--  p2        text
    FORM CLOSE_IDOC_FOR_CHANGE.
      CLEAR t_EDI_DS40.
      t_edi_ds40-docnum      = v_docnum.
      t_edi_ds40-status      = '69'.
      t_edi_ds40-repid       = sy-repid.
      t_edi_ds40-tabnam      = 'EDI_DS'.
      t_edi_ds40-mandt       = sy-mandt.
      t_edi_ds40-stamqu      = 'SAP'.
      t_edi_ds40-stamid      = 'B1'.
      t_edi_ds40-stamno      = '999'.
      t_edi_ds40-stapa1      = 'Changes made to idoc ...'.
    t_edi_ds40-stapa2      = t_new_kunnr.
      t_edi_ds40-logdat      = sy-datum.
      t_edi_ds40-logtim      = sy-uzeit.
      APPEND t_edi_ds40.
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
           EXPORTING
                DOCUMENT_NUMBER  = V_DOCNUM
                DO_COMMIT        = 'X'
                DO_UPDATE        = 'X'
                WRITE_ALL_STATUS = 'X'
           TABLES
                STATUS_RECORDS   = t_EDI_DS40
           EXCEPTIONS
                IDOC_NOT_OPEN    = 1
                DB_ERROR         = 2
                OTHERS           = 3.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " CLOSE_IDOC_FOR_CHANGE
    *&      Form  CHANGE_IDOC_STATUS
          text
    -->  p1        text
    <--  p2        text
    FORM CHANGE_IDOC_STATUS tables P_IDOC_STATUS structure V_IDOC_STATUS
    USING P_DOCNUM.
      CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
    EXPORTING
      IDOC_NUMBER                     = p_docnum
            IDOC_OPENED_FLAG                = ' '
            NO_DEQUEUE_FLAG                 = 'X'
          IMPORTING
            IDOC_CONTROL                    =
    TABLES
      IDOC_STATUS                     = P_IDOC_STATUS
          EXCEPTIONS
            IDOC_FOREIGN_LOCK               = 1
            IDOC_NOT_FOUND                  = 2
            IDOC_STATUS_RECORDS_EMPTY       = 3
            IDOC_STATUS_INVALID             = 4
            DB_ERROR                        = 5
            OTHERS                          = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      else.
        commit work.
      ENDIF.
    ENDFORM.                    " CHANGE_IDOC_STATUS
    *&      Form  OPEN_FOR_PROCESS
          text
    -->  p1        text
    <--  p2        text
    FORM OPEN_FOR_PROCESS.
      CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_PROCESS'
        EXPORTING
      DB_READ_OPTION                 = DB_READ
          DOCUMENT_NUMBER                = V_DOCNUM
      ENQUEUE_OPTION                 = SYNCHRONOUS
    IMPORTING
       IDOC_CONTROL                   = WA_EDIDC
    EXCEPTIONS
      DOCUMENT_FOREIGN_LOCK          = 1
      DOCUMENT_NOT_EXIST             = 2
      DOCUMENT_NUMBER_INVALID        = 3
      DOCUMENT_IS_ALREADY_OPEN       = 4
      OTHERS                         = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " OPEN_FOR_PROCESS
    *&      Form  SET_IDOC_STATUS
          text
    -->  p1        text
    <--  p2        text
    FORM SET_IDOC_STATUS USING P_DOCNUM P_STA.
      CALL FUNCTION 'EDI_DOCUMENT_STATUS_SET'
        EXPORTING
          DOCUMENT_NUMBER               = P_DOCNUM
          IDOC_STATUS                   = P_STA
    IMPORTING
       IDOC_CONTROL                  = WA_EDIDC
    EXCEPTIONS
      DOCUMENT_NUMBER_INVALID       = 1
      OTHER_FIELDS_INVALID          = 2
      STATUS_INVALID                = 3
      OTHERS                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SET_IDOC_STATUS
    *&      Form  CLOSE_IDOC_FOR_PROCESS
          text
    -->  p1        text
    <--  p2        text
    FORM CLOSE_IDOC_FOR_PROCESS.
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_PROCESS'
        EXPORTING
          DOCUMENT_NUMBER           = V_DOCNUM
      BACKGROUND                = NO_BACKGROUND
      NO_DEQUEUE                = ' '
    IMPORTING
       IDOC_CONTROL              = WA_EDIDC
    EXCEPTIONS
      DOCUMENT_NOT_OPEN         = 1
      FAILURE_IN_DB_WRITE       = 2
      PARAMETER_ERROR           = 3
      STATUS_SET_MISSING        = 4
      OTHERS                    = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " CLOSE_IDOC_FOR_PROCESS

  • Duplicate message and Duplicate key error in Moni and RWB

    Hi,
    I am getting very frequent issues of Duplicate messages in production system moni and RWB.
    Moni error: (IDOC to JMS) Errors are coming in call adapter step:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message 005056aa-730e-1ed4-a6c9-a01ee2b86cb3(INBOUND) into duplicate check table. Reason: com.sap.sql.exception.OpenSQLException: Connection reset by peer: socket write error OpenSQLExceptionCategories: [RECOVERABLE]
    RWB error: (File toIdoc) Errors are coming in sender channel.
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id a6d559cf-b00c-11e4-b786-00000daf354a(OUTBOUND) already exists in duplicate check table: com.sap.sql.exception.OpenSQLIntegrityConstraintViolationException: Violation of PRIMARY KEY constraint 'PK__BC_MSG_D__99C1915D3DE9247A'. Cannot insert duplicate key in object 'SAPPGXDB.BC_MSG_DUP_CHECK'. The duplicate key value is (a6d559cf-b00c-11e4-b786-00000daf354a, OUTBOUND). OpenSQLExceptionCategories: [NON_TRANSIENT, INTEGRITY_CONSTRAINT_VIOLATION
    Moni errors are manually reprocessed and RWB are automatic.
    Can you please let me know if there is any solution available for these issues?
    Thanks
    Navneet.

    I'm getting the same issue at my current client:-
    Putting message into send queue failed, due to: com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id e1d4a31b-f0cc-11e4-c7fb-0000029706f7(OUTBOUND) already exists in duplicate check table: com.sap.sql.exception.OpenSQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00188646) violated OpenSQLExceptionCategories: [NON_TRANSIENT, INTEGRITY_CONSTRAINT_VIOLATION]
    I've tried restarting the SOAP channel but this has not resolved the problem.
    Just read on another thread that this may be a misleading error message (see last post on the link). It may be an idea to increase the trace level temporarily and look for any other issues that may be the cause.
    So far I've not seen any post that describes the error on the SOAP channel - only seeing it for JDBC & File. However it seems to be a common problem across a number of sender channels.

  • Getting duplicate key Exception in java server faces

    I am getting duplicate key exception at some places in my JSF page .I have done the debugging of the java code but I didn�t find any error in the code. Problem is occurring at the time of rendering the JSF page. I have done R&D on that but I am unable to find the solution. When JSF is rendering �qualPersonResultTable� in the page at that time I am getting Exception. I have visited the number of firm those were suggesting to assign the �ID� to all the component in the JSF which I have done but still I am getting the same error. In the database all the value are unique are there is primary key so there is only problem in rendering the JSF page.Exception is as follows :
    "EXCEPTION "
    [8/28/07 16:54:52:475 IST] 31fa31fa WebGroup E SRVE0026E: [Servlet Error]-[Duplicate component ID &#39;qualificationsInc:qualificationsForm:qualPersonResultTable:_id22&#39; found in view.]: javax.servlet.jsp.JspException: Duplicate component ID 'qualificationsInc:qualificationsForm:qualPersonResultTable:_id22' found in view.
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:173)
         at org.apache.jsp._PersonQualifications._jspService(PersonQualifications.jsp :16)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:351)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:705)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:803)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1166)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:411)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:217)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter$DoFilterAction.run(AuthenticationFilter.java:111)
         at java.security.AccessController.doPrivileged(AccessController.java:260)
         at javax.security.auth.Subject.doAs(Subject.java:555)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:283)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketValidationFilter.doFilter(AuthTicketValidationFilter.java:285)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketTimestampFilter.doFilter(AuthTicketTimestampFilter.java:193)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.web.SSLFilter.doFilter(SSLFilter.java:117)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.logging.http.HttpLogFilter.doFilter(HttpLogFilter.java:92)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.logging.LoggingBaseFilter.doFilter(LoggingBaseFilter.java:58)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:300)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    ---- Begin backtrace for Nested Throwables
    java.lang.IllegalStateException: Duplicate component ID 'qualificationsInc:qualificationsForm:qualPersonResultTable:_id22' found in view.
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:134)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndFacets(StateManagerImpl.java:143)
         at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:72)
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:171)
         at org.apache.jsp._PersonQualifications._jspService(PersonQualifications.jsp :16)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:351)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:705)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:803)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1166)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:411)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:217)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.security.auth.IndAuthorizationFilter.doFilter(IndAuthorizationFilter.java:179)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter$DoFilterAction.run(AuthenticationFilter.java:111)
         at java.security.AccessController.doPrivileged(AccessController.java:260)
         at javax.security.auth.Subject.doAs(Subject.java:555)
         at com.minnesotamutual.common.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:283)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketValidationFilter.doFilter(AuthTicketValidationFilter.java:285)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.security.auth.AuthTicketTimestampFilter.doFilter(AuthTicketTimestampFilter.java:193)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.web.SSLFilter.doFilter(SSLFilter.java:117)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.common.logging.http.HttpLogFilter.doFilter(HttpLogFilter.java:92)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.minnesotamutual.individual.common.logging.LoggingBaseFilter.doFilter(LoggingBaseFilter.java:58)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:300)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    Code :
    <h:dataTable border="0" cellpadding="2" cellspacing="0"
    columnClasses="qual_prs_col_prs_name,qual_prs_col_prs_code,qual_prs_col_status,qual_prs_col_blocked,qual_prs_col_exception,qual_prs_col_frm_name,qual_prs_col_rlt"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualPersonResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="personList"
                                       binding="#{qualificationsSearchDataBean.personQualTable}"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                             <h:column id="prsTablePrsName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsNameHeading" value="Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsNameValue" value="#{personList.sle_per_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="prsTablePrsCode">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsCodeValue" value="#{personList.agt_c}" styleClass="rt_standard_data_text"
                                                 converter="AdvisorCodeConverter"/>
                             </h:column>
                             <h:column id="prsTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableQualificationValue" value="#{personList.rcg_evt_ptc_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},this.value,'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="prsTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableBlockedValue" value="#{personList.rcg_evt_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}',this.value,'#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="prsTableException">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableExceptionValue" value="#{personList.rcg_evt_exc_f}"
                                                 onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                             <h:column id="prsTableFirmName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableFirmNameHeading" value="Firm Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableFirmNameValue" styleClass="rt_standard_data_text" value="#{personList.pri_agy_rcg_fmt_n}"/>
                             </h:column>
                             <h:column id="prsTableRelationship">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableRelationshipHeading" value="Relationship" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableRelationshipValue" value="#{personList.asc_rlt_typ_des_x}" styleClass="rt_standard_data_text"/>
                             </h:column>
                        </h:dataTable>
    If any one help me in resolving this i will be thankful to him.

    Thanks for reply so fast . See the complete code below
    Complete Code :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page language="java"
              contentType="text/html; charset=ISO-8859-1"
              pageEncoding="ISO-8859-1"
    %>
    <%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@ taglib
         uri="http://www.minnesotamutual.com/individual/common/navigation"
         prefix="nav"%>
    <HEAD>
    <LINK rel="stylesheet" type="text/css" href="../../css/rt_qual.css"
         title="QUAL">
    <LINK rel="stylesheet" type="text/css" href="../../css/rt_error.css"
         title="ERROR">
    </HEAD>
    <f:subview id="qualificationsInc">
         <c:if test="${siteAvailabilityActionBean.siteMsg != null}">
              <c:import url="../Error/RTSiteWarningInc.jsp" />
              <hx:outputSeparator id="siteWarnHR" width="550" align="LEFT" />
         </c:if>
         <h:form id="qualificationsForm" style="margin: 0px;">
              <h:inputHidden id="uniqueID" value="#{qualificationsSearchDataBean.uniqueID}" />
              <h:inputHidden id="selectedQualStatus" value="#{qualificationsSearchDataBean.selectedQualStatus}" />          
              <h:inputHidden id="selectedBlockFlag" value="#{qualificationsSearchDataBean.selectedBlockFlag}" />          
              <h:inputHidden id="selectedExceptionFlag" value="#{qualificationsSearchDataBean.selectedExceptionFlag}" />     
              <h:inputHidden id ="pageSelected" value="#{qualificationsSearchDataBean.pageSelected}" />
              <h:commandButton id="searchEngineOptimization" style="width:0px;" value=""
    action="#{qualificationsSearchActionBean.gatherSearchResults}"/>
              <h:panelGrid id="persValidationErrorGrid" styleClass="panelGrid" width="550"
                        columns="2" columnClasses="vld_err_pic_col,vld_err_msg_col"
                        rendered="#{qualificationsSearchDataBean.qualificationErrorList != null}">
              <h:graphicImage value="../../Images/alert_red_icon.gif"/>
              <h:panelGroup id="persErrorMsgGroup">
                   <h:dataTable id="persErrTable" width="500" value="#{qualificationsSearchDataBean.qualificationErrorList}" var="persErr">
                        <h:column id="persMsgCol">
                             <h:outputText value="<LI>#{persErr}" escape="false" styleClass="err_attention_text"/>
                        </h:column>
                   </h:dataTable>
              </h:panelGroup>
              </h:panelGrid>
         <h:panelGrid id="selectEventTypeGrid" styleClass="panelGrid" width="550"
                        columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3" columns="3">
              <h:outputText id="eventTypeLabel" value="Event Type:"/>
              <h:selectOneMenu id="selectPersonEvent" value="#{qualificationsSearchDataBean.eventType}"
                                  rendered="#{qualificationsSearchDataBean.personQualifications}">
                   <f:selectItems value="#{recognitionListBean.personEventTypeList}"/>
              </h:selectOneMenu>
              <h:selectOneMenu id="selectFirmEvent" value="#{qualificationsSearchDataBean.eventType}"
                                  rendered="#{qualificationsSearchDataBean.firmQualifications}">
                   <f:selectItems value="#{recognitionListBean.firmEventTypeList}"/>
              </h:selectOneMenu>
              <h:commandButton id="chooseEvent" value="Select Event Type" style="width: 125px;"
                                  action="#{qualificationsSearchActionBean.selectEvent}"/>
         </h:panelGrid>
         <h:panelGroup id="specificEventGroup" rendered="#{qualificationsSearchDataBean.eventTypeSelected}">
              <hx:outputSeparator width="750" align="left"/>
              <h:panelGrid id="selectSpecificEventGrid" styleClass="panelGrid" width="550"
                             columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3" columns="3">
                   <h:outputText id="specificEventLabel" value="Specific Event:"/>
                   <h:selectOneMenu id="selectSpecificEvent" value="#{qualificationsSearchDataBean.specificEvent}">
                        <f:selectItems value="#{qualificationsSearchDataBean.recognitionEvents}"/>
                   </h:selectOneMenu>
                   <h:commandButton type="submit" id="chooseSpecificEvent" value="Select Event" style="width: 85px;"
                                       action="#{qualificationsSearchActionBean.selectSpecificEvent}"/>
              </h:panelGrid>
         </h:panelGroup>
         <h:panelGroup id="specificEventSelectedGroup" rendered="#{qualificationsSearchDataBean.specificEventSelected}">
              <hx:outputSeparator width="750" align="left"/>
              <h:panelGrid id="eventNameGrid" columns="3" width="550"
                             columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3">
                   <h:outputText id="eventNameHeading" value="Event:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="eventName" value="#{qualificationsSearchDataBean.specificEventName}" styleClass="rt_standard_data_text"/>
                   <h:outputText id="blank1" value="<BR>" escape="false"/>
                   <h:outputText id="lastUpdatedHeading" value="Last Updated:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="lastUpdated" value="#{qualificationsSearchDataBean.specificEventAsOfDate}" styleClass="rt_standard_data_text"/>
                   <h:outputText id="blank2" value="<BR>" escape="false"/>
                   <h:outputText id="lastPublishedHeading" value="Last Published:" styleClass="rt_standard_label_text" style="font-weight: bold;"/>
                   <h:outputText id="lastPublishedDate" value="#{qualificationsSearchDataBean.specificEventPublishedDate}" styleClass="rt_standard_data_text"
                                  rendered="#{qualificationsSearchDataBean.specificEventPublishedDate != null}"/>
                   <h:outputText id="lastPublishedNA" value="(Never)" styleClass="rt_standard_data_text"
                                  rendered="#{qualificationsSearchDataBean.specificEventPublishedDate == null}"/>
                   <h:commandButton id="publishButton" type="submit" value="Publish" style="width: 55px;"
                                       action="#{qualificationsSearchActionBean.publishData}"/>
              </h:panelGrid>
              <h:outputText id="break1" value="<BR>" escape="false"/>
              <h:panelGrid id="searchGrid" columns="3" width="550" columnClasses="qual_crit_col1,qual_crit_col2,qual_crit_col3">
                   <h:outputText id="searchByText" value="Search By:*" />
                   <h:selectOneMenu id="personSearchByMenu" value="#{qualificationsSearchDataBean.searchBy}"
                                       onchange="javascript: updateSearchBy(this.value);"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                        <f:selectItem itemLabel="Person Name" itemValue="Name"/>
                        <f:selectItem itemLabel="Advisor Code" itemValue="CODE"/>
                        <f:selectItem itemLabel="Qualification Status" itemValue="QualStat"/>
                        <f:selectItem itemLabel="Firm Name" itemValue="FrmName"/>
                   </h:selectOneMenu>
                   <h:selectOneMenu id="firmSearchByMenu" value="#{qualificationsSearchDataBean.searchBy}"
                                       onchange="javascript: updateSearchBy(this.value);"
                                       rendered="#{qualificationsSearchDataBean.firmQualifications}">
                        <f:selectItem itemLabel="Firm Name" itemValue="Name"/>
                        <f:selectItem itemLabel="Firm Code" itemValue="FrmCode"/>
                        <f:selectItem itemLabel="Qualification Status" itemValue="QualStat"/>
                   </h:selectOneMenu>
                   <h:outputText id="blankCol1" value=" " escape="false" />
                   <h:outputText id="searchForText" value="Search For:" />
                   <h:panelGroup id="searchForGroup">
                        <h:outputText id="dispSearchForDIV" value="<DIV id='searchForDIV' style='display:block'>" rendered="#{qualificationsSearchDataBean.searchBy != 'QualStat'}" escape="false" />
                        <h:outputText id="noDispSearchForDIV" value="<DIV id='searchForDIV' style='display:none'>" rendered="#{qualificationsSearchDataBean.searchBy == 'QualStat'}" escape="false" />
                        <h:inputText id="searchForValue" value="#{qualificationsSearchDataBean.searchFor}" size="20" />
                        <h:outputText id="endSearchForDIV" value="</DIV>" escape="false" />
                        <h:outputText id="dispSearchQualValDIV" value="<DIV id='searchQualValDIV' style='display:block'>" rendered="#{qualificationsSearchDataBean.searchBy == 'QualStat'}" escape="false" />
                        <h:outputText id="noDispSearchQualValDIV" value="<DIV id='searchQualValDIV' style='display:none'>" rendered="#{qualificationsSearchDataBean.searchBy != 'QualStat'}" escape="false" />
                        <h:selectOneMenu id="searchQualValMenu" value="#{qualificationsSearchDataBean.searchQualVal}">
                             <f:selectItem itemLabel="All" itemValue="0"/>
                             <f:selectItem itemLabel="Qualified" itemValue="3"/>
                             <f:selectItem itemLabel="Not Qualified" itemValue="1"/>
                             <f:selectItem itemLabel="On Schedule" itemValue="2"/>
                        </h:selectOneMenu>
                        <h:outputText id="endSearchQualValDIV" value="</DIV>" escape="false" />
                   </h:panelGroup>
                   <h:commandButton type="submit" id="performSearchButton" value="Search" style="width: 55px;" onclick="javascript: setFlag();"
                                       action="#{qualificationsSearchActionBean.gatherSearchResults}"/>
              </h:panelGrid>
              <h:panelGrid id="personSearchNoteGrid" width="750" rendered="#{qualificationsSearchDataBean.personQualifications}">
                   <h:outputText id="personSearchNote" value="* When searching by Person Name, Advisor Code, or Firm Name, a blank search value will return all people." />
              </h:panelGrid>
              <h:panelGrid id="firmSearchNoteGrid" width="750" rendered="#{qualificationsSearchDataBean.firmQualifications}">
                   <h:outputText id="firmSearchNote" value="* When searching by Firm Name or Firm Code, a blank search value will return all firms." />
              </h:panelGrid>
              <h:outputText id="break2" value="<BR>" escape="false"/>
              <h:panelGroup id="searchPerformedGroup" rendered="#{qualificationsSearchDataBean.searchPerformed}">
                   <h:panelGroup id="resultsReturnedGroup" rendered="#{qualificationsSearchDataBean.searchResults != null}">
                        <h:panelGrid styleClass="rt_section_heading" id="resultCountGrid" width="750" cellpadding="0">
                             <h:outputText styleClass="outputText" id="resultsText1"
                                            value="Results #{qualificationsSearchDataBean.currRecBegin} to #{qualificationsSearchDataBean.currRecEnd} of #{qualificationsSearchDataBean.totalRecords}" style="font-weight: bold"/>
                        </h:panelGrid>
                        <h:panelGrid styleClass="rt_section_heading" id="resultPagesGrid" width="750" columns="2"
                                       columnClasses="qual_page_lst_col1,qual_page_lst_col2" cellpadding="0">
                             <h:outputText id="pageCntLabel" value="Page |" style="font-weight: bold"/>
                             <h:panelGroup id="pageGroup">
                                  <c:forEach var="pageCnt" begin="1" end="${qualificationsSearchDataBean.totalPages}">
                                       <c:choose>
                                            <c:when test="${pageCnt != qualificationsSearchDataBean.pageSelected}">
                                                 <f:verbatim>');"><c:out value="${pageCnt}"/></a> </f:verbatim>
                                            </c:when>
                                            <c:otherwise>
                                                 <f:verbatim><B><c:out value="${pageCnt}"/></B> </f:verbatim>
                                            </c:otherwise>
                                       </c:choose>
                                            <c:set var="rowCount" scope="page" value="${rowCount + 1}" />
                                            <c:if test ="${pageCnt == 33 || (pageCnt > 33 && rowCount == 31)}">
                                            <f:verbatim><c:out escapeXml="false" value="<BR>"/></f:verbatim>
                                            <c:set scope="page" var="rowCount" value="0" />
                                            </c:if>
                                  </c:forEach>
                             </h:panelGroup>
                        </h:panelGrid>
                        <h:dataTable border="0" cellpadding="2" cellspacing="0"
                                       columnClasses="qual_prs_col_prs_name,qual_prs_col_prs_code,qual_prs_col_status,qual_prs_col_blocked,qual_prs_col_exception,qual_prs_col_frm_name,qual_prs_col_rlt"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualPersonResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="personList"
                                       rendered="#{qualificationsSearchDataBean.personQualifications}">
                             <h:column id="prsTablePrsName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsNameHeading" value="Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsNameValue" value="#{personList.sle_per_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="prsTablePrsCode">
                                  <f:facet name="header">
                                       <h:outputText id="prsTablePrsCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTablePrsCodeValue" value="#{personList.agt_c}" styleClass="rt_standard_data_text"
                                                 converter="AdvisorCodeConverter"/>
                             </h:column>
                             <h:column id="prsTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableQualificationValue" value="#{personList.rcg_evt_ptc_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},this.value,'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="prsTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableBlockedValue" value="#{personList.rcg_evt_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}',this.value,'#{personList.rcg_evt_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="prsTableException">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="prsTableExceptionValue" value="#{personList.rcg_evt_exc_f}"
                                                 onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.personQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{personList.sle_per_unq_i},'#{personList.sle_per_rcg_fmt_n}',#{personList.rcg_evt_ptc_sta_c},'#{personList.rcg_evt_blk_f}','#{personList.rcg_evt_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                             <h:column id="prsTableFirmName">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableFirmNameHeading" value="Firm Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableFirmNameValue" styleClass="rt_standard_data_text" value="#{personList.pri_agy_rcg_fmt_n}"/>
                             </h:column>
                             <h:column id="prsTableRelationship">
                                  <f:facet name="header">
                                       <h:outputText id="prsTableRelationshipHeading" value="Relationship" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="prsTableRelationshipValue" value="#{personList.asc_rlt_typ_des_x}" styleClass="rt_standard_data_text"/>
                             </h:column>
                        </h:dataTable>
                        <h:dataTable border="0" cellpadding="2" cellspacing="0"
                                       columnClasses="qual_frm_col_frm_name,qual_frm_col_frm_code,qual_frm_col_status,qual_frm_col_blocked,qual_frm_col_exception"
                                       headerClass="rt_panelgrid_dtsmallhdg"
                                       rowClasses="rt_list_row_odd,rt_list_row_even"
                                       styleClass="dataTable" id="qualFirmResultTable" width="750"
                                       value="#{qualificationsSearchDataBean.searchResults}" var="firmList"
                                       rendered="#{qualificationsSearchDataBean.firmQualifications}">
                             <h:column id="frmTableFrmName">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableFrmNameHeading" value="Firm Recognition Name" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="frmTableFrmNameValue" value="#{firmList.pri_agy_rcg_fmt_n}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="frmTableFrmCode">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableFrmCodeHeading" value="Code" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:outputText id="frmTableFrmCodeValue" value="#{firmList.pri_agy_c}" styleClass="rt_standard_data_text"/>
                             </h:column>
                             <h:column id="frmTableQualification">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableQualificationHeading" value="Qualification Status" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableQualificationValue" value="#{firmList.pri_agy_qual_sta_c}"
                                                      onchange="javascript: updateQualStat(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},this.value,'#{firmList.pri_agy_blk_f}','#{firmList.pri_agy_exc_f}');">
                                       <f:selectItem itemValue="1" itemLabel="Not Qualified"/>
                                       <f:selectItem itemValue="2" itemLabel="On Schedule"/>
                                       <f:selectItem itemValue="3" itemLabel="Qualified"/>
                                  </h:selectOneMenu>
                             </h:column>
                             <h:column id="frmTableBlocked">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableBlockedHeading" value="Blocked" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableBlockedValue" value="#{firmList.pri_agy_blk_f}"
                                                      onchange="javascript: updateBlockFlag(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},'#{firmList.pri_agy_blk_f}',this.value,'#{firmList.pri_agy_exc_f}');">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>                    
                             </h:column>
                             <h:column id="frmTableException">
                                  <f:facet name="header">
                                       <h:outputText id="frmTableExceptionHeading" value="Exception" styleClass="rt_table_heading_left"/>
                                  </f:facet>
                                  <h:selectOneMenu id="frmTableExceptionValue" value="#{firmList.pri_agy_exc_f}"
                                                      onchange="javascript: updateExceptionFlag(#{qualificationsSearchDataBean.firmQualTable.rowIndex},#{qualificationsSearchDataBean.personQualifications},#{qualificationsSearchDataBean.firmQualifications},#{firmList.pri_agy_unq_i},'#{firmList.pri_agy_rcg_fmt_n}',#{firmList.pri_agy_qual_sta_c},'#{firmList.pri_agy_blk_f}','#{firmList.pri_agy_exc_f}',this.value);">
                                       <f:selectItem itemValue="Y" itemLabel="Yes"/>
                                       <f:selectItem itemValue="N" itemLabel="No"/>
                                  </h:selectOneMenu>     
                             </h:column>
                        </h:dataTable>
                   </h:panelGroup>
                   <h:panelGrid id="noPersonResultsGrid" columns="1" width="550" cellpadding="0" rendered="#{qualificationsSearchDataBean.searchResults == null}">
                        <h:outputText id="noPersonResultsMessage" styleClass="rt_standard_data_text" value="No results found." />
                   </h:panelGrid>
              </h:panelGroup>
              <h:commandButton id="updateQualButton" type="submit" value="" style="width: 0px;"
                                  action="#{qualificationsSearchActionBean.updateQualData}"/>
         </h:panelGroup>
         </h:form>
    </f:subview>

  • Cannot insert duplicate key in ddm.log

    Hello,
    I have been noticing the below on many occasions:
    *** IF EXISTS (select ItemKey from DiscItemAgents where ItemKey = 278482 and DiscArchKey = 5 and AgentID = 15 and AgentSite = 'auto') update DiscItemAgents set AgentTime = '07/31/2014 16:26:11'  where ItemKey = 278482 and DiscArchKey = 5 and AgentID =
    15 and AgentSite = 'auto'~ ELSE insert into DiscItemAgents (AgentTime, ItemKey, DiscArchKey, AgentID, AgentSite) values ('07/31/2014 16:26:11', 278482, 5, 15, 'auto')
    SMS_DISCOVERY_DATA_MANAGER
    8/1/2014 5:53:01 AM 4104 (0x1008)
    *** [23000][2627][Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'DiscItemAgents_PK'.
    Cannot insert duplicate key in object 'dbo.DiscItemAgents'. The duplicate key value is (278482, 15, 5, aut).
    SMS_DISCOVERY_DATA_MANAGER 8/1/2014 5:53:01 AM
    4104 (0x1008)
    CDiscoverySource_SQL::UpdateItem - could not execute sql- IF EXISTS (select ItemKey from DiscItemAgents where ItemKey = 278482 and DiscArchKey = 5 and AgentID = 15 and AgentSite = 'auto') update DiscItemAgents set AgentTime = '07/31/2014 16:26:11'  where
    ItemKey = 278482 and DiscArchKey = 5 and AgentID = 15 and AgentSite = 'auto'~ ELSE insert into DiscItemAgents (AgentTime, ItemKey, DiscArchKey, AgentID, AgentSite) values ('07/31/2014 16:26:11', 278482, 5, 15, 'auto')
    SMS_DISCOVERY_DATA_MANAGER 8/1/2014 5:53:01 AM
    4104 (0x1008)
    CDiscoverDataManager::ProcessDDRs_PS - Unable to update data source
    SMS_DISCOVERY_DATA_MANAGER 8/1/2014 5:53:01 AM
    4104 (0x1008)
    I then ran a query in SQL based on error Cannot insert duplicate key in object 'dbo.DiscItemAgents'. The duplicate key value is (278482, 15, 5, aut) : select * from DiscItemAgents where ItemKey = '278482'
    I got the result stating that the record has AgentSite as 'aut'
    Now when I check distinct values for AgentSite column I am able to see all site code values that are present in the hierarchy.
    I, then ran a query to find the no of rows for AgentSite = 'aut'. It returned me 7 which are some client machines.
    To resolve, when I run this sql query, DDM starts working fine: Delete from DiscItemAgents where AgentSite = 'aut'
    Now I am wondering what makes a client send a DDR with SiteCode as 'aut' and not the assigned or reporting site code? How can I resolve this, without having to run the delete statement?
    Thanks
    Rajiv

    ok, We were using a custom client health solution that was creating a DDR with the site code as AUTO. The DDR process only accepts 3 digit code, which was causing the DDM to fault. Reinstalling the agent and re-configuration of the client health solution
    seems to have fixed the issue.
    Thanks, Rajiv

  • [SQL Server]Violation of PRIMARY KEY constraint 'DeploymentSummary_PK'. Cannot insert duplicate key in object 'dbo.DeploymentSummary'. The duplicate key value is

    I have migrated my SCCm 2007 environment to SCCM 2012 SP1 CU4.
    I noticed in the System Status\Component Status\SMS_STATE_SYSTEM a lot of errors like the one below:
    Microsoft SQL Server reported SQL message 2627, severity 14: [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'DeploymentSummary_PK'. Cannot insert duplicate key in object 'dbo.DeploymentSummary'. The duplicate key value is (1, 0, S0220438, 0). : spUpdateClassi
    Please refer to your Configuration Manager documentation, SQL Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    When looking up the deployment ID and recreate the Deployment the problem is solved. But I have 700 packages and don't want to manually do this action on all packages. I think it is related to the migration i did and something went wrong there :-(
    Besides it will retriggers the deployment to the clients which is also not preferred.
    Is there another way to solve this by e.e.g do something directly in the SQL database tables ?

    Hi,
    It is not supported by Microsoft that do something directly in SQL database.
    If you want to do that, you could make a call to CSS.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SSIS - "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object ' tablename '. The duplicate key value is 1234 . Though there are no duplicate records.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.
    I suspect you are trying to insert modified records instead of updating.

  • JVM issue with applet - Duplicate Key in Parameter Table - Bad Magic Number

    Hey, I have Googled this one to death and have seen a few vague references to this problem, but nothing I can relate back as solution.
    I wonder if I need to tell the customer to reinstall the OS and, ultimately, the JRE. I'm just looking for a little guidance on what any of you may think. Am I missing a setting or something?
    The user is trying to download an applet with IE with 1.3.1_16 and Firefox 1.07 with the Java Embeded Plug-in.
    Even though JRE 1.3.1_16, 1.4.2_09 and 1.5 are all installed and Firefox has the JEP also installed, Firefox still wants to use 1.3.1_16 as does IE. I'm guessing that the JEP didn't work.
    They can't use Safari which does seem to be using 1.4.2_09 because their RSA ID won't authenticate through it.
    On my machine, when I run with the same OS,browsers, and Java 2 plug-ins, I can successfully load the applet.
    This is the error that the user gets in the java console is:
    Duplicate key in parameter table: code using the htmlAttribute.
    first: com.ibm.eNetwork.HOD.HostOnDemand
    second: com.ibm.eNetwork.HOD.HostOnDemand.class
    java.lang.ClassFormatError: com/ibm/eNetwork/HOD/HostOnDemand (Bad magic number) at java.lang.ClassLoader.defineClass0(NativeMethod)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)...
    Would you reinstall the OS and Java? or look at another setting? or look at the JEP installation again?
    Thank you.

    Without reading the full post (sorry for that) my guess is that the applet needed to be fetched through a
    proxy, the proxy corrupts the applet because it's signed (finjan is one that does that).
    The reason why a proxy would do so is because the default settings of sun jre will ask the user the
    "do you trust" question to the user which could result in the user loading an applet that is allowed to do
    anything the programmer wants (4us, spyware, nasty stuff).
    Try to do the following:
    1. create a html file locally with the following content:
    rightclick and save target as
    2. open the page, right click the link and save the file
    3. apen the file with an unzip programm (winzip) and check if the content has changed.
    4. If the content has changed than the proxy might have done this, contact the system administrator
    It might allso have been done by a firewall installed locally.

  • Cannot insert duplicate key row in object

    This is a JPA question. The tbHardware table has a PK identity column and a unique non-clustered index on CoxBarcode column.
    I have a SFSB in a Seam2.0.0.GA app running on JBoss 4.2.1.GA. I am using flushMode=FlushModeType.MANUAL (Seam specific when beginning a conversation) and that's why you see the flush() reference at the end of the following code snippet.
    Query query = entityManager.createNativeQuery("INSERT INTO tbHardware "+
                                                 "VALUES (:coxBarCode, :serialNo, :currentStatus, :currentLocationNo, "+
                                                 ":desc, :hardwareModelId, :ownerTypeCode, :firstEnteredDate, :enteredByUser, :lastAuditDate, :hardwarePrice, null)")
                                              .setParameter("coxBarCode", coxBarcode)
                                              .setParameter("serialNo", serialNo)
                                              .setParameter("currentStatus", curstatus)
                                              .setParameter("currentLocationNo", curloc)
                                              .setParameter("desc", desc)
                                              .setParameter("hardwareModelId", selmodid)
                                              .setParameter("ownerTypeCode", selectedOwner)
                                              .setParameter("firstEnteredDate", firstEnteredDate)
                                              .setParameter("enteredByUser", enteredByUser)
                                              .setParameter("lastAuditDate", lastAuditedDate)
                                              .setParameter("hardwarePrice", unitPrice);
                             query.executeUpdate();
                             query = entityManager.createNativeQuery("INSERT INTO TbHardwareHistory "+
                                            "VALUES (:hardwareId, :currentStatus, :currentLocationNo, :firstEnteredDate, null, :enteredByUser, :ownerTypeCode)")
                                             .setParameter("hardwareId", findHardwareId(coxBarcode))                                        
                                             .setParameter("currentStatus", curstatus)
                                             .setParameter("currentLocationNo", curloc)          
                                             .setParameter("firstEnteredDate", firstEnteredDate)
                                             .setParameter("enteredByUser", enteredByUser)
                                             .setParameter("ownerTypeCode", selectedOwner);
                             query.executeUpdate();
                             //TO DO: following query should return only one entity, need to refactor and remove the for loop below
                             TbHardware hw = (TbHardware)entityManager.createNativeQuery("SELECT t FROM tbHardware t WHERE t.coxBarCode = :coxBarCode AND t.serialNo = :serialNo", TbHardware.class)
                                                                                    .setParameter("coxBarCode", coxBarcode)
                                                                                    .setParameter("serialNo", serialNo)
                                                                                    .getSingleResult();
                             Integer hardwareId = hw.getHardwareId();
                             query = entityManager.createNativeQuery("INSERT INTO tbHardwareNote VALUES (:hardwareId, :hardwareNote)")
                                                   .setParameter("hardwareId", hardwareId).setParameter("hardwareNote", hardwareNote);
                             query.executeUpdate();
                             entityManager.flush();I am getting the following in the server.log:
    10:10:57,552 ERROR [STDERR] Caused by: org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query
    10:10:57,552 ERROR [STDERR]      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.engine.query.NativeSQLQueryPlan.performExecuteUpdate(NativeSQLQueryPlan.java:174)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.impl.SessionImpl.executeNativeUpdate(SessionImpl.java:1163)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.impl.SQLQueryImpl.executeUpdate(SQLQueryImpl.java:334)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:48)
    10:10:57,552 ERROR [STDERR]      ... 138 more
    10:10:57,552 ERROR [STDERR] Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object 'dbo.tbHardware' with unique index 'IX_tbHardwar_coxBarCode_UNIQUE'.
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeUpdate(Unknown Source)
    10:10:57,552 ERROR [STDERR]      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
    10:10:57,552 ERROR [STDERR]      at org.hibernate.engine.query.NativeSQLQueryPlan.performExecuteUpdate(NativeSQLQueryPlan.java:165)
    10:10:57,552 ERROR [STDERR]      ... 141 moreHow should I handle this SQLServerException? What is the best practice regarding this from a JPA perspective? I thought about executing a select query prior to the insert in tbHardware to check to see if a record with that particular coxBarCode exists or not. Would the exception be handled differently if I used the persist() method instead of the createNativeQuery() and executeUpdate() combination? thx.
    Edited by: asookazian on May 7, 2008 11:07 AM

    kajbj wrote:
    What do you mean by control? Yes, you can find duplicates and remove them (by e.g. implementing a Comparator and adding them to a Set)
    KajI mean to say replace the duplication with just a single value for insert!
    Any psuedo for the comparactor suggested?

  • How to display duplicate key in web report?

    Hi Experts,
    Can anybody tell me how to display duplicate key in web report?
    I know in the Bex analyzer, we can allow the duplicate key to be dispalyed via the 'query property' by right click, and in the 'display option' tab, there is an option which named 'forbid duplicate key', if we don't select this option, the duplicate key will be dispalyed in the report result in BEx analyzer.
    But how can I do this in Web report? Thanks in advance.
    Eileen

    Hi,
    <b>I know in the Bex analyzer, we can allow the duplicate key to be dispalyed via the 'query property' by right click, and in the 'display option' tab, there is an option which named 'forbid duplicate key', if we don't select this option, the duplicate key will be dispalyed in the report result in BEx analyzer.</b>
    Do the same and execute report in web.You can able to see the same.
    Cheers
    Karthik

  • Text update master data no more possible/ Not existing duplicate keys

    Dear colleagues,
    we cannot load any new text for master data info objects.
    There are no duplicate keys in the delivered nor in psa.
    If the key value is allready loaded and the PSA containes changed text
    fields to this key, the DTP update fails and says: duplicate data record!.
    If I switch on the "Handle duplicate record keys"-flag, the DTP deletes
    the correct record with the changed texts from the delivered data.
    So, it is no more possible to get changed texts into the system.
    Attribute load has the same issue.
    Please help fast.
    Many regards,
    Wolfgang Taag

    Problem seems to be solved!
    Transfers start routine proceeds a "short dump" while selecting duplicate records from an differnt info object.
    But there is no real short dump in in ST22.
    DTP catches user's short dump and gives the message, that there are duplicate records in the loaded data.
    If you check "handle duplicate records" at the DTP, no error is messaged, even though startroutine dumps!
    Fattaly, in this case, DTP deletes rows from loaded data!
    Thanks,
    Wolfgang

  • Putting Duplicate Keys in a Hashtable.Please assist

    Folks,
    I wud like to put duplicate keys into a Hashtable,so that the Hashtable looks like:
    Entertainment,Video;
    Entertainment,Pictures;
    Entertainment,Camera;
    where Entertainment is the key:
    So I am using the flwg code:
    public class TestHashTable {
    public static void main(String[] args){
      Hashtable balance = new Hashtable();
      HashMap hm = new HashMap();
      Enumeration names;
      String str;
      balance.put("Entertainment",helperMethodAddToList(hm, "Entertainment", "Camera"));
      balance.put("Entertainment",helperMethodAddToList(hm, "Entertainment", "Video"));
      balance.put("Entertainment",helperMethodAddToList(hm, "Entertainment", "Pictures"));
       names = balance.keys();
       while(names.hasMoreElements()){
       str = (String)names.nextElement();
       System.out.println(str + ":" + balance.get(str));     
       } // End of main.
       private static List helperMethodAddToList(Map m, String key, String value) {
       List vals = (List)m.get(key);
       if (vals == null) {
       vals = new LinkedList();
       m.put(key, vals);
       vals.add(value);
       return vals;
       }The output comes this way:
    Entertainment:[Camera, Video, Pictures]
    I dont want it this way but as shown on 1st Line
    Is this possible? Am I missing something?

    import java.util.*;
    public class X {
        public static void main(String[] args) {
            HashMap map = new HashMap();
            map.put("a", toList(new String[] {"alabama", "arkansas", "alaska"}));
            map.put("n", toList(new String[] {"nevada", "new mexico", "north dakota"}));
            map.put("w", toList(new String[] {"wyoming", "west virgina"}));
            dump(map);
        static List toList(String[] strings) {
            return new ArrayList(Arrays.asList(strings));
        static void dump(Map map) {
            for(Iterator i = map.entrySet().iterator(); i.hasNext(); ) {
                Map.Entry entry = (Map.Entry) i.next();
                System.out.print("key=" + entry.getKey() + ", values=");
                List values = (List) entry.getValue();
                for(Iterator j=values.iterator(); j.hasNext(); ) {
                    String state = (String) j.next();
                    System.out.print(state + ", ");
                System.out.println();
    }

Maybe you are looking for

  • BPM S/A Bridge

    When does one use a S/A Bridge.. I am looking at SAP Help as per which, they have an example to convert a synch interface to Asynch? Do we need to use this? I have the following interfaces a) file sender adapter b) Consume webservice c) Based on the

  • After archive and install--I have a previous system folder

    Hello, I had a corrupted system file and I had to do an archive and install, which used the system discs I got with my laptop to reinstall OS X. Now I have a previous system file on my hard drive. Is this still needed? Can i just delete it? What can

  • CISCO ISE

    Hi all, I've been playing around with ISE demo and I am very impressed!!! After trying different scenarios with my co-workers I came to a point where we find it kind of buggy. I have rules to redirect unknown users to pasturing through web where they

  • How to listen to audiobook on iphone

    I downloaded an audiobook and synced it to my phone but can't find on my phone anywhere.  Please help!

  • Upgrade Emac - Panther to Tiger

    Hi there, I know i´m a bit late, but is it possible to upgrade my Emac 1,25Ghz, 1GigRam, SD, ATI Radeon 9200, to Tiger 10.4.x? better late than never, hm? regards FSD