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/

Similar Messages

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • Run Child Concurrent Program from Main Concurrent Program

    Hi,
    I'm trying to run Child Concurrent Program from the Main Concurrent Program as below, could you suggest me on below.
    Database:10g
    Main_Concurrent_Program
    =================
    1) Will update staging table XXID_PO_ITM with Batch_id = 1,2,3,4,5
    This staging table has 1000 rows, so every 200 rows will be updated with one of the above batch_id
    This logic is working.
    Child_Concurrent_Program
    ================
    2) Above Main Concurrent Program should call below Child_Concurrent_Program.
    This Child_Concurrent_Program will have parameter batch_id (based on above batch_id)
    So, this Child_Concurrent_Program should kick off with batch_id = 1
    Simillarly, Child_Concurrent_Program should kick off with batch_id = 2
    Child_Concurrent_Program should kick off with batch_id = 3
    Child_Concurrent_Program should kick off with batch_id = 4
    Child_Concurrent_Program should kick off with batch_id = 5
    Could you give me some suggestions on this?
    Thanks.

    Check with FND_SUBMIT for submitting a concurrent job using child dependecies. Keep in mind, that once you call the API ... it spawns it's own thread and and becomes an autonomous process. Control is no longer maintained within the calling package.
    procedure submit_interface_data(p_schedule_date in date,p_mm_header_id in number,p_req_id out number)
    is
      v_user_id            number;
      v_application_id     number;
      v_responsibility_id  number;
    begin
                select user_id
                into   v_user_id
                from   fnd_user
                where  user_name = 'USER123';
                select application_id,
                       responsibility_id
                into   v_application_id,
                       v_responsibility_id
                from   fnd_responsibility_tl
                where  responsibility_name = 'General Warehouse';
      fnd_global.apps_initialize(v_user_id,v_responsibility_id,v_application_id);
      p_req_id := fnd_request.submit_request ( application => 'XYZ',
                           program     => 'MOVE_CONC_SHORT_NAME',
                           description => null,
                           start_time  => p_schedule_date,
                           sub_request => false,
                     argument1   => p_mm_header_id);
      commit;
    exception
    when others
       then
         spl_log_pub.write_exception(transaction_id   => null,
                                     transaction_type => null,
                                     error_message    => '<some error message>' ||
                                     'sqlcode: ' || sqlcode ||
                                     'sqlerrm: ' || sqlerrm);
    end submit_interface_data;Edited by: sreese on May 18, 2012 3:16 PM

  • Submit concurrent program from report

    Hi All,
    I need to submit a shell script program after 5 minutes of report completion..
    and here am using following code in AFTER REPORT TRIGGER:
    select sysdate+5/1440 into l_start_time from dual; --Selecting Five Minutes after SYSDATE
    l_req_id := apps.FND_REQUEST.SUBMIT_REQUEST (application => 'XXXX',
                                                                                              program => 'CP_SHORT_NAME',
                                                                                              description => NULL,
                                                                                              start_time => l_start_time,
                                                                                              sub_request => FALSE, --TRUE
                                                                                              argument1 => :P_CONC_REQUEST_ID,
                                                                                              argument2 => :P_MAIL_ID);
    Now the problem here is, the request is beeing submited immediately with out waiting for 5 MINS
    Actually am submiting this program to mail the OUTPUT of concurrent program as EMAIL attachment and if it is submited immediately, then the program is trying to pick the PDF file which is not completly created.
    This results in ERROR some times but successcds most of the times.
    Can any one help on how to make the second program wait.
    Any alternate approach for the same is also appreciated.
    Thanks in advance.
    gvk.
    Edited by: gvk on Jan 13, 2011 1:38 AM

    Hi;
    What is your EBS version?
    Please check below thread
    concurrent program how to wait - prevent multiple request
    how to prevent multiple request of one conc program
    Regard
    Helios

  • How to run a concurrent program from Menu List

    Hi Guys,
    I am working in HRMS. And did the following steps.
    1. Created one concurrent program "Payroll Variance Report" as per customer's requirement.
    2. Now user wants me to luanch this consurrent program from the People Form i.e. Reponsibility->People Form (on the same form, on the top of it 'Tools' bar is there where I need to attach one prompt "Pyaroll Variance Report" to its list). The moment user clicks on this "Payroll Variance Report" option of 'Tools' list, it should launch the concurrent request. I hope I make you understand my requirements. This is very urgent. Kindly give me you suggestions.
    Looking forward to your replies.
    Thanks
    Sunil

    Use FND_REQUEST.SUBMIT_REQUEST API.
    Search the forum, My Oracle Support, eTRM, and the Developer guide for details about using this API.
    Thanks,
    Hussein

  • 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

  • How to run concurrent program from a menu

    Hello, I have a responsibility menu and want to enable the user to run a concurrent request by clicking on a menu function. Say I have a prompt called "Payslip Report", clicking on it will now run a concurrent program called "Payslip Report" but the user will now have to enter the parameters for the report.
    How do I achieve this?

    Hi
    You can achieve this defining a new function for the standard submissions form with parameters to specifically launch the payslip report, and even specify values for its parameters. Information can be found on System Administrator Guide under the "Customizing the Submit Requests Window" topic. The steps would be:
    - Create a new function using the Standard Request Submission Form (FNDSRS)
    Give it a meaningful name such as Launch Payslip Report, specify form as type and the user form name of the FNDSRS form
    Use the following parameters, specifying as values the short name of the payslip report and the application it belongs to:
    CONCURRENT_PROGRAM_NAME=PAYSLREP PROGRAM_APPL_SHORT_NAME=PAY
    - Use your new function in Your menu and assign the prompt "Payslip Report"

  • Error in  Concurrent Program Details Report - XML Publisher program

    hi,
    i m executing a Concurrent Program Details Report - XML Publisher program and i m getting following errors
    Error:
    Beginning post-processing of request 4365650 on node APPS1 at 01-DEC-2010 08:04:00.
    Post-processing of request 4365650 failed at 01-DEC-2010 08:04:04 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Can u specify where exactly the problem is the OPP log file shows:
    11/25/10 5:08:20 AM] [main] Starting GSF service with concurrent process id = 1272712.
    [11/25/10 5:08:20 AM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/25/10 5:08:20 AM] [Thread-18] Service thread starting up.
    [11/25/10 5:08:20 AM] [Thread-19] Service thread starting up.
    [11/25/10 1:00:02 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [11/26/10 12:01:08 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/26/10 1:00:33 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [11/27/10 12:01:48 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/27/10 1:01:11 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [11/28/10 12:00:18 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/28/10 1:01:39 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [11/29/10 12:00:48 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/29/10 1:00:20 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [11/30/10 12:01:51 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [11/30/10 1:01:00 PM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=4
    [12/1/10 12:00:20 AM] [GSMServiceController:1272712] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=6
    [12/1/10 8:04:02 AM] [OPPServiceThread1] Post-processing request 4365650.
    [12/1/10 8:04:03 AM] [1272712:RT4365650] Executing post-processing actions for request 4365650.
    [12/1/10 8:04:03 AM] [1272712:RT4365650] Starting XML Publisher post-processing action.
    [12/1/10 8:04:03 AM] [1272712:RT4365650]
    Template code: FNDCPPGD_XML
    Template app: FND
    Language: en
    Territory: US
    Output type: PDF
    [12/1/10 8:04:04 AM] [UNEXPECTED] [1272712:RT4365650] java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA,DBMS_LOB.GETLENGTH(L.FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LANGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_CODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DATE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.DS_APP_SHORT_NAME DS_APP_SHORT_NAME, B.DATA_SOURCE_CODE DATA_SOURCE_CODE, L.LOB_TYPE LOB_TYPE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.APPLICATION_SHORT_NAME= :1 AND L.LOB_CODE = :2 AND L.APPLICATION_SHORT_NAME = B.APPLICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND (L.LOB_TYPE = 'TEMPLATE' OR L.LOB_TYPE = 'MLS_TEMPLATE') AND ( (L.LANGUAGE = :3 AND L.TERRITORY = :4) OR (L.LANGUAGE = :5 AND L.TERRITORY = :6) OR (L.LANGUAGE= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.initStream(TemplateInputStream.java:402)
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.<init>(TemplateInputStream.java:235)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.getTemplateFile(TemplateHelper.java:1159)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3430)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:244)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:166)
    [12/1/10 8:04:04 AM] [1272712:RT4365650] Completed post-processing actions for request 4365650.
    [GC 6798K->4234K(9108K), 0.0020110 secs]
    [GC 6858K->4321K(9108K), 0.0399700 secs]
    [GC 6945K->4256K(9108K), 0.0021440 secs]
    [GC 6880K->4272K(9108K), 0.0021000 secs]
    [GC 6896K->4232K(9108K), 0.0020110 secs]
    [GC 6856K->4316K(9108K), 0.0020590 secs]
    [GC 6940K->4408K(9108K), 0.0597480 secs]
    [GC 7032K->4495K(9108K), 0.0034290 secs]
    [GC 7119K->4581K(9108K), 0.0031930 secs]
    [GC 7205K->4667K(9108K), 0.0027380 secs]
    [GC 7291K->4753K(9108K), 0.0028380 secs]
    [GC 7377K->4840K(9108K), 0.0030960 secs]
    [GC 7464K->4926K(9108K), 0.0026830 secs]
    [GC 7550K->5011K(9108K), 0.7886420 secs]
    [GC 7635K->5099K(9108K), 0.0029910 secs]
    [GC 7723K->5183K(9108K), 0.0650420 secs]
    [GC 7807K->5287K(9108K), 0.0137250 secs]
    [GC 7911K->5375K(9108K), 0.0028940 secs]
    [GC 7999K->5461K(9108K), 0.0121010 secs]
    [GC 8085K->5544K(9108K), 0.0025770 secs]
    [GC 8168K->5634K(9108K), 0.0035770 secs]
    [GC 8258K->5723K(9108K), 0.0134410 secs]
    [GC 8347K->5810K(9108K), 0.0028090 secs]
    [GC 8434K->5891K(9108K), 0.0029380 secs]
    [GC 8515K->5981K(9108K), 0.0029140 secs]
    [GC 8605K->6069K(9108K), 0.0027600 secs]
    [GC 8693K->6154K(9108K), 0.1243500 secs]
    [GC 8778K->6241K(9108K), 0.0039650 secs]
    [GC 8865K->6326K(9108K), 0.0028650 secs]
    [GC 8950K->6413K(9236K), 0.0039710 secs]
    [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor6]
    6413K->5352K(9236K), 1.1909030 secs]
    [GC 8936K->5472K(12956K), 0.0023870 secs]
    [GC 9056K->5591K(12956K), 0.0033830 secs]
    [GC 9175K->5729K(12956K), 0.0042040 secs]
    [GC 9313K->5849K(12956K), 0.0034840 secs]
    [GC 9433K->5961K(12956K), 0.0100990 secs]
    [GC 9545K->6086K(12956K), 0.0030080 secs]
    [GC 9670K->6201K(12956K), 0.0031240 secs]
    [GC 9785K->6319K(12956K), 0.0032300 secs]
    [GC 9903K->6440K(12956K), 0.0034340 secs]
    [GC 10024K->6559K(12956K), 0.0034880 secs]
    [GC 10143K->6672K(12956K), 0.0035840 secs]
    [GC 10256K->6798K(12956K), 0.0057700 secs]
    [GC 10382K->6910K(12956K), 0.0060400 secs]
    [GC 10494K->7033K(12956K), 0.0100290 secs]
    [GC 10617K->7155K(12956K), 0.0071060 secs]
    [GC 10739K->6968K(12956K), 0.0096190 secs]
    [GC 10551K->7022K(12956K), 0.0018430 secs]
    [GC 10606K->7024K(12956K), 0.0019950 secs]
    [GC 10608K->7020K(12956K), 0.0019460 secs]
    [GC 10604K->7024K(12956K), 0.0021440 secs]
    [GC 10607K->7011K(12956K), 0.0018930 secs]
    [GC 10595K->7048K(12956K), 0.0027050 secs]
    [GC 10632K->7174K(12956K), 0.0028100 secs]
    [GC 10758K->7059K(12956K), 0.0015890 secs]
    [GC 10643K->7070K(12956K), 0.0032490 secs]
    [GC 10654K->7192K(12956K), 0.0332620 secs]
    [GC 10776K->7313K(12956K), 0.0035480 secs]
    [GC 10897K->7437K(12956K), 0.0042360 secs]
    [GC 11021K->7555K(12956K), 0.0158540 secs]
    [GC 11139K->7679K(12956K), 0.0036930 secs]
    [GC 11263K->7800K(12956K), 0.0035670 secs]
    [GC 11384K->7919K(12956K), 0.0036300 secs]
    [GC 11503K->8043K(12956K), 0.0039190 secs]
    [GC 11627K->8164K(12956K), 0.0036210 secs]
    [GC 11748K->8284K(12956K), 0.0034810 secs]
    [GC 11868K->8405K(12956K), 0.0224470 secs]
    [GC 11989K->8538K(12956K), 0.1723720 secs]
    [GC 12122K->8661K(12956K), 0.0036210 secs]
    [GC 12245K->8782K(12956K), 0.0101020 secs]
    [GC 12366K->8903K(12956K), 0.0036410 secs]
    [GC 12487K->9031K(12956K), 0.0037570 secs]
    [GC 12615K->9152K(12956K), 0.1185410 secs]
    [GC 12736K->9273K(13084K), 0.0037680 secs]
    [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor16]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
    9273K->6003K(13084K), 0.2840530 secs]
    [GC 10163K->6154K(14616K), 0.0024850 secs]
    [GC 10314K->6296K(14616K), 0.1144950 secs]
    [GC 10456K->6436K(14616K), 0.0194160 secs]
    [GC 10596K->6261K(14616K), 0.0069170 secs]
    [GC 10421K->6264K(14616K), 0.0014630 secs]
    [GC 10424K->6344K(14616K), 0.0027370 secs]
    [GC 10504K->6481K(14616K), 0.0034770 secs]
    [GC 10641K->6620K(14616K), 0.0282380 secs]
    [GC 10780K->6758K(14616K), 0.0027550 secs]
    [GC 10918K->6901K(14616K), 0.0026610 secs]
    [GC 11061K->7042K(14616K), 0.0033920 secs]
    [GC 11202K->7183K(14616K), 0.1176190 secs]
    [GC 11343K->7328K(14616K), 0.0026570 secs]
    [GC 11488K->7468K(14616K), 0.0037760 secs]
    [GC 11628K->7602K(14616K), 0.0030830 secs]
    [GC 11762K->7747K(14616K), 0.0037920 secs]
    [GC 11907K->7880K(14616K), 0.0039450 secs]
    [GC 12040K->8029K(14616K), 0.0037420 secs]
    [GC 12189K->8168K(14616K), 0.0059800 secs]
    [GC 12328K->8308K(14616K), 0.0040210 secs]
    [GC 12468K->8447K(14616K), 0.0141800 secs]
    [GC 12607K->8588K(14616K), 0.0040530 secs]
    [GC 12748K->8731K(14616K), 0.0927280 secs]
    [GC 12891K->8869K(14616K), 0.0039840 secs]
    [GC 13029K->8761K(14616K), 0.0167970 secs]
    [GC 12921K->8655K(14616K), 0.0013430 secs]
    [GC 12815K->8692K(14616K), 0.0027280 secs]
    [GC 12852K->8697K(14616K), 0.0022180 secs]
    [GC 12857K->8698K(14616K), 0.0018800 secs]
    [GC 12858K->8844K(14616K), 0.0030390 secs]
    [GC 13004K->8703K(14616K), 0.0020500 secs]
    [GC 12863K->8775K(14616K), 0.0022840 secs]
    [GC 12935K->8762K(14616K), 0.0021550 secs]
    [GC 12922K->8897K(14616K), 0.0029530 secs]
    [GC 13057K->9028K(14616K), 0.0321850 secs]
    [GC 13188K->9175K(14616K), 0.0037260 secs]
    [GC 13335K->9307K(14616K), 0.0197840 secs]
    [GC 13467K->9436K(14616K), 0.0037780 secs]
    [GC 13596K->9565K(14616K), 0.0254750 secs]
    [GC 13725K->9691K(14616K), 0.0032600 secs]
    [GC 13851K->9828K(14616K), 0.0034450 secs]
    [GC 13988K->9966K(14616K), 0.0038190 secs]
    [GC 14126K->10107K(14616K), 0.0039240 secs]
    [GC 14267K->10247K(14616K), 0.1258140 secs]
    [GC 14407K->10387K(14744K), 0.0040400 secs]
    [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
    10387K->5407K(14744K), 1.3601020 secs]
    [GC 9567K->5549K(14616K), 0.0024490 secs]
    [GC 9709K->5695K(14616K), 0.0159350 secs]

    Pl post details of OS, database and EBS versions. The error is here
    >
    [12/1/10 8:04:04 AM] [UNEXPECTED] [1272712:RT4365650] java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA ...
    >
    Pl see if the solution in MOS Doc 367456.1 (Why Does the 'Concurrent Program Details Report - XML Publisher' Fail with 'No corresponding LOB dat) is applicable. Other possibly relevant MOS Docs are
    XML Report Preview : Java.Sql.Sqlexception: No Corresponding Lob Data Found          (Doc ID 418374.1)
    Getting ''No Corresponding Lob Data Found'' Error From XDOREPPB 'XML Report Publisher'          (Doc ID 399349.1)
    Publish Fsg Report fails with "java.sql.SQLException: No corresponding LOB data found"          (Doc ID 420528.1)
    The Canadian RL1 Electronic Interface is Ending in Error: 'java.sql.SQLException: No corresponding L          (Doc ID 1068986.1)
    AR Customer Balance Statement Letter /Statements Output is in XMLand not in PDF          (Doc ID 975501.1)
    "An error encountered either due to invalid Template details or due to null Data Input Stream" While          (Doc ID 1068524.1)
    XML Publisher Invoice Print Report Has No Output Generated          (Doc ID 427314.1)
    HTH
    Srini

  • The Concurrent Program Error (Report)

    Hi,
    I am new to apps.
    Here i have created the sample report,
    the query is very simple
    select
    h.Segment1,
    h.creation_date,
    h.vendor_id,
    h.currency_code,
    s.vendor_name,
    l.line_num,
    l.item_id ,
    l.item_description,
    l.unit_meas_lookup_code,
    l.quantity,
    l.unit_price,
    Nvl(l.quantity,0)* Nvl(l.unit_price ,0) total
    from po_headers_all h,
         po_lines_all l,
         Ap_suppliers S
    where h.PO_HEADER_ID = l.PO_HEADER_ID
      and h.VENDOR_ID = s.VENDOR_ID
      and h.org_id = fnd_profile.value('ORG_ID')
      and H.Segment1 = :P_po_numberThe above query in report is call 'G-Segment1'. In which i add a formula column called CF_net_value,
    The reason to add the formula column is that i need to format currency using fnd format_currency
    so i add the following code in the formula column .
    function CF_Net_valueFormula return Number is
    begin
      srw.reference(:Currency);
      srw.reference(:total);
      srw.user_exit('FND FORMAT_CURRENCY
                   CODE=":Currency"
                   DISPLAY_WIDTH="15"
                   AMOUNT=":TOTAL"
                   DISPLAY=":Cf_net_value"
      Return(:cf_net_value);              
    end;In RTF template i am using the CF_net_value to display the Total (i think that will be formatted one).
    After the report deployment and run the concurrent program i am receive the following error.
    REP-1416: '': User exit 'G_Segment1'. .
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1416: '': User exit 'G_Segment1'. Please help me in this struggle.
    Thanks & Regards,
    Kanish

    Please post the details of the application release, database version and OS along with the developer version you are using.
    Please see if old threads help -- https://forums.oracle.com/forums/search.jspa?threadID=&q=REP-57054&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • XML Pub enabled concurrent program --- from self-service responsibility

    How do I run XML publisher enabled concurrent programs from a self-serivce responsiblity?
    Is there any document/whitepaper on this issue?
    Thanks

    Same way as you define any other concurrent program.
    Define Executable based on this JCP. Concurrent>Program>executable
    Create report Definition based on this executable from Concurrent>Program>Define.
    Include this report definition to respective report set.

  • I want to submit a concurrent program from pl/sql. Please help me.

    Dear all,
    I want to submit a concurrent program from pl/sql. But I failed. Please help me.
    Detail:
    I create a concurrent program in 'Cash Management, Vision Operations (USA)' responsibility. <strong>And it be submitted success in EBS</strong>.
    Then
    I create a test script in pl/sql. And use 'FND_GLOBAL.APPS_INITIALIZE' to initialize ebs, then use 'FND_REQUEST.SUBMIT_REQUEST' to submit
    the consurrent program, But the procedure aways return <strong>0</strong>.
    I cannot found the reason. Please help me.Thanks.
    <em>Attached informations may describe the problem:
    1.The concurrenct submitted success in EBS.</em>
    request_id = 4750655 (Sorry, I dont know how to add pictures.)
    <em>2.The initialize informations which from SQL</em>.
    SELECT FCR.REQUESTED_BY USER_ID
    ,FCR.RESPONSIBILITY_ID
    ,FCR.RESPONSIBILITY_APPLICATION_ID
    ,FA.APPLICATION_SHORT_NAME
    ,FCP.CONCURRENT_PROGRAM_NAME
    FROM FND_CONCURRENT_REQUESTS FCR
    ,FND_APPLICATION FA
    ,FND_CONCURRENT_PROGRAMS FCP
    WHERE FCR.PROGRAM_APPLICATION_ID = FA.APPLICATION_ID
    AND FCR.CONCURRENT_PROGRAM_ID = FCP.CONCURRENT_PROGRAM_ID
    AND FCR.REQUEST_ID = 4750655;
    Result: user_id = 1318;
    responsibility_id = 50579;
    application_id = 260;
    application_short_name = 'CE';
    program_short_name = 'CALLK009';
    <em>3.The test script code.</em>
    <p>
    -- Created on 2008/10/22 by ERIC
    declare
    -- Local variables here
    Wv_conc_req_id VARCHAR2(10) DEFAULT NULL;
    BEGIN
    FND_GLOBAL.APPS_INITIALIZE(
    1318
    ,50579
    ,260
    Wv_conc_req_id := FND_REQUEST.SUBMIT_REQUEST(
    'CE'
    ,'CALLK009'
    ,NULL
    ,SYSDATE
    ,FALSE
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    DBMS_OUTPUT.PUT_LINE(Wv_conc_req_id);
    COMMIT;
    end;
    <em>4.The concurrent program code.</em>
    create or replace package body CALLTEST is
    PROCEDURE T1(PvO_errbuf OUT VARCHAR2
    ,PvO_retcode OUT VARCHAR2)
    IS
    BEGIN
    FND_FILE.PUT_LINE(fnd_file.log, 'TEST');
    END;
    end CALLTEST;
    </p>

    Can you check from which schema you are executing FND_REQUEST? You can try as follows;
    Connect to your required schema, create a synonym on apps.fnd_request, connect from apps and finally execute grant all on apps.fnd_request to all.
    You can check for relevance from Doc ID: Note:147495.1
    Please do keep in the mind the soultion above should be applied to a test/dev EBS instance first.
    I hope this would be of help.
    Saad

  • 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

  • Trying to invoking Concurrent Program from BPEL (How to change Resp n WSDL)

    Hi,
    I am trying to invoke a concurrent program from my BPEL process using Oracle Apps adapter. When i am using this adapter, it is not showing the required concurrent program in open interface folder. It showing only few but not one which i am trying to invoke. Can anybody explain me what is the issue with my apps adapter.
    I am using apps schema for adapter.
    Please explain me the below Queries.
    1. Is apps schema enough to configure and get the required concurrent program for adapters?.
    2. After creating apps adapter, in wsdl file it is showing apps user as : SYSTEM and Responsibility as : System Administrator. How can i change this responsibility to the required responsibility whihc can run my concurrent program.
    I am not sure about system administrator responsibility can able to run the required concurrent program.
    Regards,
    Rs.

    First of all does this scenario occur again.
    "Works first/second time. Later gives this error."
    After you restart the SOA server are you able to reproduce this scenario?
    As already pointed out and from the error message, database connection is reset.
    If you find this error again, try this out.
    em -> home / oc4j_soa -> Administration -> JDBC Resources
    Use the "Test Connection" option for the Connection Pool that you are using for your database JNDI.
    It comes back and say "Connection to "XYZCP" established successfully." it is good to use.
    Run the BPEL process again and once you find the error, come back and test the connection.
    If it comes back with Error, diagnose based on the error message received.
    Cheers
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • Format changing after running the concurrent program for indentation

    Hi
    I have got an issue regarding indentation in rtf template. Actually in the template I have indentation or numbering in one format like david but after running the concurrent program in the temlate output I am getting the numbering in Latin letters. like
    I
    II
    III
    etc.
    can anyone please send me the resolution for this issue.
    Thanks and regards
    kk

    What is the application release?
    If you are on 11i, please make sure you have (Patch 8198363: INDENTATION PROBLEM WHILE GENERATING RTF OUTPUT USING RTF TEMPLATE) applied and check then.
    Thanks,
    Hussein

  • Java.lang.OutOfMemoryError when running java concurrent program

    Hi,
    i had written a java concurrent program to create the content items into Oracle Content Manager (OCM). Process the records from interface table and create the content items into OCM by calling the API IBC_CITEM_ADMIN_GRP.upsert_item().
    I run the concurrent program with 2000 records in interface table, it's an one to one process, 563 records are processed and 563 content items are created successfully in OCM. After 563 records continuously throws the Exception
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line('EX - bundle validation others--');
    x_return_status := FND_API.G_RET_STS_ERROR;
    FND_MESSAGE.Set_Name('IBC', 'A_BUNDLE_ERROR');
    FND_MESSAGE.set_token('SITUATION', 'VALIDATION');
    FND_MSG_PUB.ADD;
    IF IBC_DEBUG_PVT.debug_enabled THEN
    IBC_DEBUG_PVT.end_process(
    IBC_DEBUG_PVT.make_parameter_list(
    p_tag => 'OUTPUT',
    p_parms => JTF_VARCHAR2_TABLE_4000(
    'x_return_status', '*** EXCEPTION *** [' || SQLERRM || ']'
    END IF;
    in IBC_CITEM_ADMIN_GRP.validate_attribute_bundle() API.
    Again running the concurrent program it process another 563 records. Can any one help me to fix this issue?
    i figured out the exception. When debug the error, i got the actual error message like this
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
    for this issue i increased the heap memory size up to 1024MB. Still i have the same issue. Can any one help to fix the issue?

    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.ArrayIndexOutOfBoundsException:
    -2048 < 0Aren't the null pointer and arrayindexoutofbounds, the ones which you get when you are trying to read beyond your array? (example: when your loop tries to access the 563rd element in your array, since your array index starts from 0)?
    May be if you can try to write out your elements in the array, you might see what it is croaking about.
    Thanks,
    Chiru

Maybe you are looking for