FRM-40600: Record has already been inserted.

I am using Form 9i.
I have written a procedure to save master-detail form which is called when WHEN-BUTTTON-PRESSED trigger written in submit button..
I have written this procedure because I am confident in writing procedure for save button. But it gives error - 'FRM-40600: Record has already been inserted.'.
When I was using default (form) for saving record, I was getting lot of message (error). I was getting confused seeing this message. That's why I have written save button procedure. I don't know whether I am doing wrong or right.
Before posting, I searched in forum also and found some post regarding this, but still I am unable to find the solution.
Anyway, I am giving you code for save procedure -
PROCEDURE save_workorder IS
v_count          NUMBER;
BEGIN
     SELECT COUNT(*) INTO v_count FROM workorder_master
                                   WHERE workorder_no = :workorder_master.workorder_no;
     IF v_count = 0 THEN
          GO_BLOCK('workorder_master');
          INSERT INTO workorder_master (
                                                                                vender_code,
                                                                                workorder_no,
                                                                                auth_rep,
                                                                                workplace,
                                                                                work_desc,
                                                                                from_dt,
                                                                                to_dt,
                                                                                tot_manpower,
                                                                                gp_manpower,
                                                                                lic_no,
                                                                                lic_recpt_no,
                                                                                lic_valid_upto,
                                                                                eic_name,
                                                                                status,
                                                                                remarks,
                                                                                entry_by,
                                                                                entry_dt)
                                                                 VALUES(
                                                                                :workorder_master.vender_code,
                                                                                :workorder_master.workorder_no,
                                                                                :workorder_master.auth_rep,
                                                                                :workorder_master.workplace,
                                                                                :workorder_master.work_desc,
                                                                                :workorder_master.from_dt,
                                                                                :workorder_master.to_dt,
                                                                                :workorder_master.tot_manpower,
                                                                                :workorder_master.gp_manpower,
                                                                                :workorder_master.lic_no,
                                                                                :workorder_master.lic_recpt_no,
                                                                                :workorder_master.lic_valid_upto,
                                                                                :workorder_master.eic_name,
                                                                                :workorder_master.status,
                                                                                :workorder_master.remarks,
                                                                                :workorder_master.entry_by,
                                                                                :workorder_master.entry_dt);
          GO_BLOCK('workorder_dtls');
          FIRST_RECORD;
          LOOP
          EXIT WHEN :workorder_dtls.labour_code IS NULL;
          IF :workorder_dtls.pass_no IS NULL THEN
               generate_pass_no;
               IF :workorder_dtls.pass_no IS NOT NULL THEN
                         :workorder_dtls.status := 'I';
                         INSERT INTO workorder_dtls (
                                                                                     labour_code,
                                                                                workorder_no,
                                                                                pass_no,
                                                                                status,
                                                                                from_dt,
                                                                                to_dt,
                                                                                cancil_dt,
                                                                                issue_dt,
                                                                                return_dt,
                                                                                entry_by,
                                                                                entry_dt)
                                                            VALUES (:workorder_dtls.labour_code,
                                                                                :workorder_dtls.workorder_no,
                                                                                :workorder_dtls.pass_no,
                                                                                :workorder_dtls.status,
                                                                                :workorder_dtls.from_dt,
                                                                                :workorder_dtls.to_dt,
                                                                                :workorder_dtls.cancil_dt,
                                                                                :workorder_dtls.issue_dt,
                                                                                :workorder_dtls.return_dt,
                                                                                :workorder_master.entry_by,
                                                                                :workorder_master.entry_dt);
               END IF;
               ELSE --if pass no is not null then it is previous record.
                    UPDATE workorder_dtls SET status           = :workorder_dtls.status,
                                                                                cancil_dt = :workorder_dtls.cancil_dt,
                                                                                return_dt = :workorder_dtls.return_dt,
                                                                                entry_by      = :workorder_dtls.entry_by,
                                                                                entry_dt      = :workorder_dtls.entry_dt
                                        WHERE labour_code = :workorder_dtls.labour_code
                                        AND workorder_no = :workorder_dtls.workorder_no
                                        AND pass_no = :workorder_dtls.pass_no;
               END IF;     
               IF :workorder_dtls.status = 'I' THEN
               UPDATE labour_master SET status = 'I'
                                   WHERE labour_code = :workorder_dtls.labour_code;
               END IF;
               IF :workorder_dtls.status = 'E' THEN
                    IF :workorder_dtls.return_dt IS NOT NULL THEN
                         UPDATE labour_master SET status = 'A'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    ELSE
                         UPDATE labour_master SET status = 'H'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    END IF;
               END IF;
               IF :workorder_dtls.status = 'B' THEN
                    IF :workorder_dtls.return_dt IS NOT NULL THEN
                         UPDATE labour_master SET status = 'A'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    ELSE
                         UPDATE labour_master SET status = 'S'
                                             WHERE labour_code = :workorder_dtls.labour_code;
                    END IF;
               END IF;
               NEXT_RECORD;
          END LOOP;
     ELSE --if workorder exist
          GO_BLOCK('workorder_master');
          UPDATE workorder_master SET     auth_rep               =     :workorder_master.auth_rep,
                                                                                workplace               =     :workorder_master.workplace,
                                                                                work_desc               =     :workorder_master.work_desc,
                                                                                from_dt                    =     :workorder_master.from_dt,
                                                                                to_dt                         =     :workorder_master.to_dt,
                                                                                tot_manpower     =     :workorder_master.tot_manpower,
                                                                                gp_manpower          =     :workorder_master.gp_manpower,
                                                                                lic_no                    =     :workorder_master.lic_no,
                                                                                lic_recpt_no     =     :workorder_master.lic_recpt_no,
                                                                                lic_valid_upto=     :workorder_master.lic_valid_upto,
                                                                                eic_name               =     :workorder_master.eic_name,
                                                                                status                    =     :workorder_master.status,
                                                                                remarks                    =     :workorder_master.remarks,
                                                                                entry_by               =     :workorder_master.entry_by,
                                                                                entry_dt               =     :workorder_master.entry_dt
                                        WHERE vender_code = :workorder_master.vender_code
                                        AND workorder_no = :workorder_master.workorder_no;
          GO_BLOCK('workorder_dtls');
          FIRST_RECORD;
          LOOP
          EXIT WHEN :workorder_dtls.labour_code IS NULL;
          IF :workorder_dtls.pass_no IS NULL THEN
               generate_pass_no;
               IF :workorder_dtls.pass_no IS NOT NULL THEN
                         :workorder_dtls.status := 'I';
                         INSERT INTO workorder_dtls (
                                                                                     labour_code,
                                                                                workorder_no,
                                                                                pass_no,
                                                                                status,
                                                                                from_dt,
                                                                                to_dt,
                                                                                cancil_dt,
                                                                                issue_dt,
                                                                                return_dt,
                                                                                entry_by,
                                                                                entry_dt)
                                                            VALUES (:workorder_dtls.labour_code,
                                                                                :workorder_dtls.workorder_no,
                                                                                :workorder_dtls.pass_no,
                                                                                :workorder_dtls.status,
                                                                                :workorder_dtls.from_dt,
                                                                                :workorder_dtls.to_dt,
                                                                                :workorder_dtls.cancil_dt,
                                                                                :workorder_dtls.issue_dt,
                                                                                :workorder_dtls.return_dt,
                                                                                :workorder_master.entry_by,
                                                                                :workorder_master.entry_dt);
               END IF;
               ELSE --if pass no is not null then it is previous record.
                    UPDATE workorder_dtls SET status           = :workorder_dtls.status,
                                                                                     cancil_dt = :workorder_dtls.cancil_dt,
                                                                                     return_dt = :workorder_dtls.return_dt,
                                                                                     entry_by      = :workorder_dtls.entry_by,
                                                                                     entry_dt      = :workorder_dtls.entry_dt
                                        WHERE labour_code = :workorder_dtls.labour_code
                                        AND workorder_no = :workorder_dtls.workorder_no
                                        AND pass_no = :workorder_dtls.pass_no;
               END IF;     
               IF :workorder_dtls.status = 'I' THEN
               UPDATE labour_master SET status = 'I'
                                   WHERE labour_code = :workorder_dtls.labour_code;
               END IF;
               IF :workorder_dtls.status = 'E' THEN
                    IF :workorder_dtls.return_dt IS NOT NULL THEN
                         UPDATE labour_master SET status = 'A'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    ELSE
                         UPDATE labour_master SET status = 'H'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    END IF;
               END IF;
               IF :workorder_dtls.status = 'B' THEN
                    IF :workorder_dtls.return_dt IS NOT NULL THEN
                         UPDATE labour_master SET status = 'A'
                                                  WHERE labour_code = :workorder_dtls.labour_code;
                    ELSE
                         UPDATE labour_master SET status = 'S'
                                             WHERE labour_code = :workorder_dtls.labour_code;
                    END IF;
               END IF;
               NEXT_RECORD;
          END LOOP;
     END IF;
     COMMIT;
END;
Thanks and regards,
Vikas

Yes Sir, why not.
This procedure is written in KEY-NEXT-ITEM of workorder_no, the only trigger in workorder_no. Block level-trigger is also there. like ON-POPULATE-DETAILS, ON-CHECK-DELETE-MASTER.
Thanks and regards,
Vikas
[HTML]
DECLARE
     V_VENDER_CODE NUMBER;
     REL_ID RELATION;
BEGIN
BEGIN     
SELECT VENDER_CODE INTO V_VENDER_CODE FROM WORKORDER_MASTER WHERE WORKORDER_NO = :WORKORDER_MASTER.WORKORDER_NO ;
               :BLK_TEMP_WORKORDER.WORKORDER_NO := :WORKORDER_MASTER.WORKORDER_NO;
               :BLK_TEMP_WORKORDER.VENDER_CODE := V_VENDER_CODE;
     IF ( (:WORKORDER_MASTER.WORKORDER_NO is not null) ) THEN  
         rel_id := Find_Relation('WORKORDER_MASTER.WORKORDER_MASTE_WORKORDER_DTLS');  
         Query_Master_Details(rel_id, 'WORKORDER_DTLS');
      SET_ITEM_PROPERTY('BLK_TEMP_WORKORDER.CB_ALL' , ENABLED , PROPERTY_TRUE);
     END IF;
               GO_BLOCK('WORKORDER_MASTER');
               EXECUTE_QUERY(NO_VALIDATE);
               GO_BLOCK('WORKORDER_MASTER_IMG');
               EXECUTE_QUERY(NO_VALIDATE);
               :WORKORDER_MASTER.VENDER_CODE := :BLK_TEMP_WORKORDER.VENDER_CODE;
               :WORKORDER_MASTER.WORKORDER_NO := :BLK_TEMP_WORKORDER.WORKORDER_NO ;
       GO_ITEM('WORKORDER_MASTER.AUTH_REP');
EXCEPTION
     WHEN NO_DATA_FOUND THEN
     MESSAGE('NO VENDER HAVING WORKORDER NO. '||:WORKORDER_MASTER.WORKORDER_NO ||' EXIST.');
     IF :WORKORDER_MASTER.VENDER_CODE IS NULL THEN
          GO_ITEM('WORKORDER_MASTER.VENDER_CODE');
     ELSE
            :BLK_TEMP_WORKORDER.WORKORDER_NO := :WORKORDER_MASTER.WORKORDER_NO;
               :BLK_TEMP_WORKORDER.VENDER_CODE := :WORKORDER_MASTER.VENDER_CODE;
            GO_BLOCK('WORKORDER_MASTER');
               EXECUTE_QUERY(NO_VALIDATE);
               GO_BLOCK('WORKORDER_MASTER_IMG');
               EXECUTE_QUERY(NO_VALIDATE);
               :WORKORDER_MASTER.VENDER_CODE := :BLK_TEMP_WORKORDER.VENDER_CODE;
               :WORKORDER_MASTER.WORKORDER_NO := :BLK_TEMP_WORKORDER.WORKORDER_NO ;
      SELECT name INTO :workorder_master.auth_rep FROM contractor_master
                                    WHERE vender_code = :workorder_master.vender_code;
      GO_ITEM('WORKORDER_MASTER.AUTH_REP');
     END IF;
END;
END;[HTML]

Similar Messages

  • Record has already been inserted?

    I get this message when trying to update a record?
    any ideas why?
    thanks a bunch!

    See the answere here:
    Inserts record when it was suposed to update it?

  • Record has already been updated by another user. Please re-query and retry

    Hi,
    I want to uncheck the option Send e-mails for canceled notifications in Workflow mailer but getting error in fouth step in workflow Notification mailer:-
    1. Connect to Oracle Applications Manager with SYSADMIN.
    2. select Workflow manager.
    3. Click on EDIT button-->Advanced(Step 1)--->next(step 2)--->next(step 3)---"ERROR"
    This record has already been updated by another user. Please re-query and try again. ORA-06512: at "APPS.FND_SVC_COMP_PARAM_VALS_PKG", line 288 ORA-06512: at line 1
    Regards,

    Pl see if MOS Doc 286418.1 (ORA-06512: At Fnd_svc_comp_param_vals_pkg When Configuring The Java Mailer) can help
    HTH
    Srini

  • Form based on a view -  FRM-40654: Record has been updated by another user.

    Hi All,
    I am hoping that somebody can help me with this problem that is occurring only when I try an update a record in forms.
    I have a block based on a join-view, I can insert no problems, but I can only update certain records within the block. If I come across a second record that is similar to the first except for primary key and a couple of other values and try and update that record forms gives me the following message FRM-40654: Record has been updated by another user. Re-query to see change.
    The first record I have no problems in updating and I have followed a number of suggestions to get this to work, like setting the key-mode of the block to updateable/non-updateable and setting the primary key to 'yes' for some of the database items. I have also created procedures within the database that are called by triggers on-insert, on-update etc.
    If anybody has any ideas how I can solve this I would be happy to hear your suggestions.
    Thanks in Advance.
    Regards,
    Scott.

    Scott,
    beside of
    1) In the block properties change the Key Mode property of the block to be Non-Updatable Primary Key
    2) Mark one or more columns as Primary Key in the item Property Palette - in this instance you would set the property for Empno.
    Enforce Primary Key = no
    Key Mode = Unique
    Update Changed Columns Only = Yes
    I found a bug entry that is supposed to be fixed in Patch 9 of Forms 6i (assuming you are running 6i). So if you could try with a more recent Patch set (e.g. 14) then probably the problem will go away.
    Fran

  • "FRM:40654 Record has been updated by another user" - Error in POST-QUERY

    Hi,
    I'm using Forms version 6.0.8.26.0
    In one of the forms, its data block is based on a view.
    In POST-QUERY trigger, I try to change the value for a database item. This operation results in following error:
    "FRM-40654: Record has been updated by another user. Re-query to see change."
    After this message the value of the item is automatically being set back to what was queried from the DB.
    I tried setting the DML Returning Value to 'Yes'. It doesn't help :(
    Any suggestions please?
    Thanks,
    Usha

    Hy
    try to set key-locking delayed
    and check
    if one field from the view as primary key
    or
    manually create On-Update, On-Insert, On-Delete and On-Lock triggers
    or
    write an INSTEAD OF TRIGGER

  • FRM-40654 Record has been updated by another user.Re-query to see change.

    Hi All:
    While Updating a record in form its updating fine at first time
    if i updating the record second time its not allowing me to update its showing following error
    FRM-40654 Record has been updated by another user.Re-query to see change.
    After Re-querying its allowing me to update the record .... so anyone can give a good idea to update the record without Re-query.
    i am using following versions
    Apps 11.5.10.2
    Forms 6i
    Database 10g

    @814950,
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    It is not good to use someone else's post to ask a new question; this is commonly refered to as "Post Hi-jacking." It is always best to create a new post and add a reference link to a similar post. Please create a new post for your question!
    Also,
    >
    BEFORE I NSERT OR U PDATE
    OF quantity, price_override
    ON po.po_line_locations_all
    >
    If I recall correctly from when I worked with the Oracle Enterprise Business Suite (EBS), the PO_LINE_LOCATIONS_ALL is an EBS ta ble. Oracle does not recommend you modify EBS tables directly. There are recommended methods for performing DML on EBS tables. I suggest you review the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    Again, please ask your question in a new post.
    Craig...
    Edited by: CraigB on Dec 1, 2010 9:29 AM

  • Crawl Error GetVirtualServerPolicyInternal - An item with the same key has already been added

    Hi,
    I did an index reset and now I can't start any crawl. It's complaining "An item with the same key has already been added".  Exception seems to from Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal. 
    What should I check? Thanks.
    The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: 9e69ff9c-f925-50bf-5110-d1b0e74c77bc; SearchID = 522CB441-0028-4E7D-BED4-4230D7ADD14B
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dm1k Medium   Exception Type: System.ArgumentException *** Message : An item with the same key has already been added. *** StackTrace:    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean
    add)     at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal(String strStsUrl, WssVersions serverVersion, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String&
    strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL)     at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicy(String
    strStsUrl, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String& strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean... 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93* mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dm1k Medium   ...& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL) 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     fsa0 Monitorable GetVirtualServerPolicy fail. error 2147755542, strStsUrl
    http://serverurl 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvt6 High     SetSTSErrorInfo ErrorMessage = Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7 hr = 80042616  [sts3util.cxx:6988] 
    search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvi3 High     Couldn't retrieve server
    http://serverurl policy, hr = 80042616  [sts3util.cxx:1865]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvu0 High     STS3::StoreCachedError: Object initialization failed.  Message:  "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7"
    HR: 80042616  [sts3util.cxx:7083]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvg4 High     Server serverurl security initialization failed, hr = 80042616 error Message Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7 
    [sts3util.cxx:1591]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dv5x High     CSTS3Accessor::InitServer: Initialize STS Helper failed. Return error to caller, hr=80042616  [sts3acc.cxx:1932]  search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dv3t High     CSTS3Accessor::InitURLType fails, Url
    http://serverurl, hr=80042616  [sts3acc.cxx:288]  search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvb1 Medium   CSTS3Accessor::Init fails, Url
    http://serverurl, hr=80042616  [sts3handler.cxx:337]  search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvb2 Medium   CSTS3Handler::CreateAccessorExD: Return error to caller, hr=80042616            [sts3handler.cxx:355]  search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Crawler:FilterDaemon         
     e4ye High     FLTRDMN: URL
    http://serverurl Errorinfo is "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7"  [fltrsink.cxx:566]  search\native\mssdmn\fltrsink.cxx 
    04/22/2015 19:37:10.93  mssearch.exe (0x1118)                    0x0628 SharePoint Server Search       Crawler:Gatherer Plugin      
     cd11 Warning  The start address http://serverurl cannot be crawled.  Context: Application 'Enterprise_Search_Service_Application', Catalog 'Portal_Content'  Details:  The SharePoint item being
    crawled returned an error when requesting data from the web service.   (0x80042616) 
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 58d54385-497b-466d-9f02-aeba664bc1b6
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 58d54385-497b-466d-9f02-aeba664bc1b6
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 58d54385-497b-466d-9f02-aeba664bc1b6

    Hi,
    For troubleshooting your issue, please take steps as below:
    1. Try to crawl your content source using farm admin account.
    2.
    Disable loopback check .
    3.Add reference  SPS3s://WEB into your content source start addresses.
    For more information, please refer to these blogs:
    http://sharepoint.stackexchange.com/questions/5215/crawling-fails-with-404-error-message-but-the-iis-log-tell-a-different-story
    http://www.cleverworkarounds.com/2011/07/22/troubleshooting-sharepoint-people-search-101/
    http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint Search Service upgrade to 2013 fails: "Inner Exception: An item with the same key has already been added."

    Here's the situation:
    Upgrading a SharePoint Server 2010 Search Service Application dB to our SharePoint 2013 SP 1 development environment, using the Management Shell
    Running the following commands: 
    $applicationPool= Get-SPServiceApplicationPool -Identity 'SearchService_AppPool'
    $searchInst = Get-SPEnterpriseSearchServiceInstance -local
    Restore-SPEnterpriseSearchServiceApplication -Name 'SearchServiceApplication' -applicationpool $applicationPool -databasename 'SearchServiceApplicationDB' -databaseserver SERVERNAME -AdminSearchServiceInstance $searchInst
    Creates the search dBs (crawl, links, analytics) successfully; however, in the end, I get....
    "Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed."
    Looking at the ULS logs, I find the following:
    Inner Exception: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.FindAndFixExistingManagedProperties()     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.InstallManagedProperties(Boolean
    upgrade)     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.Upgrade()     at Microsoft.Office.Server.Search.Upgrade.UpdateAllOOTBProperties.Upgrade()     at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
    Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed.
    at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()     at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.Upgrade()     at Microsoft.Office.Server.Search.Upgrade.SearchDatabaseSequence.Upgrade()     at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object
    o, Boolean bRecurse)
    Anyone encounter anything like this during their search upgrade process? I'm not honestly even sure what duplicate value to look for at this point, if I were to run a SELECT Id, ClassId, ParentId, Name, Status, Version, Properties FROM Objects on
    "SharePoint_Config" in SSMS. Any insight or opinions on the matter are welcome; and thanks to those who choose to reply to this, in advance.

    Hi ,
    You can enable the ULS log on verbose level (note, remember to reset to default level after finished troubleshooting) for more information per the following article, then check there should be more useful message for helping solve the issue.
    http://www.brightworksupport.com/enabling-verbose-logging-to-compare-against-c/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/12c99279-d3aa-46de-bc57-d5d250692ff0/upgrade-of-search-service-application-from-2010-to-2013-failure?forum=sharepointadmin
    https://www.simple-talk.com/blogs/2014/04/22/sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails/http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added

    Hi there,
    I recently had the following situation, where I changed the source of my CSV file in Power Query.
    Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
    But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
    But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
    This is what I get from the Call Stack
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
    If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
    Has anyone had this before and know how to fix it?
    http://www.bidn.com/blogs/guavaq

    Hi there
    I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
    Thanks
    Gilbert
    http://www.bidn.com/blogs/guavaq

  • Prometric refund not paid after cancelling an exam and my visa card has already been charged USD15 for the cancellation fee !

    Below is the email i sent to prometric following up my refund after cancelling an exam and being charged USD 15 for the cancellation fee, but no one is saying anything up to now or any explanation on when i should be receiving my refund.
    Hi,
    In regards to the above subject field and below cancellation details for an exam 070-681 - 
    TS: Windows 7 and Office 2010, Deploying.
    I have cancelled for the exam and my visa card has been charged for the cancellation fee of USD 15, but i have
    not received the refund as yet.
    Please do the needful so that i can book for another exam as soon as possible.
    Your urgency in this matter will be highly appreciated !
    Sincerely,
    Salim.
    ----- Forwarded Message -----
    From: @prometric.com" <@prometric.com>
    To:
    Sent: Monday, August 25, 2014 1:08 PM
    Subject: Prometric Exam Information (Z29LON501E)
    Dear SALIM,
    Thank you for cancelling your exam with Prometric, a leading worldwide provider of comprehensive technology-based testing and assessment services. Your cancellation request has been received and confirmed.
    Included within this e-mail is your official appointment summary. Please retain this information for your records.
    Included below are answers to frequently asked questions. Please do not reply to this e-mail. For additional assistance, you may visit our website at
    Appointment Summary
    Order Confirmation Number/Document Number: Z29LON501E
    Candidate's Name:
    SALIM MOHAMED
    Candidate Address:
    77852
    NAIROBI, KE-300 00610 Kenya
    Candidate Company:
    Candidate Primary Phone:
    Candidate Email Address:
    @yahoo.com
    Exam Details:
    Program Name:
    Microsoft (070, 071, 074, MBx)
    Exam Name/Description:
    TS: Windows 7 and Office 2010, Deploying
    Exam Number:
    070681
    Exam Language:
    U.S. ENGLISH
    Appointment Date:
    Appointment Time:
    Appointment Duration (HH:MM):
    4:00
    Please note that the appointment duration may include an exam tutorial and client survey.
    Test Site Code:
    KN7H
    Test Site Address:
    57666,00200,1st Floor, Fedha Plaza,
    MPAKA Road Junction, Westlands,
    Nairobi, 00200 Kenya
    Test Site Phone:
    0203744720/
    Payment Details:
    Exam Price/Currency:
    80.00 USD
    Discount (if any):
    0.00 USD
    VAT/GST/Sales Tax:
    0.00
    Date of Payment/Tax Point:
    24 AUG 2014
    Total Amount Paid/Currency:
    -80.00 USD
    Payment Type:
    VISA
    Cancellation Fee(if any):
    15.00 USD
    Reschedule Fees (if any):
    Payment Date
    Amount Paid
    Frequently Asked Questions
    How will I obtain a refund?
    If your credit card has already been charged and you are eligible for a refund, you will receive a refund along with a charge for any applicable fees. If a voucher was used, your same voucher number will be reactivated.
    How can I Check my Appointment Status?
    If you would like to review the status of your appointment, please visit. Choose "Candidate History" then login using your e-mail address and password.
    What if I forget my Prometric Internet password?
    If you forget your Prometric Internet password click on the following link
    You will be asked to enter your e-mail address or user name, then a new password will be mailed to you at the email address you have on file with Prometric.
    How do I update my candidate profile?
    Please take a moment and confirm that your personal information listed above is accurate, as this is how your name will appear on any certificate earned and the address to which all certificates and communication will be sent. To ensure proper
    delivery of your exam and all certification materials, Prometric must have accurate and current information. If any information needs to be updated, please visit  choose "Update Personal Information", then login using your e-mail address and
    password.
    Please note: This address reflects your permanent, home address. To ensure delivery of official correspondence and certification material, you may also provide name and address information in your
    country's official language.
    Can I contact Prometric with specific questions?
    If you have taken your test, plan to take a test with Prometric, or have any other concerns, please follow the appropriate links below to help solve your issues:

    Hello,
    The TechNet Wiki Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
    Please note that this forum exists to discuss TechNet Wiki as a technology/application.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Error : The label 'http' has already been declared. Label names must be unique within a query batch or stored procedure.

    Hi all,
        I have created one SP for sending mail with formatting the HTML code inside script whenever i am individually declaring it and printing its expected but the problem at time of executing SP its giving error like this
    Msg 132, Level 15, State 1, Line 47
    The label 'http' has already been declared. Label names must be unique within a query batch or stored procedure.
    what is the possibilities to overcome this problem follwing is my stored procedure code 
    ALTER PROCEDURE [dbo].[USP_DataLoadMailsend_essRules]
    AS
    BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
    BEGIN TRY
    ---BEGIN TRANSACTION T1
    DECLARE @packagelogid INT
    DECLARE @batchlogid INT
    DECLARE @packagestatus CHAR(2)
    select @batchlogid =19870
    --print(@batchlogid)
    DECLARE @script VARCHAR(MAX)
    DECLARE @tableHTML VARCHAR(MAX)
    DECLARE @mailheader VARCHAR(50)
    DECLARE @count INT
    DECLARE @recipients1 VARCHAR(50)
    DECLARE @subject1 VARCHAR(200)
    DECLARE @sql VARCHAR(MAX)
    Declare @UserId varchar(Max)
    Declare @Information varchar(max)
    Declare @TableHTML1 varchar(max)
    Declare @TableHTML2 varchar(max)
    SET @mailheader = ''
    SET @mailheader = (select case
    WHEN FileUpload = 'F'
    THEN 'BussinessRules is Aborted'
    WHEN (InRule = 'S')
    AND (
    SELECT sum(isnull(ErrorRecords, 0)) tot
    FROM abc.FileUploadSummary z
    WHERE z.BatchId = bts.BatchId
    GROUP BY BatchId
    ) > 0
    THEN 'BussinessRules is Processed with Errors'
    WHEN InRule = 'F'
    THEN 'BussinessRules is Failed'
    WHEN (InRule = 'S')
    AND (
    SELECT sum(isnull(ErrorRecords, 0)) tot
    FROM abc.FileUploadSummary z
    WHERE z.BatchId = bts.BatchId
    GROUP BY BatchId
    ) = 0
    THEN 'BussinessRules is Succeeded'
    end
    from abc..BatchStatus bts where BatchId=@batchlogid)
    /* Selecting Person Mail as Recipient */
    SELECT TOP 1 @recipients1 = EmailId FROM abc.PersonEmail
    WHERE PersonId = ( SELECT TOP 1 personid FROM abc.FileUploadSummary WHERE BatchId = @batchlogid )AND EmailTypeId = 1
    /* Selecting UserId*/
    select top 1 @UserId=loginid from abc.FUS where BatchId=@batchlogid
    /*Selecting Information about the Status */
    Set @Information=
    (select case
    WHEN FileUpload = 'F'
    THEN 'BussinessRules is Aborted'
    WHEN (InRule = 'S')
    AND (
    SELECT sum(isnull(ErrorRecords, 0)) tot
    FROM abc.FileUploadSummary z
    WHERE z.BatchId = bts.BatchId
    GROUP BY BatchId
    ) > 0
    THEN 'BussinessRules is Processed with Errors'
    WHEN InRule = 'F'
    THEN 'BussinessRules is Failed'
    WHEN (InRule = 'S')
    AND (
    SELECT sum(isnull(ErrorRecords, 0)) tot
    FROM abc.FileUploadSummary z
    WHERE z.BatchId = bts.BatchId
    GROUP BY BatchId
    ) = 0
    THEN 'BussinessRules is Succeeded'
    end + N' <br> <B>BatchId= '+ convert(varchar(250),(select @batchlogid)) +'</B>'
    from abc..BatchStatus bts where BatchId=@batchlogid )
    /*Selecting the Error Reason*/
    if exists (select 1 from BatchStatus where BatchId=@batchlogid and ( InRule='f'))
    begin
    set @TableHTML1 = '<table border=1><tr><th>Sr.No.</th><th><P>Error Reason :</th></tr>'+
    cast((select td= ROW_NUMBER()over (order by (select 1)),'',
    td=isnull(e.ErrorDescription, '')
    from abc.x.tbPackageErrorLog e --50594
    join abc.x.tbPackageLog p -- 10223
    on p.PackageLogID=e.PackageLogID
    where p.BatchLogID= @batchlogid FOR XML PATH('tr'), TYPE )
    as NVarchar(max)) +'</table>'
    -- print @tableHTML
    if not exists (select 1 from BatchStatus where BatchId=@batchlogid and ( InRule='f'))
    set @TableHTML2 = 'Error Reason :N/A'
    end
    -- insert into #tmp values ( @TableHTML1)
    --select * from #tmp
    Set @tableHTML= 'Hello '+@UserId+', <br>Information:'+isnull(@Information,'') +
    '<Table Border=1><Tr><th>Sr No</th><th>Uploaded files </th>:'+
    CAST ((select td= ROW_NUMBER()over(order by f.FileUploadId), '',
    td = f.TableName , ''
    from abc.FileUploadSummary F where BatchId=@batchlogid
    FOR XML PATH('tr'), TYPE ) AS NVARCHAR(max) )
    +'</table>'+
    'Error Reason :'+isnull(isnull(@TableHTML1,'')+ isnull(@TableHTML2,''),'N/A')+ --concat (isnull(@TableHTML1,''),isnull(@TableHTML2,'')
    '<br> Please login to Your Account for further Details..!'
    +'<br>@Note: This is system generated message, Do not reply to this mail. <br>Regards,<br>'+
    'Admin'
    print @tableHTML
    SET @sql = ' EXEC msdb.dbo.sp_send_dbmail @profile_name = ''DBA_mail_test''
    ,@recipients = ''' + isnull(@recipients1,'''') + ''',@subject = ''' + isnull(@mailheader,'''') + ''',
    @body = ''' +isnull(@tableHTML,'''')+ ''',
    @body_format = ''HTML'''
    Exec(@sql)
    END TRY
    BEGIN CATCH
    PRINT error_message()
    -- Test whether the transaction is uncommittable.
    -- IF (XACT_STATE()) = - 1
    -- ROLLBACK TRANSACTION --Comment it if SP contains only select statement
    DECLARE @ErrorFromProc VARCHAR(500)
    DECLARE @ErrorMessage VARCHAR(1000)
    DECLARE @SeverityLevel INT
    SELECT @ErrorFromProc = ERROR_PROCEDURE()
    ,@ErrorMessage = ERROR_MESSAGE()
    ,@SeverityLevel = ERROR_SEVERITY()
    --INSERT INTO dbo.ErrorLogForUSP (
    -- ErrorFromProc
    -- ,ErrorMessage
    -- ,SeverityLevel
    -- ,DateTimeStamp
    --VALUES (
    -- @ErrorFromProc
    -- ,@ErrorMessage
    -- ,@SeverityLevel
    -- ,GETDATE()
    END CATCH
    END
    please help me to solve this problem
    Niraj Sevalkar

    This is no string http in your procedure. Then again the error message points to a line 47 outside a stored procedure. I can't tell it is outside, since there is no procedure name.
    But I see that you have this piece of dynamic SQL:
    SET @sql = ' EXEC msdb.dbo.sp_send_dbmail @profile_name = ''DBA_mail_test''
    ,@recipients = ''' + isnull(@recipients1,'''') + ''',@subject = ''' + isnull(@mailheader,'''') + ''',
    @body = ''' +isnull(@tableHTML,'''')+ ''',
    @body_format = ''HTML'''
     Exec(@sql)
    Why is this dynamic SQL at all? Why not just make plain call to sp_send_dbmail?
     EXEC msdb.dbo.sp_send_dbmail @profile_name = 'DBA_mail_test'
    ,@recipients = @recipients1, @subject = @mailheader, @body = @tableHTML
    Erland Sommarskog, SQL Server MVP, [email protected]

  • [ServletException in:VIView1_Browse.do] Response has already been committed

    Hi,
    I have a JSP-Struts application. By the default generation, JDeveloper build a main.html Page. This page have many Frames and one Frame is "navFrame". On this frame I have a link for a JSP Page : Browse. The call is OK. No Problems.
    No I have another Page with Tiles :
    <template:insert page="IMDLayout.jsp" flush="true">
    <template:put name="title" value="Invoices Interface" />
    <template:put name="header" value="/tiles/common/header.jsp" />
    <template:put name="footer" value="/tiles/common/footer.jsp" />
    <template:put name="menu" value="/tiles/common/menu.jsp" />
    <template:put name="body" value="VInvoiceUsersView1_Browse.do" />
    </template:insert>
    The "body" Tiles call the same JSP Page as the link on the "navFrame", but now I have the following error :
    [ServletException in:VInvoiceUsersView1_Browse.do] Response has already been committed'
    Why ?
    Please help me, I need a solution. Does somebody use BC4J/Struts/Tiles ? Any Experience ? Problem ?
    Thanks
    Yves

    This is a somewhat common problem for people who are using Struts and frames.
    What I have found to work was to create an action which calls the page (say index.jsp) which then sets up the frames or tiles..

  • Please note that the quote/cart has already been placed as an order and cannot be modified.

    Hi All,
    Currently we are trying to create an istore order and while doing so when we add an item to the cart, the shopping cart throws the error "please note that the quote/cart has already been placed as an order and cannot be modified". This is happening with a particular user alone. We had created an order earlier and this got converted from quote to order. Now when we created a new one this error is appearing. Also  there are no records in the table IBE_ACTIVE_QUOTES_ALL for that user for any active carts.  Please provide the suggestions. I have cleared the cache bounced the istore server and logged out and logged in and still the issue is existing.
    Thanks

    Hello,
    Please confirm there is no active cart
    Confirm data in ibe_active_quotes_all 
    SQL>select active_quote_id, order_header_id, quote_header_id
    from ibe_active_quotes_all
    where party_id = &partyid
    and cust_account_id = &cust_id;
    To get values -
    select customer_id from fnd_user where user_name = <iStore username >    ==> value 1
    select person_party_id from fnd_user where user_name = <iStore username>
    select object_id from hz_relationship where subject_id = <above person_party_id>
    select cust_account_id from hz_cust_accounts where party_id =<above object_id>   ==> value 2
    Confirm data is in synch in the Quoting table aso_quote_headers_all :
    SQL> select order_id from aso_quote_headers_all
    where quote_header_id = &from above;
    If an active cart is found you can delete -
    delete from ibe_active_quotes_all where party_id = <value 1> and cust_account_id = <value 2> and record_type= 'CART';
    >> this will remove the active cart of the user, hence you can proceed with next cart.
    Reference related discussion:
    How To Delete Active iStore Shopping Cart For An User (Doc ID 1261926.1)
    Thank you,
    Debbie

  • IllegalStateException: getOutputStream() has already been called

    Hi guys,
    I am writing JSP to retrieve data from database and export to the user as csv or zip file. It has to be binary. I would like to a download dialog to show up and allow users to choose where to save the exported file.
    Funcitonally, it works fine althrough I get an error page saying nothing to display. But it always complains that IllegalStateException: getOutputStream() has already been called for this session. I have done much research and testing, but....in vain.
    Hope somebody could help me with this. so frustrated that I am about to explode.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="application/octet-stream">
            <title>Load Page</title>
        </head>
        <body >
            <% OutputStream outRes = response.getOutputStream( ); %><%@page contentType="application/octet-stream"%><%
            %><%@page pageEncoding="UTF-8" import="java.sql.*,java.io.*,java.util.*,java.util.zip.*,java.math.BigDecimal;"%><%
            %><%
            try {
                Class.forName(ResourceBundle.getBundle("map").getString("driver"));
            } catch (ClassNotFoundException ex) {
               //ex.printStackTrace();
               return;
            String EXPORT_DIR = ResourceBundle.getBundle("map").getString("SUBMITTAL_EXPORT_DIR");
            String EXPORT_NAME = ResourceBundle.getBundle("map").getString("SUBMITTAL_NAME");
            String EXPORT_ZIP_NAME = ResourceBundle.getBundle("map").getString("SUBMITTAL_ZIP_NAME"); 
            String sqlQuery = "SELECT EMP_ID, EMP_NAME FROM EMP";
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            OutputStream expStream = null;
            boolean success = false;
            try {
                //out.println("<p>Connecting to the source database ...");
                // establish database connection
                conn = DriverManager.getConnection(
                        ResourceBundle.getBundle("map").getString("sqlurl"),
                        ResourceBundle.getBundle("map").getString("ORACLE_DBUSER"),
                        ResourceBundle.getBundle("map").getString("ORACLE_DBPASSWORD") );
                stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
                rs = stmt.executeQuery(sqlQuery);
                //out.println("Done</p>");
                // open a file to write
                File exportFile = new File(EXPORT_DIR + File.separatorChar + EXPORT_NAME);
                if (exportFile.exists())  exportFile.delete();
                exportFile.createNewFile();
                expStream = new BufferedOutputStream(new FileOutputStream(exportFile));
                // iterate all records to save them to the file
                //out.print("<p>Exporting the table data ...");
                while(rs.next()) {
                    String recordString = "";
                    ResultSetMetaData metaData = rs.getMetaData() ;
                    int colCount = metaData.getColumnCount();
                    for(int i=1; i<=colCount; i++) {
                        int colType = metaData.getColumnType(i);
                        switch(colType) {
                            case Types.CHAR: {
                                String sValue = rs.getString(i);
                                if (rs.wasNull())
                                    recordString += ("'',");
                                else
                                    recordString += ("'"+ sValue + "',");
                                break;
                            case Types.VARCHAR: {
                                String sValue = rs.getString(i);
                                if (rs.wasNull())
                                    recordString += ("'',");
                                else
                                    recordString += ("'"+ sValue + "',");
                                break;
                            case Types.FLOAT: {
                                float fValue = rs.getFloat(i);
                                if (rs.wasNull())
                                    recordString += (",");
                                else
                                    recordString += (fValue + ",");
                                break;
                            case Types.DOUBLE: {
                                double dbValue = rs.getDouble(i);
                                if (rs.wasNull())
                                    recordString += (",");
                                else
                                    recordString += (dbValue + ",");
                                break;
                            case Types.INTEGER: {
                                int iValue = rs.getInt(i);
                                if (rs.wasNull())
                                    recordString += (",");
                                else
                                    recordString += (iValue + ",");
                                break;
                            case Types.NUMERIC: {
                                BigDecimal bdValue = rs.getBigDecimal(i);
                                if (rs.wasNull())
                                    recordString += (",");
                                else
                                    recordString += (bdValue + ",");
                                break;
                            default:
                                out.println("<p><font color=#ff0000> Unidentified Column Type "
                                        + metaData.getColumnTypeName(i) + "</font></p>"); */
                                success = false;
                                return;
                    recordString = recordString.substring(0, recordString.length()-1);
                    expStream.write(recordString.getBytes());
                    expStream.write((new String("\n")).getBytes());
                expStream.flush();
                //out.println("Done</p>");
                //out.println("<p>Data have been exported to " + filepath + "</p>");
                success = true;
            } catch (SQLException ex) {
               //out.println(ex.getStackTrace());
            } catch (IOException ex) {
               //out.println(ex.getStackTrace());
            } finally {
                if (expStream != null) {
                    try {
                        expStream.close();
                    } catch (IOException ex) {
                       // out.println(ex.getStackTrace());
                if (rs != null) {
                    try {
                        rs.close();
                    } catch(SQLException ex) {
                        //out.println(ex.getStackTrace());
                if (stmt != null) {
                    try {
                        stmt.close();
                    } catch(SQLException ex) {
                       // out.println(ex.getStackTrace());
                if(conn != null) {
                    try {
                        conn.close();
                    } catch(SQLException ex) {
                       // out.println(ex.getStackTrace());
            if (!success) return;
             * compress the exported CSV file if necessary
            int DATA_BLOCK_SIZE = 1024;
            if (request.getParameter("zip")!=null && request.getParameter("zip").equalsIgnoreCase("true")) {
                success = false;
                BufferedInputStream sourceStream = null;
                ZipOutputStream targetStream = null;
                try {
                    File zipFile = new File(EXPORT_DIR + File.separatorChar + EXPORT_ZIP_NAME);
                    if (zipFile.exists())  zipFile.delete();
                    zipFile.createNewFile();
                    FileOutputStream fos = new FileOutputStream ( zipFile );
                    targetStream = new ZipOutputStream ( fos );
                    targetStream.setMethod ( ZipOutputStream.DEFLATED );
                    targetStream.setLevel ( 9 );
                     * Now that the target zip output stream is created, open the source data file.
                    FileInputStream fis = new FileInputStream ( EXPORT_DIR + File.separatorChar + EXPORT_NAME );
                    sourceStream = new BufferedInputStream ( fis );
                    /* Need to create a zip entry for each data file that is read. */
                    ZipEntry theEntry = new ZipEntry ( EXPORT_DIR + File.separatorChar + EXPORT_NAME );
                     * Before writing information to the zip output stream, put the zip entry object
                    targetStream.putNextEntry ( theEntry );
                    /* Add comment to zip archive. */
                    //targetStream.setComment( "comment" );
                    /* Read the source file and write the data. */
                    byte[] buf = new byte[DATA_BLOCK_SIZE];
                    int len;
                    while ( ( len = sourceStream.read ( buf, 0, DATA_BLOCK_SIZE ) ) >= 0 ) {
                        targetStream.write ( buf, 0, len );
                     * The ZipEntry object is updated with the compressed file size,
                     * uncompressed file size and other file related information when closed.
                    targetStream.closeEntry ();
                    targetStream.flush ();
                    success = true;
                } catch ( FileNotFoundException e ) {
                    //e.printStackTrace ();
                } catch ( IOException e ) {
                    //e.printStackTrace ();
                } finally {
                    try {
                        if (sourceStream != null)
                            sourceStream.close ();
                        if (targetStream != null)
                            targetStream.close ();
                    } catch(IOException ex) {
                        //ex.printStackTrace();
                if (!success) return;
             * prompt the user to download the file
            //response.setContentType("text/plain");
            //response.setContentType( "application/octet-stream" );
            InputStream inStream = null;
            //OutputStream outRes = null;
            try {
                if (request.getParameter("zip")!=null && request.getParameter("zip").equalsIgnoreCase("true")) {
                    response.setHeader("Content-Disposition", "attachment;filename=" + EXPORT_ZIP_NAME);
                    inStream = new BufferedInputStream(new FileInputStream(EXPORT_DIR + File.separatorChar + EXPORT_ZIP_NAME));
                else {
                    response.setHeader("Content-Disposition", "attachment;filename=" + EXPORT_NAME);
                    inStream = new BufferedInputStream(new FileInputStream(EXPORT_DIR + File.separatorChar + EXPORT_NAME));
                out.clearBuffer();
                //outRes = response.getOutputStream(  );
                byte[] buf = new byte[4 * DATA_BLOCK_SIZE];  // 4K buffer
                int bytesRead;
                while ((bytesRead = inStream.read(buf)) != -1) {
                    outRes.write(buf, 0, bytesRead);
                outRes.flush();
                int byteBuf;
                while ( (byteBuf = inStream.read()) != -1 ) {
                    out.write(byteBuf);
                out.flush();
            } catch (IOException ex) {
                //ex.printStackTrace();
            finally {
                try {
                    if (inStream != null)
                        inStream.close();
                    if (outRes != null)
                        outRes.close();
                } catch(IOException ex) {
                    //ex.printStackTrace();
          %>
        </body>
    </html>

    So I went to the API: http://java.sun.com/j2ee/1.4/docs/api/
    Looked up ServletResponse, then looked for the getOutputStream() method. It says:
    "Throws:
    IllegalStateException - if the getWriter method has been called on this response"
    You can call only one of the getWriter or getOutputStream methods, not both. You are calling both. When you use a JSP, a variable called 'out' is generated (a PrintWriter) from the the Writer you get when response.getWriter() is called. This is done before your code gets executed as one of the functions that occur when a JSP is translated to a Servlet. You then write to that out variable when you print the HTML in the JSP code.
    This is best done in a Servlet, not a JSP, since there is no display and you require control over the servlet response.

  • Item has already been added. Key in dictionary: '???' Key being added: '???'

    Since 1 week I am unable to access any of the Sharepoint 2010 sites that exist in my farm. The error that is shozn is:
    Item has already been added. Key in dictionary: '???'  Key being added:
    Here is the stacktrace:
    [ArgumentException: Item has already been added. Key in dictionary: '???' Key being added: '???']
    System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +10065554
    System.Collections.Specialized.StringDictionary.Add(String key, String value) +89
    Microsoft.SharePoint.SPWeb.GetProperties() +563
    Microsoft.SharePoint.Utilities.SPPropertyBag..ctor(GetProperties getProperties, UpdateProperties updateProperties) +62
    Microsoft.SharePoint.SPWeb.get_Properties() +130
    Microsoft.Office.Server.Utilities.PageUtility.GetPagesListName(SPWeb web) +39
    Microsoft.SharePoint.Publishing.PublishingWeb.get_PagesListName() +152
    Microsoft.SharePoint.Publishing.CachedArea..ctor(PublishingWeb area, String id, String parentId, CachedUserResource title, String url, CachedUserResource description, CachedObjectFactory factory) +3914
    Microsoft.SharePoint.Publishing.CachedArea.CreateCachedArea(PublishingWeb area, CachedObjectFactory factory, String parentId) +590
    Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateWebFromUrlNoUpperCase(String url, Guid webIdHint, String urlCaseHint) +555
    Microsoft.SharePoint.Publishing.WebControls.ConsoleUtilities.IsMasterPageGalleryUrlForSite(Uri uri) +117
    Microsoft.SharePoint.Publishing.WebControls.ConsoleVisibleUtilities.ConsoleAppliesInCurrentContext() +41
    Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingRibbon.OnLoad(EventArgs e) +95
    System.Web.UI.Control.LoadRecursive() +66
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    Also, when I am trying to access my homepage on the root sitecollection, I see this error:
    The DataSourceID of 'V4QuickLaunchMenu' must be the ID of a control of
    type IHierarchicalDataSource.  A control with ID 'QuickLaunchSiteMap' could not
    be found.

    Recently have you removed, deleted, changed password of any account used in sharepoint.
    Check in > Security > Manage account
    Check in IIS > Application pool, if any pool is stopped.
    If you have a old copy of web.config files, check if they were modified.
    Was any new solution\wsp deployed in farm
    please share ULS logs, event viewer and fiddler traces.
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for