Problem with a call to a concurrent program from a trigger body...

I have a table and a before update trigger on it.
The trigger calls a packaged procedure. that submits a concurrent request.
This concurrent request calls a packaged procedure.
This packaged procedure inserts data into another table and then commits the insert.
When I update the table with the trigger on it, (the above narrated scenario)....
I come up with the error...
ORA-04092: cannot SET SAVEPOINT in a trigger
I didnt use any savepoint in my code.
Any help is appreciated. Its a high priority issue.
Thnx,
Kiran

You problem is that the standard PL/SQL code to submit a concurrent request (which is presumably what you are running) performs the savepoint, unless you have told it you are running from a database trigger. The processing performed by the concurrent request when it runs is not relevant to the processing of the trigger.
We have code that submits a concurrent request successfully from a trigger, but before the call to FND_Request.Submit_Request, we call FND_Request.Set_Mode(TRUE) which tells the processing in FND_Request.Submit_Request that we are running from a database trigger and not to perform it's savepoint processing.

Similar Messages

  • Ora-0000 when submitting a concurrent program from DB trigger

    Hello,
    I am getting following error when submitting a concurrent program from a trigger.
    ORA-20002: ORA-20026: 10322991ORA-0000: normal, successful completion
    ORA-06512: at "APPS.NPX_RUN_PICKR", line 63
    ORA-04088: error during execution of trigger 'APPS.NPX_RUN_PICKR'Though, this indicates normal successful completion, it does not generate any request_id. Nor, it launches the concurrent request.
    Below is the trigger code. Any idea why this is happening? Thanks, R
    CREATE OR REPLACE TRIGGER APPS.NPX_RUN_PICKR
    AFTER INSERT
    ON APPS.NPX_PICK_RELEASE
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
       p_printer        VARCHAR2 (240);
          p_print_flag     BOOLEAN;
          --concurrent_request variables
          l_request_id     NUMBER;
          --initializing variables
          l_app_id         NUMBER;
          l_resp_id        NUMBER;
          --pick_release variables
          v_out            VARCHAR2 (500);
          lorg number;
         errx varchar2(2000);
         p_message varchar2(2000); 
         result boolean;
       BEGIN
          p_printer := fnd_profile.VALUE ('PRINTER');
          p_print_flag :=
             fnd_request.set_print_options (p_printer,                  -- printer
                                            'LANDSCAPE',                  -- style
                                            0,                           -- copies
                                            TRUE,                   -- save output
                                            ''                   -- print together
                                           result:= FND_Request.Set_Mode(TRUE);
          l_request_id :=
             fnd_request.submit_request (application      => 'NPX',
                                         program          => 'NPXIBOXPICK',
                                         description      => NULL,
                                         start_time       => NULL,
                                         sub_request      => FALSE,
                                         argument1 => :New.order_number,
                                         argument2 => :New.org_id
          IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;
    exception when others then
    errx := sqlerrm;
    raise_application_error(-20002,errx);
    end;

    Hello Hussein,
    It is 11.5.10.2.
    The line 63 represents following block
    IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;Thanks,
    R

  • Problem in calling order import concurrent program from BPEL

    Hi all,
    Iam doing a sales order creation in oracle apps using Apps Adapter.
    I have successfully inserted the order into the interface tables using an Apps adapter.
    Now I need to run Order Import program from BPEL to move the data from interface tables to the base tables for which i use another Apps Adapter.
    When I invoke the OEIMP concurrent program from BPEL ,request id is returned.But the concurrent program fails showing incomplete parameters.
    But it works when I invoke it from the front end in oracle apps.
    I think the problem lies in passing the inputs to the concurrent program from the BPEL.
    Any help to solve the issue will be appreciated.
    Thanks,
    goutam

    Previously, I was passing the values to the concurrent program variables through ASSIGN component,which resulted in some namespace issues.Then I replaced it with TRANSFORM component.
    Also,First I assigned the values to the concurrent program variables as 'Vision Operations'(operating_unit), 'Online'(order_source) ,No (validate_only), No (validate_desc_flex) which are mandatory and just left non mandatory variables without assigning values.
    I changed those values as *'204','0','N','N'*. And also set non mandatory variables value as EMPTY.
    After doing all these I found the concurrent program catches all the parameter values correctly, and the records got imported from interface tables to the base tables.Thus the sales order got created successfully.
    Thanks,
    goutam

  • Problem with FNDLOAD upload command for Concurrent Program

    Hi Apps Gurus,
    I am facing a peculiar problem with the FNDLOAD command.
    My customer has a concurrent program which is running fine in Prod, and now they have requeseted for a change in the program, the change requested was to modify the parameters and the name of the program. I have done the changes and when I try migrating this change from DEV instance to IAT using FNDLOAD commands it is not getting migrated. There does not seem to be any problem with the LDT file, There is no error message in the log as well.
    However I have noticed something very peculiar.* In the target instance (IAT) , when i run the FNDLOAD command directly the migration is unsuccessful but when i delete the existing parameters of the prog and rename the concurrent program and then run the FNDLOAD command the migration is sucessful and the changes are getting reflected!!. I dont understand why this is happening. This is happening in preprod as well , the migration is unsucessfull initially when i directly run the command, when i modify the name and parameters of the prog and then run the command the migration is sucessful. Now i do not have access to prod and this trick of changing prog name and parameters cannot be done in prod , so I need a proper solution for the migration.
    Any pointers to resolve this issue will be helpful.
    Thanks,
    Mahesh

    I am facing a peculiar problem with the FNDLOAD command.
    My customer has a concurrent program which is running fine in Prod, and now they have requeseted for a change in the program, the change requested was to modify the parameters and the name of the program. I have done the changes and when I try migrating this change from DEV instance to IAT using FNDLOAD commands it is not getting migrated. There does not seem to be any problem with the LDT file, There is no error message in the log as well.
    However I have noticed something very peculiar.* In the target instance (IAT) , when i run the FNDLOAD command directly the migration is unsuccessful but when i delete the existing parameters of the prog and rename the concurrent program and then run the FNDLOAD command the migration is sucessful and the changes are getting reflected!!. I dont understand why this is happening. This is happening in preprod as well , the migration is unsucessfull initially when i directly run the command, when i modify the name and parameters of the prog and then run the command the migration is sucessful. Now i do not have access to prod and this trick of changing prog name and parameters cannot be done in prod , so I need a proper solution for the migration.
    Any pointers to resolve this issue will be helpful.What are the commands you used for the download/upload?
    Do you get any errors in the log files?
    Please see (FNDLOAD Download / Upload Concurrent Programs Fails To Load Parameters [ID 1101946.1]).
    Thanks,
    Hussein

  • Problems with the call of an ODI scenario from an OS Command.

    I'm having a trouble to understanding regarding the call an ODI scenario from an OS Command.
    On the machine "XPTO" is installed the Agent.
    For my local computer, by Designer ODI I can usually run the scenarios, using the Agent that is installed in the machine "XPTO".
    When attempting to run ODI scenario directly from the machine "XPTO", where we have the agent installed within the /Ora_Home/oracledi/bin the file STARTSCEN.BAT not exist.
    On the machine where you installed the agent I should also have the client installed, so as to be able to run the StartScen.bat?

    As suggested, I ran the following command line:
    *./startcmd.sh OdiStartScen -SCEN_NAME=STG_CRTC -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=ODI_2001*
    But gave the error below:
    com.sunopsis.core.f:*
    at com.sunopsis.tools.connection.DwgRepositoryConnectionsCreator.a(DwgRepositoryConnectionsCreator.java)*
    at com.sunopsis.tools.connection.DwgRepositoryConnectionsCreator.a(DwgRepositoryConnectionsCreator.java)*
    at com.sunopsis.tools.connection.DwgRepositoryConnectionsCreator.a(DwgRepositoryConnectionsCreator.java)*
    at com.sunopsis.tools.connection.DwgRepositoryConnectionsCreator.a(DwgRepositoryConnectionsCreator.java)*
    at com.sunopsis.security.c.b(c.java)*
    at com.sunopsis.security.c.b(c.java)*
    at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.u(SnpsFunctionBaseRepositoryConnected.java)*
    at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)*
    at com.sunopsis.dwg.tools.StartScen.main(StartScen.java)*
    at com.sunopsis.dwg.tools.OdiStartScen.main(OdiStartScen.java)*
    Can anyone help me?

  • Problem running a concurrent program from Reports

    Hi,
    I've come across a problem while running a concurrent program from Reports. The report is executed OK and at the end, I call a concurrent program by firing fnd_request.submit_request. I catch then the req_id returned and it gives me 0. I tried to replace the concurrent program, which is a UNIX shell script, with just a simple script that echos "hello", but anyway, I get 0 as return value from fnd_request.submit_request.
    The next step I tried to set apps_initialize with proper vUSER_ID, vRESP_ID and vRESP_APPL_ID, but did not get away with that. My last try was to hardcode vUSER_ID to a sysadmin user, in case this was rights-related issue but did not work as well.
    Am now looking into a possibility of actually getting the error, why it failes. I found some posts where FND_MESSAGE.RETRIEVE and FND_MESSAGE are used but this apparently does not work under Reports (am using reports builder v. 9.2.0.4.0).
    Any suggestions how to solve this issue?
    Thanks,
    David Lacina.

    Hi,
    Make sure that the concurrent program you are calling exists (case sensitive) and is enabled.
    Create a PL/SQL package and use that to call your request - the you'll be able to use fnd_message.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • How to call a concurrent program from a Custom JSP page.

    Hi,
    I have a custom JSP page which i have deployed by creating a form function with the path of the JSP Page
    and added the JSP Page to the OA_HTML top.
    Now, i need to call a concurrent program from the JSP Page, i have all the parameters in my page and i am using the standard class as below:
    ConcurrentRequest cr= new ConcurrentRequest(con);
    int requestId= cr.submitRequest("XXINV",programName,null,null,false,vec);
    I have verified my connection object and it is OK but i am getting the exception that user is not set to run the program.
    I tried the below code in my JSP page and getting -1 for all test variables :-
    int userId = wctx.getUserId();
    int respApplId = wctx.getRespApplId();
    int respId = wctx.getRespId();
    I think i need to set the context in JSP page to run the program..
    Pls help ....
    Regards
    Saurabh Jaiswal

    Hi,
    Thanks for the reply,,,
    This is a possible solution but this will allow to run the program anyhow.
    But the procedure which i call thru callable statement will start with
    fnd_global.apps_initialize (3825, 50603, 704);
    fnd_request.submit_request API call.
    Now, the values of user and Responsibilty is required in the program and it changes.
    With this approach we have to hardcode the user and resp.
    The same JSP page is attached to other responsibilities and there the concurrent program would get fired as if fired from the resp Id hardcoded as above.
    Need to capture user Id and RespId.
    How can i set the apps Context in JSP page???
    Regards
    Saurabh Jaiswal

  • Tried to install iTunes 10.5 this morning but an error appeared saying "problem with windows installer package. A program required for this install to complete could not be run." Can someone please help

    I tried to install iTunes 10.5 this morning but an error appeared saying "problem with windows installer package. A program required for this install to complete could not be run." Can someone please help

    Firstly, are you installing iTunes for the first time or are you updating your current version of iTunes?
    If you're installing iTunes for the first time have you tried redownloading the installer package? Perhaps the file you downloaded originally is corrupted...
    http://www.apple.com/itunes/
    If you've tried that, then try installing iTunes as your computer's administrator. To do this right-click the install package and choose "Run as administrator".
    If you're updating iTunes to the most recent version try repairing the Apple Software Update program on your computer. It's under the add/remove programs.
    1. Open the control panel
    2. Open Add/Remove programs (called "Programs and Features" in Windows 7)
    3. Navigate to "Apple Software Update" in the list and click on it
    4. Click on "Change" then select "Repair" (or just select the repair option in Windows 7)
    Once you repair this, try running iTunes and the update again.
    Fingers crossed!

  • Trying to down load Itunes but I get a message : There is a problem with this Windows Installer package a program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.

    When downloading Itunes I get this message:
    There is a problem with this Windows Installer package a Program run as part of the setup did not finish as expected.
    Contact your support personnel or package vendor..
    is there a number for me to call or can someone explain what has happen...
    Thank you for your help....

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • When i run installation itunes,i see this massage "there is a problem with this windows installer package.a program required for this install to complete could not be run. contact your support personnel or package vendor."please help me for installation i

    when i run installation itunes,i see this massage "there is a problem with this windows installer package.a program required for this install to complete could not be run. contact your support personnel or package vendor."please help me for installation itunes on my pc completely.

    Apparently it's an itunes issue. I just tried to update and got the same issue. Called att to activate my iphone 4s and they say they can do the swap but apple is telling them itunes is down atm.  So will have to wait

  • I have a problem with the sound and voice communication programs amplifier

    I have a problem with the sound and voice communication programs amplifier

    Define "voice of the device." 
    Are you referring to the ear speaker or main speaker?  Phone calls?  Rings/alerts? Music?
    What troublshooting steps did you take?

  • Calling Transaction Import Concurrent Program in PL/SQl program

    Hi,
    I am trying to run Transaction Import process by calling the concurrent program in my pl/sql program.I think I am passing all the right paramters which are necessary.But the actual PAXTRTRX is never being called and I am not getting any request ID back.No exception is being thrown.Following is how I am calling the concurrent program...
    p_tran_imp_request_id := fnd_request.submit_request
         ( application => 'PA'     
              , program => 'PAXTRTRX'
              , sub_request => FALSE
              , argument1 => 'My Transaction Source name here'
              , argument2 => 'My batch name here'
    ,argument3 => 'my TXN_INTERFACE_ID here'
    If I run the PRC: Transaction Import from front end...the process is run and import was completed just fine.But I am not able to call concurrent program from my program.Is there anything I am missing...Is there any thing I need to do before I call the concurrent program...
    Any help in this issue is greatly appreciated.
    Thanks

    Hi,
    Thanks for the advise. Yes I was calling the initialize function but I was passing wrong application id and responsibility id to that.Now that is taken care of.
    Thanks

  • Has anybody had the following error while trying to download iTunes 10.5? There is a problem with Windows Installer package. A program required for this install to complete could not be run.

    Has anybody had the following error while trying to download iTunes 10.5? There is a problem with Windows Installer package. A program required for this install to complete could not be run.

    Go to "control panel" then "add or remove programs".  Highlight "Apple software update"  Choose "change" click "Repair"  This should do the trick.  Then download and install iTunes 10.5 again.

  • I keep getting an error message that reads: There is a problems with this windows installer package A program required for this install to complete could not be run. Contact your support personnel or package vendor. How do I correct this problem.

    I keep getting an error message that reads: There is a problems with this windows installer package A program required for this install to complete could not be run. Contact your support personnel or package vendor. How do I correct this problem. HELP !!!!!!!!!!!!!!

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • I went to update my itunes and I get the following message:  there is a problem with this windows installer package, a program required for this install to complete could not be run.  I uninstalled the old itune and reinstalled the new one and i get the s

    I went to upgrade itunes and when it finally downloaded, i got the following message:  There is a problem with this windows installer. A program required for this install to complete could not be run.
    I was advised to unistall the old itune, which i did and then loaded the latest itune 10.5 i think.  It dowloaded fine to a point and before finishing, it came up with the same message.
    Is the problem with the itune installer or my windows installer on my laptop?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START/CONTROL PANEL/Programs n Features/highlight ASU and click REPAIR,

Maybe you are looking for

  • Reusing the name of a deleted Organization in OIM 11.1.1.5.2

    I want to reuse the name of a deleted Organization in OIM 11.1.1.5.2. Can you tell me how can I do this, this is a test environment so auditing is not important here!

  • AR Aging - Need to change 7 bucket to 5 bucket - Report Builder

    Is there anyone out there who might be able to help me? We've recently implemented Oracle Applications 11.5.10 and I have to use report builder to change the Accounts Receiveable Aging (7 bucket) to a 5 bucket report. I'm not a big Oracle Reports guy

  • Site headers not showing

    Page headers and menu bars are currently not showing up on most websites I visit. This has been happening for a couple of hours. It may have started around the time I installed Blackberry's software for syncing with Macs, but I'm not sure. Does anyon

  • Change url of bpel process

    Hello, I am using Oracle SOA suite (10.1.3.1). When I deploy a bpel process to Oracle PM , the url of the process is set as: http://localhost:port/orabpel/default/processname/version How can I change this so that when I deploy bpel process, the url w

  • Trying to do production issue ....dsnt work..

    Documents ProdDoc = (Documents)company.GetBusinessObject(BoObjectTypes.oInventoryGenExit);             ProdDoc.DocDate = DateTime.Today;             //ProdDoc.Lines.SetCurrentLine(0);             ProdDoc.Lines.BaseEntry = 55619;             ProdDoc.L