Link to the newly created lead in a workflow email - possible?

Hi there - looking for some help. I've created a workflow that initiates an email to a specific user when a lead is created with Billing Country as "USA". What I would like to see in the body of the email is a link to the lead so the end-user can click on it and go directly to the new lead. Do you know if this is possible? I've done something similar with service requests (linking directly to the SR in question in the body of the email), but I received a voicemail from Oracle Customer Service today letting me know it is impossible and that they will log-it as an enhancement request.
Help?

Can this be done for an account or contact? For example here is a link to an Account of ours:
https://secure-ausomxaya.crmondemand.com/OnDemand/user/AccountDetail?ocTitle=XXXXXXX&OMTGT=AccountDetailForm&OMTHD=AccountDetailNav&ocEdit=Y&AccountDetailForm.Id=XXXXXXXXX&OCTYPE=Ad+Agency&ocTitleField=Name
The first set of X's are the Account Name separated by + signs and the second looks to be the row ID. I doesn't appear I can just insert the Account Name into the X's because the formatting would be off. Does anyone know how to get this to work?

Similar Messages

  • The newly created row cannot be found with another view

    I'm building a JSP client based on BC.
    I have 2 views based on the single entity.
    I'm creating a new row with one view and want to edit the corresponding row with the other view without intermediate commit.
    However, the last view cannot find the new row.
    For the purpose I get the newly created row's key and trying to find the row at the other view by it's RowKey with the tag <jbo:Row>. Now I have an exception:
    oracle.jbo.JboException: Row was not found using request parameter ...
    Can someone give an advice, please?

    Hi,
    I was a little uncertain. I do not have any view associations in this case.
    I've tried to use " .setAssociationConsistent(true)" - dosen't help.
    I've just changed the standard wizard-generated Browse-Edit UIX/JSP form in such way that I'm using one VO for the browse-table jsp, and some other VO for editing jsp. The editing jsp is by itself divided into a number of tabs.
    Every tab of the editing jsp is based on a specific VO and all of the VOs are based on the single Entity Object to the one table.
    While I am editing the existing records in the table everything goes right, but if I create a new row via the browse page and then try to edit it, I have the exception:
    " Row was not found using request parameter: .... " This thread is continued in another post
    Re: ORA-03113 end of file on communication channel error
    There is a bug with hanlding of viewlink-consistency and DBsequence in Jdev 9.0.2 that leads to this issue as discussed in the other thread.

  • How to assign project specific task with the newly created projects ?

    Hi All,
    I need help. I need to assign project specific tasks (which i will be taking from staging table) other than the default task which are assigned during project creation. How do I proceed with this within same package. I am attaching the code of my package below...
    CREATE OR REPLACE PACKAGE body xxpa_proj_conv_pkg as
    PROCEDURE xxpa_create_project_proc(O_ERRBUF OUT VARCHAR2,O_RETCODE OUT VARCHAR2)
    is
    variables need to derive global parameters
    v_responsibility_id NUMBER; --- PA Supervisor responsibility id
    v_user_id NUMBER;
    deriving global parameters-
    -- Variables needed for API standard parameters
    v_api_version_number NUMBER := 1.0;
    v_commit VARCHAR2(1) := 'F';
    v_return_status VARCHAR2(1);
    v_init_msg_list VARCHAR2(1) := 'F';
    v_msg_count NUMBER;
    v_msg_index_out NUMBER;
    v_msg_data VARCHAR2(2000);
    v_data VARCHAR2(2000);
    v_workflow_started VARCHAR2(1) := 'Y';
    v_pm_product_code VARCHAR2(10);
    ---variables for catching errors---
    v_error_flag number:=0;
    -- Predefined Composite data types
    v_project_in PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
    v_project_out PA_PROJECT_PUB.PROJECT_OUT_REC_TYPE;
    v_key_members PA_PROJECT_PUB.PROJECT_ROLE_TBL_TYPE;
    v_class_categories PA_PROJECT_PUB.CLASS_CATEGORY_TBL_TYPE;
    v_tasks_in_rec PA_PROJECT_PUB.TASK_IN_REC_TYPE;
    v_tasks_in PA_PROJECT_PUB.TASK_IN_TBL_TYPE;
    v_tasks_out_rec PA_PROJECT_PUB.TASK_OUT_REC_TYPE;
    v_tasks_out PA_PROJECT_PUB.TASK_OUT_TBL_TYPE;
    v_CREATED_FROM_PROJECT_ID varchar2(20);
    v_CARRYING_OUT_ORGANIZATION_ID varchar2(20);
    v_person_id NUMBER;
    v_project_role_type VARCHAR2(20);
    API_ERROR EXCEPTION;
    v_a NUMBER;
    cursor for project in data
    CURSOR cur_project_in_data IS SELECT * FROM XXPA_PROJECT_IN_STG;
    cursor for task data
    CURSOR cur_task_in_data IS SELECT * FROM XXPA_TASK_IN_STG;
    ------------------------Cursors used for validations----------------------------------
    cursor for product code used for validation
    cursor cprc is select distinct PROJECT_RELATIONSHIP_CODE from PA_PROJECT_CUSTOMERS;
    cursor for distribution rule-
    cursor cdr is select DISTRIBUTION_RULE from PA_DISTRIBUTION_RULES;
    cursor for project status code
    cursor cpsc is SELECT PROJECT_STATUS_CODE, PROJECT_STATUS_NAME FROM PA_PROJECT_STATUSES WHERE STATUS_TYPE = 'PROJECT';
    cursor for template/created from project id
    cursor ccpid is select project_id from pa_projects where template_flag='Y';
    BEGIN
    select user_id, responsibility_id into v_user_id, v_responsibility_id
    from PA_USER_RESP_V
    where user_name like 'amit_kumar%'
    and responsibility_name like'PA SupervisorS';
    -- --Fnd_global.apps_initialize(user_id,resp_id, resp_appl_id);
    -- Fnd_global.apps_initialize(v_user_id,v_responsibility_id,275);
    -- -------calling global parameters---
    pa_interface_utils_pub.set_global_info
    p_api_version_number =>v_api_version_number,
    p_responsibility_id =>v_responsibility_id,
    p_user_id =>v_user_id,
    p_msg_count =>v_msg_count,
    p_msg_data =>v_msg_data,
    p_return_status =>v_return_status
    dbms_output.put_line ('Set Global status ->' || v_return_status);
    ----Cursor for PRODUCT RELATED DATA-----------
    FOR REC IN cur_project_in_data LOOP
    -----PASSING VALUES TO THE COMPOSITE DATA TYPE(PROJECT_IN_REC_TYPE)-------
    ----retrieving product code-----
    select lookup_code into v_pm_product_code
    from pa_lookups
    where lookup_type = 'PM_PRODUCT_CODE'
    and meaning = 'Oracle Project Manufacturing';
    -----retrieving and validating created from project id----
    BEGIN
    select project_id
    into v_CREATED_FROM_PROJECT_ID
    from pa_projects_all
    where name=rec.created_from_project_name;
    EXCEPTION
    when others then
    O_Retcode := '1';
    O_Errbuf :='Incorrent CREATED_FROM_PROJECT_NAME';
    Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
    UPDATE XXPA.XXPA_PROJECT_IN_STG
    SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where created_from_project_name = rec.CREATED_FROM_PROJECT_NAME;
    END;
    -----retrieving & validating carrying out organization id-----
    BEGIN
    select distinct(CARRYING_OUT_ORGANIZATION_ID)
    into v_CARRYING_OUT_ORGANIZATION_ID
    from pa_projects_prm_v
    where CARRYING_OUT_ORGANIZATION_NAME=rec.carrying_out_organization_name;
    EXCEPTION
    when others then
    O_Retcode := '1';
    O_Errbuf :='Incorrent Carrying Out Organization name';
    Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
    UPDATE XXPA.XXPA_PROJECT_IN_STG
    SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where carrying_out_organization_name = rec.carrying_out_organization_name;
    END ;
    v_project_in.pm_project_reference := rec.segment1;
    v_project_in.project_name := rec.PROJECT_NAME;
    v_project_in.created_from_project_id := v_CREATED_FROM_PROJECT_ID;
    v_project_in.carrying_out_organization_id := v_CARRYING_OUT_ORGANIZATION_ID;
    v_project_in.project_status_code := rec.PROJECT_STATUS_CODE;
    v_project_in.description := rec.PROJECT_DESCRIPTION;
    v_project_in.start_date := rec.PROJECT_START_DATE;
    v_project_in.completion_date := rec.PROJECT_COMPLETION_DATE;
    v_project_in.distribution_rule := rec.DISTRIBUTION_RULE;
    v_project_in.project_relationship_code := rec.PROJECT_RELATIONSHIP_CODE;
    -------------------------Validation of incoming project data--------------------------------
    v_error_flag := 1;
    project relationship code validation
    BEGIN
    for prc in cprc
    loop
    if (rec.PROJECT_RELATIONSHIP_CODE=prc.PROJECT_RELATIONSHIP_CODE) or (rec.PROJECT_RELATIONSHIP_CODE is null)--can be overridden from template
    then
    v_error_flag :=0;
    else null;
    end if;
    end loop;
    END;
    project distribution rule validation
    BEGIN
    for dr in cdr
    loop
    if (rec.DISTRIBUTION_RULE=dr.DISTRIBUTION_RULE) or (rec.DISTRIBUTION_RULE is null) null since the value can be taken from template too
    then
    v_error_flag :=0;
    else null;
    end if;
    end loop;
    END;
    project status code validation
    BEGIN
    for sc in cpsc
    loop
    if (rec.PROJECT_STATUS_CODE=sc.PROJECT_STATUS_CODE) or (rec.PROJECT_STATUS_CODE is null) null since the value can be taken from template too
    then
    v_error_flag :=0;
    else null;
    end if;
    end loop;
    END;
    dbms_output.put_line ('Error at PROJECT_STATUS_CODE>' ||v_error_flag);
    validation logic for project start date
    BEGIN
    if TRUNC(rec.PROJECT_START_DATE) >= TRUNC(rec.PROJECT_COMPLETION_DATE)
    THEN
    v_error_flag := 1;
    O_Retcode := '1';
    O_Errbuf :='Project start date cannnot be greater than completion date';
    Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
    END IF;
    END;
    validation logic for project completion date
    BEGIN
    if (TRUNC(rec.PROJECT_COMPLETION_DATE)<=TRUNC(rec.PROJECT_START_DATE))
    then
    if ( rec.PROJECT_STATUS_CODE='CLOSED' and rec.PROJECT_COMPLETION_DATE>sysdate)
    THEN
    v_error_flag := 1;
    O_Retcode := '1';
    O_Errbuf :='completion date cannot be greater than sysdate for closed projects';
    Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
    END IF;
    v_error_flag := 1;
    O_Retcode := '1';
    O_Errbuf :='Project closed date cannot be less than start date';
    end if;
    END;
    --------Update staging table for the error records--------
    BEGIN
    if v_error_flag =1
    then
    O_Retcode := '1';
    O_Errbuf :='Incorrect project relationship code';
    Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
    UPDATE XXPA.XXPA_PROJECT_IN_STG
    SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where PROJECT_RELATIONSHIP_CODE = rec.PROJECT_RELATIONSHIP_CODE;
    end if;
    END;
    -----------------------End of validation of incoming project data----------------------------------
    ---------------Project Task DATA-----------------
    v_a:=0;
    FOR tsk IN cur_task_in_data LOOP
    v_tasks_in_rec.pm_task_reference :=tsk.task_reference ;
    v_tasks_in_rec.task_name :=tsk.task_name;
    v_tasks_in_rec.pm_parent_task_reference :=tsk.parent_task_reference ;
    v_tasks_in_rec.task_start_date :=tsk.task_start_date ;
    v_tasks_in_rec.task_completion_date :=tsk.task_completion_date ;
    v_tasks_in(v_a) := v_tasks_in_rec;
    v_a:=v_a+1;
    end loop;
    ---------------end of task details------------------
    --INIT_CREATE_PROJECT
    pa_project_pub.init_project;
    ---------------------CREATE_PROJECT--------------------------
    pa_project_pub.create_project(
    p_api_version_number=> v_api_version_number,
    p_commit => v_commit,
    p_init_msg_list => v_init_msg_list,
    p_msg_count => v_msg_count,
    p_msg_data => v_msg_data,
    p_return_status => v_return_status,
    p_workflow_started => v_workflow_started,
    p_pm_product_code => v_pm_product_code,
    p_project_in => v_project_in,
    p_project_out => v_project_out,
    p_key_members => v_key_members,
    p_class_categories => v_class_categories,
    p_tasks_in => v_tasks_in,
    p_tasks_out => v_tasks_out);
    if v_return_status = 'S'
    then
    UPDATE XXPA.XXPA_PROJECT_IN_STG
    SET INTERFACE_STATUS ='Success' where segment1 = v_project_out.pa_project_number; ---P->pending & S-> Success
    dbms_output.put_line('New Project Id: ' || v_project_out.pa_project_id);
    dbms_output.put_line('New Project Number: ' || v_project_out.pa_project_number);
    else
    UPDATE XXPA.XXPA_PROJECT_IN_STG
    SET INTERFACE_STATUS ='Pending' where segment1 = v_project_out.pa_project_number;
    raise API_ERROR;
    end if;
    END LOOP;
    Commit;
    ------Handling Exception--------
    EXCEPTION
    WHEN api_error THEN
    dbms_output.put_line('An error occured during project creation');
    IF (v_msg_count > 0 ) THEN
    FOR i IN 1..v_msg_count LOOP
    apps.PA_INTERFACE_UTILS_PUB.get_messages(
    p_msg_count => v_msg_count,
    p_encoded => 'F',
    p_msg_index => i,
    p_msg_data => v_msg_data,
    p_data => v_data,
    p_msg_index_out => v_msg_index_out);
    dbms_output.put_line('Error message v_data ->'||v_data);
    dbms_output.put_line('Error message v_msg_data ->'||v_msg_data);
    dbms_output.put_line('Error message v_msg_index_out ->'||v_msg_index_out);
    dbms_output.put_line('Error message p_msg_index ->'||i);
    APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
    END LOOP;
    END IF;
    WHEN OTHERS THEN
    dbms_output.put_line('An error occured during conversion, SQLCODE ->'|| SQLERRM);
    IF (v_msg_count >=1 ) THEN
    FOR i IN 1..v_msg_count LOOP
    PA_INTERFACE_UTILS_PUB.get_messages(
    p_msg_count => v_msg_count,
    p_msg_index => i,
    p_encoded => 'F',
    p_msg_data => v_msg_data,
    p_data => v_data,
    p_msg_index_out => v_msg_index_out);
    dbms_output.put_line('Error message ->'||v_data);
    APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
    END LOOP;
    END IF;
    end; --end procedure
    END xxpa_proj_conv_pkg;
    * Please tell me how to assign project specific task with the newly created projects??? *
    Also please tell me how to assign multiple * Project_Relationship_Code * (ex: END CLIENT, GENERAL CONTRACTOR, PRIMARY) for a particular project during project creation?

    Are you not storing the project number in the staging table designed for storing the task data? You can use create_project API to create the project and tasks at the same time with one single call. You may want to try that option

  • Why can't I create a new version of a photo edited in an external application, without Aperture making a new copy of the newly created Tiff?

    When Aperture creates a new version from a RAW file, no new master file is created.  This makes total sense and I understand why.
    When I edit a photo in an external editor (Photoshop CS6) from within Aperture, Aperture creates a Tiff file to edit in Photoshop and saves it along with the RAW original once I have finished editing it in Photoshop.  I understand why this is necessary too.  So far so good.
    But if I then ask Aperture to create a new version from the newly created image edited via Photoshop, it creates another new Tiff.  I can't see why this is necessary.  Aperture should be able to apply further new Aperture edits to the newly created Tiff in the same way that it creates new versions from a RAW file without duplicating the master - by remembering any new 'recipe' changes applied to the Tiff.  It only needs to remember the edits made as the Tiff already now exists.
    Can I stop it creating repeat Tiff files each time I create a new version from the Photoshoped photos?
    Thanks in anticipation.

    Hello Kirby,
    I clicked on the 'Show in Finder' and it revealed a new file called IMG_0961 (1) which goes with the original IMG_0961.CR2 and the edited new tiff created for Photoshop which was called IMG_0961.tiff
    I noticed also that a separate version I had previously created using Canon's DPP stand alone software and titled by me IMG_0961 (DPP).TIF (same thing but from a different original) does not form a new master file when I create a new version of that one.  I've tried this with a few images but when the original is edited in Photoshop via Aperture a second version of the Tiff is created for the 1st version of the image when I create a new version fo it.

  • How to read value from Key flexfield added on to the newly created SIT

    Hi Experts,
    I have a requirrment to display a new structure in the Special Information Types (SIT) screen in SSHR. The data entered into the segment needs to be validated using PL/SQL function.
    I have performed below steps to display the structure/field on SIT Page
    1. Created new flexfield structure as XX_LEAVE_ENCASHMENT under the "HUMAN RESOURCE" Application (Application id- 800) and flexfield TITLE "Personal Analysis Flexfield" (PEA).
    2. Added a new segment "Encash Days" for the newly created flexfiled structure "XX_LEAVE_ENCASHMENT".
    3. Added this new structure in the Special Information Types form in HRMS responsibility
    4. The structure is enabled on the SIT screen.
    Now I want to validate the data entered in Encash Days field in this page by calling a PL/SQL function. This can be done by extending the SIT page Controller.
    But how should the ID of the newly enabled segment (in the new Flexfield strucuture) be retrieved in the controller inorder to read the user-entered value (to further call the validation program)? Or is there any other way of achieving this functionality in OAF?
    Please help.
    Thanks.

    Hi,
    Yes, u can get the value from the SIT and perform the relevant validation too.
    Refer http://apps2fusion.com/at/43-ss/453-oaf-extension-case-study
    Regards,
    Gyan

  • Function module to the newly created 'Z' function group

    I am facing a strange issue when I am trying to reassign the existing 'Z' Function module to the newly created 'Z' function group. The system gives an error as 'Modified Function Modules may not be reassigned'.
    Could anyone face this issue before or if you have any suggestion on this, please let me know.
    Thanks in Advance.

    Hi,
    Check this steps:
    1) The FM to be moved is activated.
    2) Both new Z-FG and the previous FG are activated.
    3) You are not editing the the FM you are trying to move.
    4) If you are in the Object List view (se80 view) goto : Utilities->Update Navigation Index
    Guess that should take care of the issue!!
    Cheers,
    Lakshmiraj
    Reward if useful

  • How to get the Newly Created Material

    Hi all,
    Iam creating Materials using BDC sessions method,My Problem is to update the Newly Created Material in a Ztable.
    so iam getting the Newly created Matnr by the following peice of code
        SELECT  matnr FROM mara INTO  TABLE v_matnr
                               WHERE ersda = sy-datum
                               ORDER BY matnr DESCENDING.
    But the thing is,we are getting Previously created material.i.e the new material will be  created only after the sessions are processed,but when i write the above code in the program we are getting previous material.
    so how to update the newly created material.
    I think we can't do  that through program because we can get new material only after processing the session..so what is the solution for this.should we use userexits for getting the newly created material.
    thanks in advance
    balaji

    Hello,
    Use the <b>BAPI_MATERIAL_SAVEDATA</b> to create the materials.
    The BAPI will return the Material number which is created at that instance by which u can update the ZTABLE.
    Vasanth

  • RSRV not showing number of record for the newly created cubes

    In RSRV Elementary tests i execute database information for a newly created cube.It is executed fine and it is showing the no of dimensions and line item dimensions but it is not showing the diff tables E,F.... I tried refreshing the statistics of this cube in the manage and did check statistics aswell.But it is still the same.and I tried in the program SAP_INFOCUBE_DESIGNS  it is showing for all the cubes except for the newly created once.
    Is there any settings as such.
    Let me know ASAP

    Hi Ninad,
    Use the program SAP_INFOCUBE_DESIGNS and get the cube size in bytes.
    Transaction se16 -> fact table name, /bic/f[infocube name] and /bic/e[infocube name] or /bi0/f.. and /bi0/e for business content infocube, click 'number of entries' - This is for no. of records.
    Transaction DB02 -> 'detail analysis' -> object name = [infocube name]
    Function Module - RSDU_INFOCUBE_TABLE_SIZES_INF
    Bye
    Dinesh

  • ADF JS API methods not working for the newly created rows in table

    Hi All,
    We need to make sure the focus goes back to the newly created rows first column's first component.
    Used findComponent and findComponentByAbsoulteId and even hard coded the id, but still the methods are returning null.
    Even tried ADFRichTable.getRowKey(index), by passing index as 0 for the first row, still the method is returning null.
    Tried ADFUITable.findComponent(Object scopedId, Object rowKey), but unable to pass client side rowKey as the above method is returning null.
    All our requirement is to make the focus back to the first row's component when the user clicks on the cancel button instead of save button. Appreciate your help. Thanks.
    P.S.: Rows will be created using CreateInsert method.
    JDEV Version: 11.1.2.0.0 and Table is in a region and we are using UI Shell Tab Template to launch regions.
    Raja.
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM

    Thanks Frank,
    But some times even we use findComponentByAbsoulteLocator, its not working. So i followed the approach where you will get the rowID like the below and construct the client ID and pushing the JS to client using Service class. And it worked.
    String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey);
    But i am worried that even though we hard coded the client and executing the js function from the command button by keeping client listener's type as click, the focus is not setting. And i tried giving the id as tableId[rowIndex]:componentId in the findComponentByAbsoulteLocator.
    Can you let me know is there another way to make focus only using JS on click of command button, where the button does not have any action or actionListener.
    Raja.

  • If I change my apple id (using edit in my account) will it allow my prior purchases to be accessed/updated under the newly created id?

    If I change my apple id (using edit in my account) will it allow my prior purchases to be accessed/updated under the newly created id?

    Yes, it should work.  They are still purchases under that account.

  • Accessing the newly created document number

    Hi,
    I was able to create an invoice successfully.
    I am using the ICOMPANY object to capture the newly created document number as comp.getnewobjectkey().
    But the number i get is different from what is created in the system.
    For example. i receive the number as 28590 from method comp.getnewobjectkey() but the actual invoice number in the system is 28587.
    Any ideas on why this is happening?
    Thanks
    Ramakanth

    Hi Ramakanth,
    GetNewObjectKey will return you the DocEntry value not the Docnumber.
    If you need the docnumber, run a query. "SELECT DocNum FROM OINV WHERE DocEntry = 28590
    Regards
    Edy

  • I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    Go to Mail Preferences
    Click on the General tab
    Set  "Check for New Messages:"  to  "Every Minute"
    Hope this helps

  • JPA - Problem with editing the newly created Entity

    Hi,
    I am new to JPA technology.
    I am having the Groups and Program table externally linked by GroupsProgams table of relationship many to many.
    My requirement is:
    while editing a group, i need to update group and associated GroupsPrograms based on the programs selected for this group.
    my code for edit group is:
    try {
                userEntityManager.getTransaction().begin();
                List<Program> programList = new ArrayList<Program>();
                for (Integer programId : assignedProgramList) {
                    programList.add(new Program(programId));
                group.setAssociatedGroupProgramsList(programList);
                userEntityManager.merge(group);
                userEntityManager.getTransaction().commit();
            } catch (Exception e) {
                throw new Exception("GROUP_ASSOCIATION_ERROR", e.getMessage());
            }While editing the existing group this code is working fine.
    But when i create a new group with some programs assigned to it then after some times editing the new group and adding some more programs to group is giving error:
    please suggest me where its going wrong. because its working fine for the already existing groups but not for the new ones.
    javax.persistence.RollbackException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 9.1 (Build b36-rc)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '40-2' for key 1Error Code: 1062
    Call:INSERT INTO groupsprograms (GP_PR_Id, GP_GR_Id) VALUES (?, ?)
            bind => [2, 40]
    Query:DataModifyQuery()
            at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:105)
            at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:45)
            at com.ecs.usermanagement.bl.UserManagerData.editGroup(UserManagerData.java:196)
            at com.ecs.usermanagement.ui.UserManagerView.saveGroup(UserManagerView.java:1580)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(ApplicationAction.java:776)
            at org.jdesktop.application.ApplicationAction.actionPerformed(ApplicationAction.java:812)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
            at java.awt.Component.processMouseEvent(Component.java:6038)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Thanks,
    DAYA

    Hi,
    I am new to JPA technology.
    I am having the Groups and Program table externally linked by GroupsProgams table of relationship many to many.
    My requirement is:
    while editing a group, i need to update group and associated GroupsPrograms based on the programs selected for this group.
    my code for edit group is:
    try {
                userEntityManager.getTransaction().begin();
                List<Program> programList = new ArrayList<Program>();
                for (Integer programId : assignedProgramList) {
                    programList.add(new Program(programId));
                group.setAssociatedGroupProgramsList(programList);
                userEntityManager.merge(group);
                userEntityManager.getTransaction().commit();
            } catch (Exception e) {
                throw new Exception("GROUP_ASSOCIATION_ERROR", e.getMessage());
            }While editing the existing group this code is working fine.
    But when i create a new group with some programs assigned to it then after some times editing the new group and adding some more programs to group is giving error:
    please suggest me where its going wrong. because its working fine for the already existing groups but not for the new ones.
    javax.persistence.RollbackException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 9.1 (Build b36-rc)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '40-2' for key 1Error Code: 1062
    Call:INSERT INTO groupsprograms (GP_PR_Id, GP_GR_Id) VALUES (?, ?)
            bind => [2, 40]
    Query:DataModifyQuery()
            at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:105)
            at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:45)
            at com.ecs.usermanagement.bl.UserManagerData.editGroup(UserManagerData.java:196)
            at com.ecs.usermanagement.ui.UserManagerView.saveGroup(UserManagerView.java:1580)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(ApplicationAction.java:776)
            at org.jdesktop.application.ApplicationAction.actionPerformed(ApplicationAction.java:812)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
            at java.awt.Component.processMouseEvent(Component.java:6038)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Thanks,
    DAYA

  • Every time I reset my password to update my apps, and go back to use the newly created password, it keeps telling me the password is incorrect.

    No matter what I do, I cannot log in to update my apps. I even went to appleid.apple.com to Manage My Account and NOTHING works. I have reset the password a zillion times and it will not work. I called Apple, but they can't even assist me with password help, which is ridiculous! This is so frustrating. I have Signed out of the iPhone store in the General Settings, turned off my phone, reset it, created a new name, and NOTHING will work!
    HELP!!

    Yes, this happens directly on my iPhone. I go to my App Store icon on my phone, try to "Update All" and my username pops up lookng for the password. I type in the password, and it keeps saying it is incorrect. When I follow the prompts to "reset" a password, I create a new, go back, and the NEW password I just created, literally seconds ago, NEVER WORKS! I've gone to the General Settings icon to log out, log back in, then I go to the iTunes store, log out, log in....NOTHING works. It is drving me crazy!! I can purchase apps, just can't update. I have no idea how to fix, since Apple will not assist me. They say I need to purchase the Apple Care Protection, which is so ridiculous that I have to "pay" to get support on a simple task, such as password help! Sigh...

  • How to get the inbound idoc for the newly created inbound Idoc FM

    Hi,
    I have created a new function module to process the Inbound idoc.  I need to have a idoc to check my function module, whether it is working fine or not.  How I can get the data.  Do I need to have the idoc from the partner ?  Please help me ASAP.
    Thanks,
    sreenivas.

    Hi Sreenivas,
    Go to WE19 and get any of the your present idoc  with the idoc type
    then go to BD20...execute the same idoc...and there you can create the IDoc, and process the same with the Inbound function module tab..( give the FM you are using as the process code.)
    from there you can do the debugging aswell of that FM
    Thanks

Maybe you are looking for