Duplicate items appearing in session

A user was receiving an error message from a validation indicating that a value had not been specified for one of the page items when the user had, in fact, provided a value. While investigating this problem, I discovered that the user's session contained two copies of most of the page items.
I have been able to reproduce the problem using the standard APEX Sample Application using the following steps.
1. Install Sample Application.
2. In the application properties, rename the application so that APEX will allow a second copy to be installed.
3. Create an authentication scheme based on the preconfigured authentication scheme "Oracle Application Server Single Sign-On (Application Express Engine as Partner App)".
4. Make this the current authentication scheme.
5. Run the application; log in; access some pages to establish some page items in the session. (The application didn't behave normally, but that didn't affect the results.)
6. Save a copy of the URL, including the session ID.
7. Install a second copy of Sample Application.
8. Repeat step 3 for this second copy.
9. Export the second copy.
10. Import and install the file just exported over the first copy of the application (i.e., change its ID to that of the first copy during the installation).
11. Log in to the first copy of the application. (The session ID should be the same after logging in as in the saved URL.)
12. Access some pages in the application. The session should now contain duplicates of the page items.
These steps are contrived, but the problem arose from actual experience. The user typically uses a shortcut that contains the session ID and had previously accessed the application recently enough that the session had not yet been purged. Between those two accesses, I had installed a new version of the application from our test server where the application has a different ID.
Any suggestions for ways to avoid the problem?
Rodney

Rodney - I understand the scenario better now. I didn't realize the timeframe was so elongated (user logged out and went home, then you did the maintenance, then user returns and logs in and uses a bookmark, etc.). It's an interesting problem and I thank you for your detailed presentation and tolerance of my curmudgeonly reaction.
One thing you could do is login as a workspace admin and follow the path Home>Application Administration>Manage Services>Session State>Recent Sessions. On this report, you'll see a column New Instance. If you see the application ID that you want to replace in this column (perhaps following a colon (:) or in a colon-separated list of IDs), you can drill into that session and remove the session. Repeat until all such sessions are removed.
An alternative would be to alter the application's logout URL (actually the logout sequence) to invoke the apex_util.clear_app_cache (or htmldb_util.clear_app_cache) procedure as one of the steps. This would solve the problem for users who take the trouble to logout using the logout link and not for those who just close the browser or turn off the computer.
Another way would be to expire the session after some period of inactivity forcing the user to login again and get a new session. Example at http://htmldb.oracle.com/pls/otn/f?p=18326:44:610327603940451::::P44_ID:1562. This would be the simplest approach although I haven't tested it for your scenario. I'm sure it could be adjusted for that case if necessary.
Scott

Similar Messages

  • Duplicate item checking failed in Form level-urgent

    Hi all
    i have creation page with advanced table
    i need to restrict the duplication at form level as well as save button
    in some cases the validation is failed
    if ("CodeValidation".equals(pageContext.getParameter(EVENT_PARAM)))
    itemcode = vo.getCurrentRow().getAttribute("ItemCode").toString();//advanced table multiple records come
    am.xxItemCodeValidation(itemcode);//checking the item validation at databse level
    am.xxdupitemcode(itemcode);
    method in am
    public void xxdupitemcode(String itemcode)
    System.out.println("The item code is.........."+itemcode);
    int count = 0;
    xxcrmNewItemVOImpl vo = getxxcrmNewItemVO1();
    vo.executeQuery();
    System.out.println("the row are" + vo.getAllRowsInRange().length);
    Row r[] = vo.getAllRowsInRange();
    int n = vo.getAllRowsInRange().length;
    for (int i = 0; i < n; i++)
    System.out.println("entered into this block......for loop" + count);
    if (itemcode.equals(r.getAttribute("ItemCode")))
    System.out.println("entered into this block......" + count);
    count = count + 1;
    System.out.println("the count is........."+count);
    if (count > 1)
    throw new OAException("Duplicate Item found plz change the item",
    OAException.ERROR);
    } else
    System.out.println("Exception block....... ");
    in save button i am calling
    if ("Save".equals(pageContext.getParameter(EVENT_PARAM)))
    am.xxdupitemcode(itemcode);
    am.invokeMethod("xxsavetr");
    in which case it is failing is
    in first row user enter
    ROW-ITEMCODE
    1-A
    2-A
    3-B
    4-B
    in second row and 4 th row exception is raised but user didnt change the itemcode and proceed for next steps
    IN SAVE BUTTON EXCEPTION IS RAISED
    but user will go to 4 th row and B should be change as C and click on save
    records are saving with duplication item of A
    but i need to restrict in save button also
    how its posible
    Regards
    Sreekanth

    Sreekanth,
    The correct way to check for duplicates is to check it both in the VO/EO cache as well as the database. It is possible the user entered duplicate value in the current session. In that case you should first check within the existing VO rows if the values are duplicated or not (in case all the database rows are already queried, you might not need to run an explicit query, otherwise another validation VO needs to be executed to check for duplicates).
    Regards
    Sumit

  • Sales order duplicate item

    Hi,
    Can someone help and explain me why there's a duplicate item in my sales order.
    In the sales order document a variant component doubled from ITem 10, item 20 then ITEM 21 then item 30..... Irregularities of item number. The config was defaulted by 10's.
    EX.
    Item Material QTY Unit ItCategory
    10 Variant 1 pc YTM1
    20 componet A 200 in3 YTM2
    21 componet A 200 in3 YTM2<<<<----
    (duplicate of ITEM 21)
    30 Variant 1 in3 YTM2
    40 ................................................................
    50 ................................................................
    The config for numbering is by 10. What are the possible reasons why item 21 appeared?
    Please help
    Thanks,

    Hi Chrisell
    This problem you were facing because in VOV8 you have Item increment and Sub-item increment . Because of this you were getting the duplicating item in the sales order.Apart from that you might have maintained the BOM . because of that duplication item in the sales order is taking place .
    Kindly check the STPO & STPU tables wheather they are getting updated or not
    STPO --- BOM item data
    STPU ---   BOM sub-item data
    STAS --- BOM item selection
    Regards
    Srinath

  • Recapture problem - Duplicate Item Filename

    I forgot to choose Stereo Pair when capturing my clips in a project. FCP wont send audio clips to "Soundtrack Pro audio file project" if the clip is not captured as a Stereo Pair. If you try making an audio clip Stereo Pair in your sequence, it still wont work. Soundtrack Pro requires that your clip is captured as a Stereo Pair. I want to recapture my clips, but that is for some reason easier said than done.
    I ctrl-clicked the clips in my browser, chose Make Offline, and then chose Move to trash. When I choose "Batch Capture" on my offline clips now, I get a window that says "Duplicate Item Filename". It says "A file in use by Final Cut has been found to use the specified filename. Enter a different filename and click Continue or choose one of the options listed below." The options that it lists are greyed out.
    I found this problem as an archived thread here in the FCP forums, but the information there did not really help.
    Should I just have removed the clips inside the Capture Scratch folder, instead of using the Make Offline feature?
    I have emptied the trash, tried rebooting my Mac, repairing permissions, trashing my preferences. Nothing has helped. I am now trying to erase the free space on my media drive (which is as good as empty now).
    Where is this filename information stored? Why does my FCP project think the offline clips still are on my media drive?
    Please help

    Thanks Andy.
    I have done some more testing now. I made a backup of my project file, before I tried the "Make Offline" feature, and I also have backups of the project file inside my autosave vault.
    When opening my project backup file, I get the usual message about offline clips and reconnecting. Batch Capture works great when clips are "missing". I get no message about duplicating item filename or anything like that.
    The problem now, is that if I want to modify the clip settings of the missing/offline clips (and make them Stereo Pair), I can't because the clips are not offline but missing. If I check the source column in the browser, I can see it still thinks the clips are supposed to be on my media drive. To be able to modify clip settings, I have to make the clip offline. Once I do that, modifyinig the clip settings works, but when I try to batch capture a clip, I get the message about duplicating the item filename again.
    Man... this bugs me.
    UPDATE:
    Wow.... I think I found the problem. Batch Capturing after making the clips offline works fine. This "duplicate item filename" message only appears AFTER I have modified the clip settings, making it Stereo Pair instead of dual mono. How annoying! This was my main goal. Recapturing the clips with Stereo Pair audio

  • Vendor open items appearing in FBl1 but same documents not appearing F-44.

    Hi,
    Vendor open items appearing in FBl1 but same documents not appearing F-44.
    Please help me in this.
    Thanks
    GP

    Hi,
    F-44 is used for clearing vendor - header data. Check if there are both debit and credit entries for the vendor and if it exists then clear using F-44. Check the entries correctly in FBL1.
    regards,
    radhika

  • Old deleted items appearing again in trash

    Hello,
    I have been reviewing my trash of late and I have noticed that items that I have previously deleted and subsequently emptied from the Trasn Car and re-appearing. Yesterday my trash was empty and today there are items appearing as having been deleted on 17th December???
    Anyone know why this is?
    Thanks

    Have you tried using the Secure Empty Trash option?
    There may be a solution in this article:  What to do when the Trash won’t empty
    Mountain Lion (10.8.1)
    Use Software Update or the OS 10.8.4 combo update to update your OS.  Also, update everything SU has to offer for your computer.  When done, repair permissions and restart your computer.

  • Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Thanks so much. I was afraid to mess with that.  But when I unsynced them, it worked.

  • Is there a way of displaying  the various item in my Downloads folder as icons arranged in order of Date Created, such that the most recent items appear at the bottom, rather than the top?

    Is there a way of displaying  the various item in my Downloads folder as icons arranged in order of Date Created, such that the most recent items appear at the bottom, rather than the top? I know this can be done when they are displayed as a list, but I want icons!

    Hi geezer,
    when you open your 'Downloads' folder choose 'View'  in the Menu bar and choose:
    'as List'
    'Show View Options'
    In 'View options' window you tick:
    'Always open in list view'
    'Date Modified', or
    'Date created'
    Now inside the 'Downloads' folder click on 'Date Created' (or 'Date Modified')
    column to get items alined from oldest to newest date (or reverse)…

  • How to make a new line item appear in a sales order in VA01 transaction?

    Dear All,
    I am trying to create a SO with single line item with quantity 100.
    Upon hitting the 'Enter' key, if the available quantity is less than the requested quantity (say 20), it takes me to an availabilty control screen which has a push-button 'One-time delivery' on the application tool bar.
    Upon clicking on this button, it takes me back to the main screen of VA01 where I currently see only one line item with quantity 100 and confirmed quantity 20.
    My requirement here is to make two line items appear, one with quantity 20 and the other with quantity 80, once I navigate back to the main screen of VA01 after clicking on the push-button 'One-time delivery'.
    Please provide me your valuable inputs. Any kind of help is highly appreciated.
    Useful answers never go unrewarded.
    Regards,
    Sreekanth Reddy B.

    Hi Sreekanth ,
    creating line items based on the confirmation qty can be done thru config, not thru ABAP,standard SAP will gives you options to create a new line item for unconfirmed qtys.
    check with ur functional consultant or try to post in SD /APO forums.
    regards
    Prabhu

  • How to delete duplicate items in SQ01 output

    Hi,
       I created a query to extracted fixed asset from table ANLZ join ANLA, ANLZ for legacy fixed asset upload.  But in the output list , every fixed asset line item is output by triple line items. How can I do to delete the duplicate items when output. Thanks.

    Hi,
    could you explain please what you did to remove duplicate / redundant lines?
    I am facing the very same issue in an SQVI report I made recently: the line item results are 5x more then necessary (when document has 5 item lines), etc.
    Thx in advance

  • How do I delete the duplicate items in my library on the new iTunes?

    I just backed up my library on a new external hard drive and noticed that all my media is doubled up. Aside from going through each item is there a way to do this on the latest version of itunes. There use to be a way via the file and clicking on duplicates items....Please help I have over 20000+ items!!!

    Apple has removed that feature along with several others, but
    (5/12/2012) Missing 'Find Duplicates' feature in iTunes 11 to be restored - http://reviews.cnet.com/8301-13727_7-57557280-263/missing-find-duplicates-featur e-in-itunes-11-to-be-restored/    "Some of the features Apple has removed from iTunes will see a return, but others may indicate changes to come elsewhere in Apple's product lines."
    Until then you will have to resort to sorting by a particular label such as artist and manually scanning, third party utilities such as Dougscripts Dupin to deal with duplicates, or revert back to iTunes 10.7.
    Somewhere you're not doing something correctly.  Backing up a library should not produce duplicates.  There's no way it can.

  • Stored procedure in purchase order for duplicate item for a vendor

    Hi all
    I have written a stored procedure for duplicate item for vendor the output i need from this SP is whenever for a vendor we will raise purchase order the system should check that their shouldn't be any po in the system for the same item by the selected vendor. Its working fine when only one item is selected but it is behaving wrongly when more than one item is selected.
    If (@object_type='22' and @transaction_type='A')
    BEGIN
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend =CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del
    IF 1 !=(Select Count(T0.DocEntry) From OPOR T0  Inner Join POR1 T1 On T0.DocEntry=T1.DocEntry  Where T0.CardCode=@Vend and T1.ItemCode=@ItemCode)
    Begin
    select @error =1
    select @error_message = 'Item Code Already Exists For This Vendor'
    end
    end
    Thanks
    Rashid.

    Hi Rashid,
    Try this,
    if @object_type = N'22' and @transaction_type in (N'A', N'U')
    begin
    declare @line1 int
    declare @lin1 int
    declare @out1 int
    Set @out1 = 0
    SET @lin1 = 0
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
    While @lin1 < @line1
    Begin
         Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
          if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
          WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
          Begin
               Set @Out1 = 1
               Break;
          END
               Else
               Begin
               Set @lin1 = @lin1+1
               Continue
          END
    END
    Set @lin1 = @lin1 + 1
    if @out1 = 1
    begin
          Set @error = 1
          Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
    End
    END
    Regards,
    Bala

  • Help needed in removing duplicate items of list box  in java

    How to remove duplicate items of list box while dynamically inserting (on-click event)
    It is not identifying duplicate data
    Variable name is HP_G1
    HP_dmg1 = (DefaultListModel) HP_G1.getModel();
    int a = HP_G1.getModel().getSize();
    System.out.println("HP list no--------> "+a);
    if(a!=0)
    for (int j=0; j<a; j++)
    String item1 = String.valueOf(HP_List.getModel().getElementAt(j));
    System.out.println("HP list added--------> "+item1);
    if(HP_dmg1.equals(item1)){
    HP_dmg1.remove(j);
    else
    HP_dmg1.addElement(GPL);
    }

    Your code is unreadable, so I'll ignore it. In the future please press the message editor's CODE button to format code.
    As to your problem, to the point you normally use a Set instead of List when you don't want duplicates in a collection.

  • Duplicate files appearing in Windows Photo Gallery under Vista Home Basic.

    I am suffering a bout of duplications in my Windows Photo Gallery under Vista. I am getting duplicates, triplicates and quadruple versions of the original file.
    Despite turning off all Autoplay media types to 'No Action', I get random duplicates when I try to enter update pictures from camera or memory chip through a USB port. There is no 'Enter Updates Only' option, and Microsoft says that this is unnecessary as
    duplication is prevented. The duplicates however appear with 'copy' in the file name after the image numbering system. My preference is to view the memory contents via 'Computer' - select and open the port, and view, then copy and paste into Photo
    Gallery.  Photo Gallery kicks in to view the chip correctly, but often/always (?) promptly uploads uncommanded. It did not used to do this, only in the last year or two.
    What do I do, it is driving me crazy ?  

    Hi,
    As I know, for Duplicate issue, it might be caused by a corrupted database, please try to rebuild it as a test.
    Close Windows Photo Gallery
    First show hidden files.Navigate to C:\Users\Usename\AppData\Local\Microsoft\Windows Live Photo GalleryRename “Pictures.pd” to “Pictures.pd.old” (without quotes) and reopen Windows Photo Gallery.
    Yolanda Zhu
    TechNet Community Support

  • Duplicate item filename error

    here's the story:
    i had a 1tb drive (drive 1) and a 1tb back-up drive (drive 2). drive 1 crashed and i returned it and got a new drive (drive 3). i copied over the media from drive 2 to drive 3. it finished. then when i restarted, drive 2 was dead too. i can't find my disk warrior so rescuing that drive will have to wait. so now i have drive 3 and i mount it and start fcp 5. looks like most of my copied media has gotten trashed in the move. all looks green and when i go to the finder to try to play the clips, they are corrupt. so i delete all the media and start digitizing everything. (feature length show here and 45 hour long tapes...no fun). i get about 12 tapes in and then move the system from my home to work. restart and go to start digitizing on tape 12 where i left off at home and i get the "additional items found" dialogue box pop up. i respond "add". then i get an error : "duplicate item filename". i have the choice to rename,skip or abort.i trash the preference settings. i reset the scratch disk. there are no media clips on the system with dupe names. what can i do? please do not suggest that i add a 1 to everything. i am batch capturing 30+ more tapes and each tape has 40 clips. i am not going to type 1 after each clip and do them one by one. help please. is this a meta data error on the capture drive...i wouldn't think so as i reset the capture disk to the internal to try to eliminate that as a possibility.

    bump

Maybe you are looking for

  • Help - trying to make a video and imovie won't import the required video

    the video i need has been converted using handbrak to mp4 and yet remains white when i try to import. please help as i need to make a video for work and desperately running out of time now. ruth

  • Crystal Report For Eclipse: POJO problem

    Hi all, I am using crystal report for eclipse basic version and used POJO-method to implement for users to viewing my report. I did the following: I created a sql page (create a target table) and import into crystal report (through  crystal report de

  • Unable to Delete Cell Frames With A Table

    Hi,  I've placed a linked Excel table and when I print a PDF of the table the cell borders keep showing up even though I've selected none in the stroke preferences.  Just wondering if someone can help.  ThANKS.

  • Can I re-download songs that I've already paid for?

    I lost my harddrive with my main iTunes library and my backup was a couple months old (I know, I know, stupid move). Anyway, can I re-download the songs that I'm missing that I've already paid for (and still have the elecronic receipts)? Thanks in ad

  • My back light has gone on my ipad 2

    the light on my ipad has stopped workingso im unable to use it ive tried everything to resolve the problemplugging it in to itunes rebooting it leaving battery die etc nothing seems to be work??