Duplicate entries created with CMP

My question is: Should CMP container maintain the primary key field?
I created a client program to create a number of CMP objects and execute
some finder methods.
If I executed the client program again, it would try to create the
same CMP objects again. I thought I would receive some duplicate key
exception but I didn't get any exception. Looking at the DB, I found
the duplicate entries. Why?
Then, I modified the client program to do a findByPrimaryKey() and
an exception is caught saying that duplicate key found in DB.
(This is expected as duplicate rows did exist in DB.)
I am using weblogic 6.1.
Thanks,
Terrence

If your client code is written correctly and you use the correct isolation
level, you will not get duplicate keys.
If your database is configured with the correct constraint, you will not get
duplicate keys.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Terrence Leung" <[email protected]> wrote in message
news:[email protected]..
My question is: Should CMP container maintain the primary key field?
I created a client program to create a number of CMP objects and execute
some finder methods.
If I executed the client program again, it would try to create the
same CMP objects again. I thought I would receive some duplicate key
exception but I didn't get any exception. Looking at the DB, I found
the duplicate entries. Why?
Then, I modified the client program to do a findByPrimaryKey() and
an exception is caught saying that duplicate key found in DB.
(This is expected as duplicate rows did exist in DB.)
I am using weblogic 6.1.
Thanks,
Terrence

Similar Messages

  • Duplicate entries created by smart group

    I have an Address Book smart group created with 2 rules:
    inclusiveness is set to ALL
    rule 1. card is a member of group a
    rule 2 card is not a member of group b
    In other words I want to emaill everyone in group a except for those who are also in group b.
    This works fine EXCEPT that it puts some cards in twice. I can't see why, but it's really annoying. Any ideas?

    David Wilkinson6 wrote:
    I have an Address Book smart group created with 2 rules:
    inclusiveness is set to ALL
    rule 1. card is a member of group a
    rule 2 card is not a member of group b
    In other words I want to emaill everyone in group a except for those who are also in group b.
    This works fine EXCEPT that it puts some cards in twice. I can't see why, but it's really annoying. Any ideas?
    address book smart groups are notoriously buggy especially smart groups involving any negative conditions. I can only suggest you stay away from them.

  • ECC 6.0 - Leave request show duplicate entries one with ERROR status

    Dear All,
    We have implemented standard Leave request process, we are facing the issue as mentioned below, Its not happening for all the time, however we want to what scenario   this problem will arrives.
    Problem description:
    E.g. Staff applied annual leave on 10.06.2010, the leave request will sent for approval , after the approval of the leave ,every 30 min. we have scheduled a job which will execute standard program RPTARQPOST to post a leave request to IT2001.
    After the approval when staff go into ess and see leave request details under "Show Overview of Leave" and its shows as 2 records for the same period one with APPROVED and another one with ERROR.
    Type of Leave   From         TO                    Status                      Used
    Annul

    Hi Annul,
    Please check SAP Note 986003 - ESS LEA: Incorrect ERROR status for records in RPTARQPOST.
    May be relevant for your case.
    Regards,
    Dilek

  • Deleting Duplicate Entries in sender JDBC adapter

    Hi i am working on JDBC to IDOC scenario.
    When i am fetching the records from the Oracle database table using select query, i am getting the records but its getting duplicated many a times and hence its failing at an idoc processing at ECC side..
    Could someone help me in deleting the Duplicate entries and passing only the required entries from Oracle databse to IDOC.
    Here is my select query.:
    Select a.order_num, a.sap_delivery_number, a.sap_delivery_line_number, a.warehouse, a.product, a.product_size, a.order_qty, a.ship_qty from XXX_h a,tr_log t where a.Prod_id = 101..
    Appreciate your help.
    Regards

    >> Its not picking up the old data instead, it is repeating the same set of data multiple times.
    The below suggestion might be helpful
    a) First do your select statement
    b) Second , Use update statement and here set some flag in that table that these records are already queried.  say boolean read = true for the above queried records.
    That's it. When you query next time, you will not reread the same data. You will read the new data.
    Duplicate Entries:  Check with db client tool like Toad or sqlplus and see whether duplicate entries exists in the table. If so, then fix the data first.
    Edited by: Baskar Gopal on Feb 22, 2011 1:02 PM

  • SD Document Flow - Duplicate entries

    SD Document flow, duplicate entries created for the same Delivery & shipment.
    In VT03N document flow same shipment no is shown twice for the sales order & delivery document.

    SD Document flow, duplicate entries created for the same Delivery & shipment.
    In VT03N document flow same shipment no is shown twice for the sales order & delivery document.

  • Problem with duplicate entries in a structure.

    Hi,
    I am creating a custom structure by including 2 structures in it as DRSEG and COBL_MRM_D.
    Now both the structures have many common fields and hence it gives an error on check.
    Is there any workaround to create the structure in DDIC by including both the above structures.
    Pls help with your ideas.
    Thanks,
    stock.

    Hi
    Create a DDIC structure which has all the common fields. Include this structure only once .
    Then include the fields which are not common from both the structure into the created structure . so that no duplicates entries are present
    OR
    Include the first structure then dont include the second structure include only the fields which are not common to both . this also eliminates the duplicates

  • Duplicate entry check in Tb control with 6 same fields

    actualy i have made a table control with six same fields.
    batch1      batch2     batch3    batch4        batch5           batch6
    the data type of all fields is same.
    i want to assign a check for duplicate entries.
    the value entered in batch1 (say bgp000001). then it cannot be entered in any row or column of table control.that means this value bgp000001 cannot be entered again in entire table control.
    although i have been able to create a validation for table control current line.
    In PAI
    loop at i_packcase.
    FIELD I_PACKCASE-batch1 MODULE CHECK_CRTNO1_0107.
        FIELD I_PACKCASE-batch2 MODULE CHECK_CRTNO2_0107.
        FIELD I_PACKCASE-batch3 MODULE CHECK_CRTNO3_0107.
        FIELD I_PACKCASE-batch4 MODULE CHECK_CRTNO4_0107.
        FIELD I_PACKCASE-batch5 MODULE CHECK_CRTNO5_0107.
        FIELD I_PACKCASE-batch6 MODULE CHECK_CRTNO6_0107 .
    endloop.
    corresponding modules are coded as below:
    there is no check in field-batch1( as this is the first entry in table contrl)
    module check_crtno2_0107 input.
    if i_packcase-batch2 eq i_packcase-batch1.
       message v_duplicate type 'E' display like 'I'.
    endif.
    endmodule.
    module check_crtno3_0107 input.
    if i_packcase-batch3 eq i_packcase-batch2
            or i_packcase-batch3 eq i_packcase-batch1.
            concatenate 'CASE'  i_packcase-batch3
            ' ALREADY ENTERED' into v_duplicate.
            message v_duplicate type 'E' display like 'I'.
    endif.
    endmodule.
    similarly field-batch6 is checked against all previous 5 fields
    this works only for current line of table control.
    *now i want to extend this check to all lines of table control.

    Hi,
    Save the entries of each row and column into an internal table containing one field (fieldx)  the required data type. Delete adjacaent duplicates for the internal table. If successful, give error message as required.
    Loop at i_packcase.
    itab-fieldx = i_packcase-batch1.
    append itab.
    itab-fieldx = i_packcase-batch2.
    append itab.
    itab-fieldx = i_packcase-batch3.
    append itab.
    itab-fieldx = i_packcase-batch4.
    append itab.
    itab-fieldx = i_packcase-batch5.
    append itab.
    itab-fieldx = i_packcase-batch6.
    append itab.
    endloop.
    delete adjacent duplicates from itab comparing fieldx.
    if sy-subrc eq 0.
    ****appropriate error message****
    endif.
    Regards,
    Konda Sravanthi.

  • "open with" duplicate entries

    "at times" using "open with" shows many duplicate entries....reboot fixes it for a while..
    I'm still trying to determine what is triggering this.
    Any idea? Anyone see this in 10.8? I couldn't find anything searching the forums.

    I am not familiar with all the causes of this phenomenon, but it happens to me from time to time, and I know why it is for me. I work with "clone" images all the time with dev work. When a clone is mounted alongside booting into  the main volume, Launch Services, which keeps track of applications used to open certain file types, "sees" the other application files on the mounted clone volume, and adds them to the database, resulting in the apparent duplication of "open with" entries.
    Resetting the 'Open With' menu will remove duplicates and ghost applications (ones you have deleted) from the list. You reset the 'Open With' menu by rebuilding the Launch Services database your Mac maintains. There are multiple ways to rebuild the Launch Services database, including third-party system utilities like Cocktail and Onyx.
    If you don't own a system utility that can rebuild the Launch Services database, don't worry; you can perform the rebuild yourself using Terminal.
    Using Terminal to Rebuild the Launch Services Database:
    Launch Terminal, located at /Applications/ Utilities/.
    For OS X 10.5.x and later, enter the following at the Terminal prompt:
    /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fram ework/Support/lsregister -kill -r -domain local -domain system -domain user
    I don't know wjhy it is happening for you, but rebuilding the database will at least reset things to normal. The question to ask is whether you have other mounted volumes, say from other systems on your network, that contain Mac Apps.
    I have also found a way to keep it from happening (in certain cases, for my dev work). When I create a clone, I also create what is called a "fstab" file entry, in the fstab file. This entry prevents named drives from auto-mounting. So, if I boot to a clone, my main volume on my internal SSD won't mount. Hence, no extraneous Launch Services database entries will created on the clone drive. If however, I boot to my main SSD, and then mount a clone, I don't use any fstab entries on the main SSD. This just means I have to periodically rebuild the Launch Services database. It is way too much trouble keeping fstab entries for all my clone drives on my main SSD. I only use the fstab method on the clones themselves.

  • Duplicate entry with respect to 2 columns

    hi,
    I am using an excel sheet, where I have input company name in one column and invoice number in another column.there is as many as 500 companies we are dealing with. the problem is one company is sending the same invoice number twice to us. while I update
    the invoice number I want to check the whole workbook, for the invoice number with respect to the company name in the corresponding column and alert me, if it is a duplicate entry.
    kindly help!

    Could you create a stripped-down copy of the workbook (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as Microsoft OneDrive (https://onedrive.live.com),
    FileDropper (http://filedropper.com) or DropBox (http://www.dropbox.com). Then post a link to the uploaded and shared file here.
    Or register at www.eileenslounge.com (it's free) and post a message in the Excel forum. You can attach files up to 250 KB to a post there (zipped if necessary).
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Calender sync creates duplicate entries!!

    Everytime an update comes out out for either iphone or itunes, my calender sync creates duplicate entries. One of them is being duplicated for atleast 7 times.
    Please guide me to resolve this issue and if there is a feedback for developers, they should try to resolve this issue in future updates.
    Thanks.

    Hi and welcome to the BlackBerry Forums
    I never hear this, but try this.
    If you have all the correct data in outlook, my suggestion is wipe the device (all the data is erased) and synch the device again.
    To wipe the device go to menu,  options, security options, general options, press menu, and wipe handheld.
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • How to create a scenarios for duplicate entries

    Hi friends,
    Please help me how to create a scenarios for duplicate entries, we are using stock transfer orders from there we need to create scenarios for duplicate entries, please guide me on the same.

    Hi,
    F-01 can be used to create a sample document.
    Regards
    Aditya

  • Need to create a contest entry form with a survey

    I have a client that would like me to create contest entry from with a survey, I know that I can easliy do this using the Web Form builder and have the data captured into the database, the prolem that I have is that my client only wants the customer to be able to enter the contest once. Is there a way to set this up using a Web Apps or other code so that if a person with the email address tries to enter more than once they get a message that says that they already entered?
    Any help would be greatly appriciated.
    Thanks,
    Barry

    Hi Barry,
    Here's a posible solution...
    1- Extend the CRM Database with a unique ID field
    2- Add this 'hidden' CRM field to the sign up form so every member has an automatically generated unique ID ( see http://forums.adobe.com/message/4520873#4520873 )
    3- Create an appropriate web app field and pre-populate it with this ID- lets call this field xyz (hide this field too)
    Now, as long as the web app input form is on the web app detail view page, all you'd have to do is compare these two 'strings' i.e {module_cutomerfield,****,*******} and {tag_xyz}
    see http://jsfiddle.net/Webmosphere/Wqvcj/2/
    var alreadyPosted = "{module_cutomerfield,****,*******}";
    if  (alreadyPosted == {tag_xyz})
    $('.removeMe').remove();
    In this example, the element with a class 'removeMe' is removed from the DOM...what you could add under the same if statement is a function to display another element that perhaps
    displays a message such as 'already replied'.
    If the form is not on the web app detail view page, you could still ajax in {tag_xyz}....
    I hope this helps or at the least sends you in the right direction.
    Dave Black
    twitter: @webmosphere
    www.webmosphere.co.uk

  • Table got re-created with 0 entries

    Hello All,
                     In ECC system after refresh BDLS is taking too long time(24hrs to 36hrs) becase of that as per SDN blogs to improve BDLS performance i build the index on few tables mentioned below using SE11 & SE14 t-codes, after completing BDLS I dropped those indexes while dropping BKPF table got re created with 0 entries but other tables are having entries. i have followed sam eprocess for all the tables, after that i tried in sandbox system that system also while dropping BKPF got re-created with ' 0 'entries ,Could you please let me know why it has re-created with 0 entries.
    BKPF   
    CE11000 
    COBK   
    COEP   
    COES  
    COFIS  
    GLPCA  
    GLPCP   
    GLPCT   
    MKPF   
    SRRELROLES

    Thanks for the Prompt response,
    The service entry was created this month
    I did try by checking the "Deliv. Compl." indicator on the PO and then tried to reverse the service entry but I get the same error i.e SE541
    Thanks

  • Every time I sync my iCal computer with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications?

    Every time I sync my iCal on my computer through iTunes with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications? I have been doing this for several years and this problem is a more recent issue, like in the last 6 months. I have been deleting the duplicate entries, on both systems, but some duplicates reappear through "general" entries that are connected to the correct color for a Calendar, but not the name. I am going nuts and wasting tons of hours trying to get the 3 calendars to sync without generating duplicate entries.

    Choose one of the Calenders on ONE of the computers OR the MobileMe as the Master / correct account.
    The REINITAILISE the data of MobileMe within preferences on the computer defining the datatransfer correctly (in the advanced box of preferences). The synchronise iphone contacts and calender directly on-line to MobileMe.
    I posted a question on this today, and gave my own reply !
    Regards,
    Kevin

  • Duplicate Messages created on target with Multimapping(No BPM)

    Hi
    I am working on PI7.1 .
    My sceniro
    IDOC to JMS using message split
    Receiving IDOC with Header and Items, PI splitting IDOC and sending to Multiple JMS queues, Header segment data to header queue, Item segment data to Item queue
    PI Successfully Posting data to Queues, but duplicate messages creating on target sys(One IDOC with one header and one item date, PI sending 2 header messages , two item messages to target sys) .
    I did following steps
    ESR
    1. Created two target messages
    2. Created Two target inbound interfaces
    3. Created Message mapping using with multiple target messages, changed signature occurrence to 0 : unbounded , and mapped to source node to target nodes
    4. Created operation mapping with one source to two target interfaces
    EB
    1. Created one business components and assigned one sender and two receiver service interfaces
    2. Created Two receiver communication channel
    3. Created One receiver determination
    4. Created One interface determination , added two inbound interfaces with one operation mapping (Multiplicity is blank )
    5. Created two receiver agreement
    Please help .

    Thanks Gouri ,
    My IDOC structure (Source Message Type)
      HEADER_SEG Node (0:9999) -
    > MT_HEADER ( 0:unbounded) (this one of target message type)
                                                                    HEADER_FLDS  (Element - Main hierarchy)
             FLDS----
    >  FLDS
    ITEM_SEG Node (0:9999)  -
    >MT_ITEM(0:unbounded ) (this is another message type)
                                                                    ITEM_FLDS (Element - Main hierarchy)
             FLDS----
    >  FLDS
    I tried with the below mappings
                    HEADER_SEG Node -
    >MT_HEADER
                    HEADER_SEG Node -
    > HEADER_FLDS (element )
                    ITEM_SEG Node -
    >MT_HEADER
                    ITEM_SEG Node -
    > ITEM_FLDS (element )
    2. method
                    HEADER_SEG Node -
    >MT_HEADER
                                                           HEADER_FLDS (element )(not mapped)
                    ITEM_SEG Node -
    >MT_HEADER
                    ITEM_SEG Node   ITEM_FLDS (element )(not mapped)

Maybe you are looking for

  • A new powerbook G4 user!

    Hello, Could somebody please help me here coz everything is quiet new for me. I'm trying to open up some applications i downloaded from the apple website , but as i try to open them up a window pops up saying there's no default application chosen to

  • Dynmaic sql for PreparedStatement

    I'm attempting to dynamically generate the where clause of a sql query. My code looks something like: public void myMethod (String fieldA, Map params) throws SQLException{ String sql = "select * from tableA a, tableB b where a.field = b.field and a.f

  • KM Repository Manager

    Hi Experts,     Please give the code or documentation to develop the <b>KM Repository Manager</b> in NWDS.  Regards, Venkatesh.K. Points will be awarded.

  • When I load Businesscatalyst scrolling and other Wigdet not work.

    Hi there, Musette-themes I downloaded from the themes, businesscatalyst to nothing works except bridges when I install. I've updated the assets but scrolling features, widgets do not work. Now everyone mentioned on the site to try and present a runni

  • Entire library deleted on time machine

    my entire library on my time machine was erased after I got a message saying time machine needs to back up in different location, so I followed the prompts and it deleted my entire library not just old back ups. Can I get them back?