Open Interface API - slow performance

Hi
I am creating jobs using hr_job_api.create_job API. There are 765 records and my procedure is running for 10 mins and seems to be going on....
I have tested my same procedure with 10 records and it worked perfectly. But as soon more records have been added, the API is not only slow, it seems DEAD.
Please suggest a solution? may be some performace tuning tips!
Thanks
- saira

All, thanks for your feedbacks
My mistake, I didnt handle exceptions in my code. Due to some incorrect data format in the source data (as Ivan/thiery mentioned, there were invalid keyflex values) and no exception handling in my code lead to a dead-end loop.
Now it works smoothly with exception handling properly done.
Regards
- Saira

Similar Messages

  • Open Interface & APIs available in R12

    Please share metalink reference noteId for Open Interface & APIs available in R12

    Hi Arya,
    For 11i :
    http://irep.oracle.com/index.html
    For R12, you can check the APIs using the responsibility 'Integration Repository'
    Cheers,
    Vigneswar

  • SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)

    제품: MFG_PO
    작성날짜 : 2006-05-11
    SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
    ================================================================
    PURPOSE
    Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
    tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
    Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
    transaction을 생성하기 위해 ROI에 data를 입력한다.
    Receiving Transaction Processor는 insert 된 data를 실행한다.
    Explanation
    Instructions:
    1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
    edior에 script 내용을 cut&paste 한다.
    2.사용가능한 PO no, User id, Org id를 결정한다.
    3.sqlplus prompt에서 아래와 같이 입력한다.
    SQL> @ezroi.sql
    4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
    5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
    rcv_transactions_interface tables에 insert 한다.
    만일 PO shipment lind이 closed, cancelled, fully received 되었다면
    ROI table에 data를 insert 하지 않는다.
    Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
    이 실행될 뿐이다.
    6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
    lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
    line이 pending 인지 error 상태인지 확인할 수 있다.
    Notes:
    1.Org_id parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: ORG_ID 를 선택한다.
    b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
    2.User_Name parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: USER_NAME 를 선택한다.
    b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
    Example
    "eZROI.sql' script...
    --*** eZROI ***
    --*** by ***
    --*** Preston D. Davenport ***
    --*** Oracle Premium Applications Support ***
    --*** Oracle Worldwide Global Support Services ***
    --*** Date: 23-JUL-2003 - Beta release ***
    --*** Date: 09-SEP-2003 - Rev A Added multi- ***
    --*** shipment line capability ***
    --*** Parameters: ***
    --*** ORG_ID Organization ID ***
    --*** USER_NAME FND User Name ***
    --*** PO_NUMBER Purchase Order Number ***
    --*** This script intended for a standard Purchase ***
    --*** Order document to be inserted into the Oracle ***
    --*** Receiving Open Interface (ROI) via the standard ***
    --*** Oracle open interface api for a simple Receive ***
    --*** transaction. ***
    --*** Note: This script only considers open Purchase ***
    --*** Orders. This script will not allow over- ***
    --*** receipt, cancelled or closed PO's to be ***
    --*** inserted into the ROI and received ***
    CLEAR BUFFER
    SET VERIFY OFF
    SET LINESIZE 140
    SET PAGESIZE 60
    SET ARRAYSIZE 1
    SET SERVEROUTPUT ON SIZE 100000
    SET FEEDBACK OFF
    SET ECHO OFF
    DECLARE
    X_USER_ID NUMBER;
    X_PO_HEADER_ID NUMBER;
    X_VENDOR_ID NUMBER;
    X_SEGMENT1 NUMBER;
    X_ORG_ID NUMBER;
    X_LINE_NUM NUMBER;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
    SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
    INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
    FROM PO_HEADERS_ALL
    WHERE SEGMENT1 = '&PO_NUMBER'
    AND ORG_ID = &ORG_ID;
    SELECT USER_ID INTO X_USER_ID
    FROM FND_USER
    WHERE USER_NAME = UPPER('&USER_NAME');
    INSERT INTO RCV_HEADERS_INTERFACE
    HEADER_INTERFACE_ID ,
    GROUP_ID ,
    PROCESSING_STATUS_CODE ,
    RECEIPT_SOURCE_CODE ,
    TRANSACTION_TYPE ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    LAST_UPDATE_LOGIN ,
    VENDOR_ID ,
    EXPECTED_RECEIPT_DATE ,
    VALIDATION_FLAG
    SELECT
    RCV_HEADERS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.NEXTVAL ,
    'PENDING' ,
    'VENDOR' ,
    'NEW' ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    X_VENDOR_ID ,
    SYSDATE ,
    'Y'
    FROM DUAL;
    DECLARE
    CURSOR PO_LINE IS
    SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
    PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
    MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
    PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
    PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
    FROM PO_LINES_ALL PL ,
    PO_LINE_LOCATIONS_ALL PLL ,
    MTL_PARAMETERS MP
    WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
    AND PL.PO_LINE_ID = PLL.PO_LINE_ID
    AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
    BEGIN
    FOR CURSOR1 IN PO_LINE LOOP
    IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
    AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
    AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
    THEN
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    INTERFACE_TRANSACTION_ID ,
    GROUP_ID ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    CREATION_DATE ,
    CREATED_BY ,
    LAST_UPDATE_LOGIN ,
    TRANSACTION_TYPE ,
    TRANSACTION_DATE ,
    PROCESSING_STATUS_CODE ,
    PROCESSING_MODE_CODE ,
    TRANSACTION_STATUS_CODE ,
    PO_LINE_ID ,
    ITEM_ID ,
    QUANTITY ,
    UNIT_OF_MEASURE ,
    PO_LINE_LOCATION_ID ,
    AUTO_TRANSACT_CODE ,
    RECEIPT_SOURCE_CODE ,
    TO_ORGANIZATION_CODE ,
    SOURCE_DOCUMENT_CODE ,
    DOCUMENT_NUM ,
    HEADER_INTERFACE_ID ,
    VALIDATION_FLAG
    SELECT
    RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.CURRVAL ,
    SYSDATE ,
    X_USER_ID ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    'RECEIVE' ,
    SYSDATE ,
    'PENDING' ,
    'BATCH' ,
    'PENDING' ,
    CURSOR1.PO_LINE_ID ,
    CURSOR1.ITEM_ID ,
    CURSOR1.QUANTITY ,
    CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
    CURSOR1.LINE_LOCATION_ID ,
    'RECEIVE' ,
    'VENDOR' ,
    CURSOR1.ORGANIZATION_CODE ,
    'PO' ,
    X_SEGMENT1 ,
    RCV_HEADERS_INTERFACE_S.CURRVAL ,
    'Y'
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
    END IF;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
    END;
    COMMIT;
    END;
    SET VERIFY ON
    Reference Documents
    Note 245334.1

    I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
    Did you make any progress ??
    Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
    Consult the make.log in the build directory
    /var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
    make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
    Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
    make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
    make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
    Makefile:120: recipe for target 'vmblock.ko' failed
    Last edited by crankshaft (2014-01-10 11:32:32)

  • Open interface for creating/updating orgs

    Is there an open interface/API for creating and/or updating organizations representing plants/distribution centers/warehouses etc in EBS?? If not is there any way to load such information beside the UI.

    Have a look at the Human Resources product on iRep. There ara API's for organizations and i thing classification also.

  • 1)    Is there North Bound Interface / API from SAP Solution Manager available for 3rd party integration?       i. The list of the modules that are being managed by SAP Solution Manager(s)      ii. The performance metrics of those modules/components at th

    1)
    Is there North Bound Interface / API from SAP Solution Manager available for 3rd party integration?
    i. The list of the modules that are being managed by SAP Solution Manager(s)
    ii. The performance metrics of those modules/components at the high level
    iii. The information about Early Watch Alerts (or situations to watch for)
    2)
    Is there a full SNMP interface for getting the above information from SAP Solution Manager?
    3)
    Is that understanding that SAP has SNMP support for forwarding alerts to a 3rd party system, correct?
    4)
    Does SAP has both free and licensed? If yes then what are the advantages of licensed over the open/free version?

    Mugunthan
    Yes we have applied 11i.AZ.H.2. I am getting several errors still that we trying to resolve
    One of them is
    ===========>>>
    Uploading snapshot to central instance failed, with 3 different messages
    Error: An invalid status '-1' was passed to fnd_concurrent.set_completion_status. The valid statuses are: 'NORMAL', 'WARNING', 'ERROR'FND     at oracle.apps.az.r12.util.XmlTransmorpher.<init>(XmlTransmorpher.java:301)
         at oracle.apps.az.r12.extractor.cpserver.APIExtractor.insertGenericSelectionSet(APIExtractor.java:231)
    please assist.
    regards
    girish

  • Bad performance with Payables Open Interface Import

    hello all
    have a performance problem with the standard program Payables Open Interface Import, as this process is taking a long time to run.
    could recommend some patch for this issue or a solution.
    our application is 11.5.10.2 and Database 10g
    now create a SR but to date we have not been sending the first plan of action
    best regards

    There are many reasons this is a performance problem - search in MOS for "APXIIMPT performance" or "payables open interface import performance"
    Your best bet is to work this thru an SR.
    Have you traced the concurrent to determine where the bottleneck is ? Are statistics current ?
    HTH
    Srini

  • Api's for payables open interface

    what are the API's that are used in payables open interface????

    You can see details at
    http://www.oracleappshub.com/account-payable/oracle-api-availability-oracle-payables-ap/

  • Open Interface or Public/Private API for Blanket Release

    Hi All,
    I am on Oracle Apps 11.5.10.2
    Is there any open interface available to import the blanket releases in Oracle system. I have searched the meta link and found the doc 160781.1. According to the document there has been a future enhancement request logged by Oracle for this functionality but I am interest if any one know about some private API available to do same job. I will also appreciate if someone can share his project experience in migrating the blanket release to the Oracle.
    Thanks
    Vishalaksha

    I do not think it is available in 11i -- Please see (HOW TO IMPORT BLANKET SALES AGREEMENT AND BLANKET RELEASE. (Doc ID 336086.1)) for details.
    You may log a SR and confirm this with Oracle support.
    Thanks,
    Hussein

  • How to create new cost groups in inventory org using API or open interface?

    Hi,
    I would be very kind of you if you can provide me with a solution to my question below.
    I have a requirement of copying all the cost groups from one inventory org and creating the same cost groups in another inventory org using programmatically. Is there any API or Open interface that can be used to create the cost groups in the new inventory organization? If not can you suggest any other way of fulfilling this requirement?
    I would highly appreciate your help.
    Thanks,
    Ranajit

    hi,
    think, it's not possible.
    look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/71e05a448011d189f00000e81ddfac/frameset.htm
    "The field groups and their respective fields are defined in system tables"
    kind regards
    Andreas

  • Importing outside of API / Open Interface supported?  Partial Workflow ?

    Hi there
    I've been asked to find out if importing data not using the API or Open API is supported by Oracle?
    There is a proposal to import orders into Order Management from a legacy database. Some of these orders may be partially through the workflow chain.
    As far as I can see, Oracle doesnt provide an API to import Orders which are part the way through the workflow, so if we were to import them, it would have to be custom code.
    I want to know if this is supported or doable (I'm hoping not!)
    Thanks
    Scott

    Hi;
    Please check below notes which could be helpful for your issue:
    How To Import Orders With Skipped Lines Using Process_Order API [ID 746172.1]
    Where Can I Find a List of APIs Supported by Data Pump? [ID 759150.1]
    Oracle Order Management Suite White Papers [ID 113492.1]
    Also check:
    Order Import and Prerequisites for order Import
    http://oracleebusinesssuite.wordpress.com/2007/11/07/order-import-and-prerequisites-for-order-import/
    Oracle Order Management APIs and Open Interfaces Manual, Volume 1
    download.oracle.com/docs/cd/A91130_01/acrobat/115omapi.pdf
    Regard
    Helios

  • Api or open interface for ABC class

    Hi All,
    Is ther any api or open interface available for mass updating items with new ABC class ?
    Regards,
    Sam

    There is no api. So recently, I had to use the following unsupported way to achieve this.
    There are no other relationships for this table so you can do a straight insert.
    insert into MTL_ABC_ASSIGNMENTS
    (select v.inventory_item_id, g.assignment_group_id,c.abc_class_id,sysdate,11531,sysdate,11531,null,null,null,null
    from MTL_ABC_ASSIGNMENTS_V v,MTL_ABC_ASSIGNMENT_GROUPS g, MTL_ABC_ASSGN_GROUP_CLASSES_V c
    where v.ASSIGNMENT_GROUP_NAME = 'OLD GROUP'
    and g.assignment_group_name='NEW GROUP'
    and c.abc_class_name= substr(v.abc_class_name,1,1) -- the new group is the first character of the old group
    and g.assignment_group_id = c.assignment_group_id
    --and inventory_item_id!=18895
    Hope this helps,
    Sandeep Gandhi

  • Open Interfaces and API

    Anyone figured out how to set a column back to Null using the 11i open interfaces and/or API's ???
    Thanks in advance,
    Matt

    Updating a column to a Null value is only available for Release 11 via
    patch 9073379. From package INVUPD1B.pls version 110.4 onwards Oracle is supporting the following ways to update NULL to item attributes through Item Open Import:
    For Numeric fields : insert -999999
    For Character fields : insert '!'
    This only applies to fields that are nullable in the form.
    I have a list that I got off of Metalink at one time, but have not been able to find it again. A search on Metalink using 'IOI null' should give you a little to look at.
    Kevin

  • APIS FOR RECEIVING OPEN INTERFACE

    Hi all,
    Can any one help me regarding APIS for receiving open interface for ASN(Advanc shipment notice)
    regards
    SREE

    For 11i, all public APIs are listed at http://irep.oracle.com
    For R12, use the Integration Responsibility responsibility to look up the APIs
    HTH
    Srini

  • Is there any API or Open Interface to import Trading Partners?

    Hi,
    Is there any API or Open Interface to import Trading Partners?
    Thanks in advance.

    Hi user;
    Please check:
    http://www.oracleappsblog.com/index.php?ACT=33&fid=27&aid=54_xNjHKqlfFIZZQjy1iytr&board_id=1
    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/ec/import.htm
    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/ec/tp.htm
    http://www.scribd.com/doc/3186838/Oracle-Apps-Payable
    Hope one of them could helps u
    Regard
    Helios

  • Is there an API or Open Interface to convert Price Lists?

    Hi,
    Is there an API or Open Interface to convert Price Lists?
    What are the additional setups needed to do implement Price Lists ?
    Im new to Advnaced Pricing and Order Managment.
    Thanks and Regards,
    MPH

    There is the Price List Setup API (QP_Price_List_PUB.Process_Price_List) which you'll find details for in the Order Management APIs manual and the Price List Bulk Loader which is detailed in the QP user guide plus there's lots of good info and example scripts on My Oracle Support.
    Apart from qualifying your price list header as per your business requirement (in other words, restricting its use to particular OUs, customers, products, order types etc.), in the simplest case the price list itself can be just a simple list of discrete items with their associated prices. However, you may also need to consider:
    <li> Multicurrency - do you want to have multiple price lists, one for each currency, or one price list in a base currency with multicurrency conversions in the background? (the latter being much the easiest to maintain).
    <li> Is your business requirement best served by pricing by discrete inventory item codes? by item categories? by pricing attributes? (this being the mapping of some properties of your data to a named pricing attribute, the value being collected from a lookup, entered at order entry, or derived via custom PL/SQL),
    <li> Consider using secondary price lists if this allows your pricing information to be structured better
    <li> Do you intend to enter a fixed value against each price list line or to calculate a price by way of a dynamic or static formula?
    Regards,
    Jon

Maybe you are looking for

  • Sorting in Cross Tab

    Hi, We are using the Cross Tab component in Crystal Report XI and the cross tab have the sorting option as ascending, descending and specific order. The Sorting order will come from the query as an parameter, in that case how do we achieve the sort o

  • Lightroom mobile trial - Adobe signed me up!?

    I received an email from Adobe saying that I had signed up for a 30 day trial of Lightroom Mobile. I do not remember doing this. While I'd love to try this service at a later date, this is a busy time of year and I will not be able to take advantage

  • BB Desktop Software 4.5/Handhe​ld OS 4.5 for AT&T Curve 8310

    Does anyone have a BB Curve 8310 with AT&T and has been successfully able to upgrade to the desktop 4.5 and the O.S. 4.5 for the handheld? Is it possible?

  • Weird printing artefacts in LR3.3

    Hi, I am trying to get some decent prints from LR3.3 but am getting some weird behavior with the color Orange. This not only happens in LR3.3 but also in Photoshop (CS3 to be exact). I have included some screenshots from Photoshop to demonstrate what

  • "Add video" unavailable ???

    why the add video is unavilable on the toolbar of discussion editor on these forums?