Error while creating a record in a custom infotype

hi to all experts,
I have created a infotype with 3 screens . But one of the screen im getting this error while saving a record .The Required screen change cannot be made.

Im defining using the table pa9005 not the structure p9005
(is it the same)
Please help me ....
Edited by: mohammed  abdul hai on Sep 18, 2009 8:20 AM

Similar Messages

  • Error while creating a query for my custom infotype

    Hi,
    I have created a custom infotype with fields currency amount and currency field .
    While I am creating a query for it its giving an error
    Message no. AQ_AD_HOC221 Error when generating the report(see long text )
    I tried to execute the standard program RPUMS40CCI but still I am facing same error .
    I have also maintained table T777i for my infotype but still problem exists.
    Please help.
    P

    Hi
    Check in PM01

  • Error while creating absence record in PA30 using 2001 infotype

    Hi all,
    iam getting an error while creating absence record for infotype 2001for LOP(unpaid)
    error : No quota available for att./abs. 6000 for pers. no. 61000052 between 31.12.2009 and 31.12.2009
    i have did
    Create a absence type LOP
    Determine Entry Screens and Time Constraint Classes
    Define Counting Rules
    Assign Counting Rules to Absence Types
    Payroll: India>>Absences>Describe Absence Valuation Rules 01 Unpaid Leave
    Group Absences for Absence Valuation>>Absence valuation rule>>F4 country grouping 40>> assign 01Unpaid Leave
    please solve this

    Actually I don't know how your system is configured.
    However, the error you're receiving seems you have assigned the absence type to a quota type.
    Please go to your counting rule and check whether Deduction rule - absence quotas - within entitlement field is filled.
    If yes, get the deduction rule value and go to
    SPRO Time man- Time data rec - Absences - Absence Cat - Abs counting - rules for counting (new) - deduction rules for abs quotas and check the quota type in here.
    If there is a quota assignment in place, before creating an IT2001 you need to create a IT2006 for that specific time period.
    Or, you need to delete the quota assignment via two config steps mentioned above.
    Regards,
    Dilek

  • Error while creating condition record

    Hi
    Am using 4.7 and creating condition record while saving condition record am getting error NO UPDATE SERVER FOUND FOR CONTEXT E, So am stuck up and do not know whom to contact is it error for BASIS? or related with SD kindly help.
    Thanx

    Hi Mukesh
    As you are getting error NO UPDATE SERVER FOUND FOR CONTEXT E,  while saving the condition record, kindly consult your BASIS consultants and ask them to check wheather the pricing related  tables and structures  have been copied and uploaded properly or not.
    Regards
    Srinath

  • Error while creating condition record in qc15?

    Hi all
    I have  selected QCA1 and selected material and customer and trying assign E22 but then getting an error " No released version found for specified selection E22"
    kindly suggest me the solution on this
    regards,
    sanju

    Hi Yogini,
    I have crated a new profile , an created a condition record also with respect qca1 and assigned this profile.
    how to make use of this profile further?
    regards,
    Sanjana

  • Getting ORA-20001: Address_Cannot_be_Primary error while creating US Global

    Dear All,
    I am getting ORA-20001: Address_Cannot_be_Primary error while creating address record of address type US global.
    While analyzing the PYUPIP trace, I found the following piece of the code is causing issue:
    File : /* $Header: peusaddlh.pkb 120.0.12010000.2 2010/05/08 09:10:25 lbodired noship $ */
    Package : APPS.PER_US_ADD_LEG_HOOK.CREATE_US_ADDRESS
    Code check :
    IF (p_style <> 'US'
    AND P_PRIMARY_FLAG = 'Y'
    AND csr_emp_assign%FOUND) THEN
    close csr_emp_assign;
    hr_utility.set_message (800, 'Address_Cannot_be_Primary');
    hr_utility.raise_error;
    END IF;
    It seems that while applying this check the case of the US Global address style is not taken care.
    It has struck the address conversion, as all the records of my client has the address style US Global.
    Please suggest how it will effect if for the time being I do following code changes in the seeded package(I know it is not recommened, but can not wait for the patch).
    1. Comment the whole check
    2. Replace the above code with the follwoing code :
    IF (p_style not in ('US','US_GLB')
    AND P_PRIMARY_FLAG = 'Y'
    AND csr_emp_assign%FOUND) THEN
    close csr_emp_assign;
    hr_utility.set_message (800, 'Address_Cannot_be_Primary');
    hr_utility.raise_error;
    END IF;
    Looking for the prompt reply.
    regards
    Devender Yadav

    Dear All,
    Oracle has supplied the patch 9902020 for the fix of the issue.
    Now the payroll install check condition is also added in the check.
    Code in the check is now like this :
    IF (p_style <> 'US'
    AND P_PRIMARY_FLAG = 'Y'
    AND csr_emp_assign%FOUND
    AND hr_general.chk_product_installed('801') = 'TRUE') THEN
    close csr_emp_assign;
    hr_utility.set_message (800, 'Address_Cannot_be_Primary');
    hr_utility.raise_error;
    END IF;
    As my client has not installed the payroll, so the fix will work for us.
    Thanks to all of you for your replies.
    Regards
    Devender Yadav

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error while creating customer account sites from backend

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Duplicate post.
    Error while creating customer account sites
    Error while creating customer account sites

  • ESS: Error while creating Family/Dependents record from portal

    Hi All,
    I'm getting a critical error while creating family members and dependents record from portal.
    CRITICAL ERROR
    "Type conflict in the ASSIGN statement in the program CL_HRPA_CONVERT_0021_US=======CP        ., error key: RFC_ERROR_SYSTEM_FAILURE"
    I checked the short dump in R/3 Side and searched for OSS note and didnt find any. I raised an OSS message.
    If any had've already comeacross this, pls let me know.
    System Details
    EP 6.0 SP15
    ESS Business Package BPERP4ESS0_0
    ESS Support Package  ESS10P_2-10002965, PCUIGP010P_1-20000568
    Thanks
    Karthik

    Hello Karthik:
    I'm getting the same error:
    "critical error while creating family members and dependents record from portal.
    Type conflict in the ASSIGN statement in the program CL_HRPA_CONVERT_0021_US=======CP ., error key: RFC_ERROR_SYSTEM_FAILURE"
    Maybe you can help me solving this problem.
    I appreciate your help.
    Thanks in advance.

  • Error while creating new projects using api

    Hello,
    I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
    Source template ID is invalid.
    ===
    My code is as follow:
    SET SERVEROUTPUT ON SIZE 1000000
    SET VERIFY OFF
    define no=&amg_number
    DECLARE
    -- Variables used to initialize the session
    l_user_id NUMBER;
    l_responsibility_id NUMBER;
    cursor get_key_members is
    select person_id, project_role_type, rownum
    from pa_project_players
    where project_id = 1;
    -- Counter variables
    a NUMBER := 0;
    m NUMBER := 0;
    -- Variables needed for API standard parameters
    l_commit VARCHAR2(1) := 'F';
    l_init_msg_list VARCHAR2(1) := 'T';
    l_api_version_number NUMBER :=1.0;
    l_return_status VARCHAR2(1);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    -- Variables used specifically in error message retrieval
    l_encoded VARCHAR2(1) := 'F';
    l_data VARCHAR2(2000);
    l_msg_index NUMBER;
    l_msg_index_out NUMBER;
    -- Variables needed for Oracle Project specific parameters
    -- Input variables
    l_pm_product_code VARCHAR2(30);
    l_project_in pa_project_pub.project_in_rec_type;
    l_key_members pa_project_pub.project_role_tbl_type;
    l_class_categories pa_project_pub.class_category_tbl_type;
    l_tasks_in pa_project_pub.task_in_tbl_type;
    -- Record variables for loading table variables above
    l_key_member_rec pa_project_pub.project_role_rec_type;
    l_class_category_rec pa_project_pub.class_category_rec_type;
    l_task_rec pa_project_pub.task_in_rec_type;
    -- Output variables
    l_workflow_started VARCHAR2(100);
    l_project_out pa_project_pub.project_out_rec_type;
    l_tasks_out pa_project_pub.task_out_tbl_type;
    -- Exception to call messag handlers if API returns an error.
    API_ERROR EXCEPTION;
    BEGIN
    -- Initialize the session with my user id and Projects, Vision Serves (USA0
    -- responsibility:
    select user_id into l_user_id
    from fnd_user
    where user_name = 'SSHAH';
    select responsibility_id into l_responsibility_id
    from fnd_responsibility_tl
    where responsibility_name = 'Projects Implementation Superuser';
    pa_interface_utils_pub.set_global_info(
    p_api_version_number => l_api_version_number,
    p_responsibility_id => l_responsibility_id,
    p_user_id => l_user_id,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status);
    if l_return_status != 'S' then
    raise API_ERROR;
    end if;
    -- Provide values for input variables
    -- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
    -- by the user. In this case we select a pre-defined one.
    select lookup_code into l_pm_product_code
    from pa_lookups
    where lookup_type = 'PM_PRODUCT_CODE'
    and meaning = 'Conversion';
    -- L_PROJECT_IN: We have to provide values for all required elements
    -- of this record (see p 5-13, 5-14 for the definition of the record).
    -- Customers will normally select this information from some external
    -- source
    l_project_in.pm_project_reference := 'AGL-AMG Project &no';
    l_project_in.project_name := 'AGL-AMG Project &no';
    l_project_in.created_from_project_id := 1;
    l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
    l_project_in.project_status_code := 'UNAPPROVED';
    l_project_in.start_date := '01-JAN-11';
    l_project_in.completion_date := '31-DEC-11';
    l_project_in.description := 'Trying Hard';
    l_project_in.project_relationship_code := 'Primary';
    -- L_KEY_MEMBERS: To load the key member table we load individual
    -- key member records and assign them to the key member table. In
    -- the example below I am selecting all of the key member setup
    -- from an existing project with 4 key members ('EE-Proj-01'):
    for km in get_key_members loop
    -- Get the next record and load into key members record:
    l_key_member_rec.person_id := km.person_id;
    l_key_member_rec.project_role_type := km.project_role_type;
    -- Assign this record to the table (array)
    l_key_members(km.rownum) := l_key_member_rec;
    end loop;
    -- L_CLASS_CATEGORIES: commented out below should fix the error we get
    -- because the template does not have an assigment for the mandatory class
    -- 'BAS Test'
    l_class_category_rec.class_category := 'Product';
    l_class_category_rec.class_code := 'Non-classified';
    -- Assign the record to the table (array)
    l_class_categories(1) := l_class_category_rec;
    -- L_TASKS_IN: We will load in a single task and a subtask providing only
    -- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
    -- the task record)
    l_task_rec.pm_task_reference := '1';
    l_task_rec.pa_task_number := '1';
    l_task_rec.task_name := 'Construction';
    l_task_rec.pm_parent_task_reference := '' ;
    l_task_rec.task_description := 'Plant function';
    -- Assign the top task to the table.
    l_taskS_in(1) := l_task_rec;
    -- Assign values for the sub task
    l_task_rec.pm_task_reference := '1.1';
    l_task_rec.pa_task_number := '1.1';
    l_task_rec.task_name := 'Brick laying';
    l_task_rec.pm_parent_task_reference := '1' ;
    l_task_rec.task_description := 'Plant building';
    -- Assign the subtask to the task table.
    l_tasks_in(2) := l_task_rec;
    -- All inputs are assigned, so call the API:
    pa_project_pub.create_project
    (p_api_version_number => l_api_version_number,
    p_commit => l_commit,
    p_init_msg_list => l_init_msg_list,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status,
    p_workflow_started => l_workflow_started,
    p_pm_product_code => l_pm_product_code,
    p_project_in => l_project_in,
    p_project_out => l_project_out,
    p_key_members => l_key_members,
    p_class_categories => l_class_categories,
    p_tasks_in => l_tasks_in,
    p_tasks_out => l_tasks_out);
    -- Check the return status, if it is not success, then raise message handling
    -- exception.
    IF l_return_status != 'S' THEN
    dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
    dbms_output.put_line('Error: ret status: '||l_return_status);
    RAISE API_ERROR;
    END IF;
    -- perform manual commit since p_commit was set to False.
    COMMIT;
    --HANDLE EXCEPTIONS
    EXCEPTION
    WHEN API_ERROR THEN
    FOR i IN 1..l_msg_count LOOP
    pa_interface_utils_pub.get_messages(
    p_msg_count => l_msg_count,
    p_encoded => l_encoded,
    p_msg_index => i,
    p_msg_data => l_msg_data,
    p_data => l_data,
    p_msg_index_out => l_msg_index_out);
    dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
    END LOOP;
    rollback;
    WHEN OTHERS THEN
    dbms_output.put_line('Error: '||sqlerrm);
    FOR i IN 1..l_msg_count LOOP
    pa_interface_utils_pub.get_messages(
    p_msg_count => l_msg_count,
    p_encoded => l_encoded,
    p_msg_index => i,
    p_msg_data => l_msg_data,
    p_data => l_data,
    p_msg_index_out => l_msg_index_out);
    dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
    END LOOP;
    rollback;
    END;
    ===
    Msg_count: 1
    Error: ret status: E
    ERROR: 1: Project: 'AGL-AMG Project 1123'
    Source template ID is invalid.
    PL/SQL procedure successfully completed.

    I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)

  • Oracle.jbo.RowCreateException: JBO-25017: Error while creating a new ROW

    I am trying same multi step PO example. I have created a search page and there are 3 other pages for PO Header, PO Line and Review/Submit Page. I am coming on 2nd page(creating Line Item) and when I click on create new item record I am getting this error. Any help will be aprrecaited.
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for POLinesEO.
    This is my code for POLineShipFullVORowImpl.java
    protected void create(oracle.jbo.AttributeList nvp)
    POLinesEOImpl lineEO = (POLinesEOImpl)getEntity(0);
    POShipmentEOImpl shipmentEO = (POShipmentEOImpl)getEntity(1);
    try
    // Create Lines EO
    lineEO.create(nvp);
    // Create Shipments EO
    shipmentEO.create(lineEO);
    // Calling this ensures that any personalization default values are
    // properly set since the OAF normally sets this in the super.create(), but
    // since this is not called in this workaround, we need another method
    // to ensure customer defaults are applied.
    // The following method was introduced in OAF internal release 11.5.10J. Since
    // the production release of the ToolBox must be able to run on 11.5.10I, this
    // cannot be enabled.
    // setDefaultValue();
    catch (Exception ex)
    lineEO.revert();
    shipmentEO.revert();
    if (ex instanceof oracle.jbo.JboException)
    oracle.jbo.JboException jboEx = (oracle.jbo.JboException)ex;
    // Developers have to do the mapping on their own becauce of the override.
    jboEx.doEntityToVOMapping(getApplicationModule(), new oracle.jbo.ViewObject[]{getViewObject()});
    throw jboEx;
    throw OAException.wrapperException(ex);
    } // end create()
    Code for PoLinesEOImpl.java
    * Initializes a new purchase order line.
    public void create(AttributeList attributeList)
         // NOTE: header id is automatically set by BC4J because of the
    // composition association.
    super.create(attributeList);
    OADBTransaction transaction = (OADBTransaction)getOADBTransaction();
    // DEFAULT: line id
    Number lineId = transaction.getSequenceValue("FWK_TBX_PO_LINES_S");
    setLineId(lineId);
    // DEFAULT: Line number
    POHeaderEOImpl headerEO = getPOHeaderEO();
    Number newLineNum = headerEO.getNextLineNum();
    setLineNumber(newLineNum);
    } // end create()
    * Sets <code>value</code> as the attribute value for ShipmentNumber
    * Business Rules
    * Required; cannot be null
    * Cannot be updated on a committed line
    * Must be unique for this purchase order
    * Must be >= 1
    public void setLineNumber(Number value)
    if (value != null)
    // Verify value is > 0
    if (value.compareTo(0) <= 0)
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // To verify uniqueness, start by checking the entity cache.
    com.sun.java.util.collections.Iterator lineIterator =
    getEntityDef().getAllEntityInstancesIterator(getDBTransaction());
    Number lineId = getLineId();
    Number headerId = getHeaderId();
    while ( lineIterator.hasNext() )
    POLinesEOImpl cachedLine =
    (POLinesEOImpl)lineIterator.next();
    Number cachedLineNum = cachedLine.getLineNumber();
    Number cachedLineId = cachedLine.getLineId();
    Number cachedHeaderId = cachedLine.getHeaderId();
    if ((cachedLineNum != null) &&
    (cachedLineNum.compareTo(value) == 0) &&
    (cachedLineId.compareTo(lineId) != 0) && // Exclude this line
    (cachedHeaderId.compareTo(headerId) == 0))
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // Didn't find a duplicate in the entity cache so now we check the database.
    // Note: don't bother with this if the header is in a NEW state since that
    // means we won't have any lines in the database yet.
    POHeaderEOImpl headerEO = getPOHeaderEO();
    if (headerEO.getEntityState() != STATUS_NEW)
    PurchaseEntityExpert poExpert =
    POHeaderEOImpl.getPurchaseEntityExpert(getOADBTransaction());
    PoLineNumVVOImpl valLineNumVO =
    (PoLineNumVVOImpl)poExpert.findValidationViewObject("PoLineNumVVO1");
    valLineNumVO.initQuery(headerId, value);
    // We're doing an existence check; shouldn't have any rows.
    if (valLineNumVO.hasNext())
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "LineNumber", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "DEBUG -- add message"); // Message name
    // If this is the largest line number for this order, this will store it for
    // reference when creating subsequent lines.
    headerEO.resetLineNum(value);
    setAttributeInternal(LINENUMBER, value);
    } // end setLineNumber()
    Edited by: user9941374 on Mar 15, 2012 3:16 PM

    Hi Frank,
    As per the steps mentioned in the following link :
    http://www-apps.us.oracle.com:1100/fwk/jdev/doc/devguide/bus/bus_java.htm#tl
    I have created the required entity objects and view objects.
    I have an entity JobsDEO which is based on a view per_jobs_vl which is itself based on 2 tables,per_jobs_f and per_jobs_tl,wherein _tl is the translation table.
    The entity for _tl table is JobTranslationEO and has no VO associated with it.Its the JobsVO,based on JobsDEO,that has to handle any interactions with this entity too.
    JOBSDEO has a property set up for HCM_DBSEQUENCE,which makes it read the value of job_id from the sequence per_jobs_s.
    Now,when I try to insert into the JobsVO,based on JobsDEO,it gives me the above mentioned error.
    One more thing is that the error does'nt occur when we commit a row,its just when we click the "+" button in the AM Tester that we get this error.
    Please advice.

  • JBO-25017: Error While Creating a new entity row for Table Name

    Hi,
    I am facing an issue in Jdeveloper when trying to display records on a custom OAF page.
    Exception Details._
    oracle.apps.fnd.framework.OAException: oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for Emp.
    *     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)*
    *     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2651)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    *## Detail 0 ##*
    java.lang.InstantiationException
    *     at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)*
    *     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)*
    *     at java.lang.Class.newInstance0(Class.java:308)*
    *     at java.lang.Class.newInstance(Class.java:261)*
    *     at oracle.jbo.server.EntityDefImpl.createBlankInstance(EntityDefImpl.java:1048)*
    *     at oracle.jbo.server.ViewRowImpl.createMissingEntities(ViewRowImpl.java:1532)*
    *     at oracle.jbo.server.ViewRowImpl.init(ViewRowImpl.java:236)*
    *     at oracle.jbo.server.ViewDefImpl.createBlankInstance(ViewDefImpl.java:1050)*
    *     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1007)*
    *     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2643)*
    *     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2547)*
    *     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1891)*
    *     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1745)*
    *     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1257)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2850)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2495)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2357)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:526)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:2692)*
    *     at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6361)*
    *     at oracle.apps.fnd.framework.server.OAViewObjectImpl.getRowCountInRange(OAViewObjectImpl.java:1849)*
    *     at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.adjustViewRange(OAWebBeanBaseTableHelper.java:206)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.prepareNavigatorProperties(OATableHelper.java:1493)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.preRender(OATableHelper.java:2133)*
    *     at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:623)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:375)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:2933)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2641)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    java.lang.InstantiationException
    *     at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)*
    *     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)*
    *     at java.lang.Class.newInstance0(Class.java:308)*
    *     at java.lang.Class.newInstance(Class.java:261)*
    *     at oracle.jbo.server.EntityDefImpl.createBlankInstance(EntityDefImpl.java:1048)*
    *     at oracle.jbo.server.ViewRowImpl.createMissingEntities(ViewRowImpl.java:1532)*
    *     at oracle.jbo.server.ViewRowImpl.init(ViewRowImpl.java:236)*
    *     at oracle.jbo.server.ViewDefImpl.createBlankInstance(ViewDefImpl.java:1050)*
    *     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1007)*
    *     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2643)*
    *     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2547)*
    *     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1891)*
    *     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1745)*
    *     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1257)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2850)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2495)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2357)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:526)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:2692)*
    *     at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6361)*
    *     at oracle.apps.fnd.framework.server.OAViewObjectImpl.getRowCountInRange(OAViewObjectImpl.java:1849)*
    *     at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.adjustViewRange(OAWebBeanBaseTableHelper.java:206)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.prepareNavigatorProperties(OATableHelper.java:1493)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.preRender(OATableHelper.java:2133)*
    *     at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:623)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:375)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:2933)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2641)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    Procedure Followed is :_
    1. Created a VO using a select Query on custom table.
    2. Created an AM and attached the above created VO to this.
    3. A custom OAF page is created and above created AM is attached to the main region.
    4. created an Advanced Table in the region and all the columns in table are mapped to their respective ones in the VO query.
    5. Tried both the cases - Generate VOImpl and Generate VORowImpl.
    6. In the controller class , Page Request Object for AM is created and trying to invoke method in AM.
    7. In AM a method is written for creating an object for VO and executeQuery() operation is done.
    As per the Solution given in the other threads.... included also WHO columns in the VO Query.
    Please provide us the solution as soon as possible.
    Thanks in advance.
    Sri Harsha

    Try the [OA Forum|http://forums.oracle.com/forums/forum.jspa?forumID=210] !
    Timo

  • Error while creating Time Card Using API

    Hello
    I have a requirement to run OTL Interface once day to create/update Time Card in OTL for those datea created on sysdate-1 in Service Module (data will get feeded from Service Module). For example this interface will run on sysdate to create time cards for those data created in the service module on sysdate-1.
    I have some sample data and code I am using but it is erroring out with different errors..Can anybody help me on this
    My Interface should run as expected below and my time card range will be Monday 24-Dec-2012 to Sunday 30-Dec-2012
    Interface Run Date Time Entry to process
    25-Dec-2012 24-Dec-2012 Data
    26-Dec-2012 25-Dec-2012 Data
    CREATE OR REPLACE PROCEDURE main_process (o_errbuf OUT VARCHAR2,
    o_ret_code OUT NUMBER,
    l_chr_from_date IN VARCHAR2,
    l_chr_to_date IN VARCHAR2)
    IS
    l_chr_skip VARCHAR2 (1);
    l_chr_task_exists VARCHAR2 (100);
    l_chr_error_msg VARCHAR2 (4000);
    l_num_tbb_id NUMBER;
    l_num_request_id NUMBER := fnd_global.conc_request_id;
    l_num_login_id NUMBER := fnd_global.login_id;
    l_num_user_id NUMBER := fnd_global.user_id;
    l_num_resp_id NUMBER := fnd_Profile.VALUE ('resp_ID');
    l_num_otl_appl_id CONSTANT NUMBER (3) := 809; -- This is the appl_id for OTL, do not change
    l_chr_proj_attr1 CONSTANT VARCHAR2 (7) := 'Task_Id';
    l_chr_proj_attr2 CONSTANT VARCHAR2 (10) := 'Project_Id';
    l_chr_proj_attr3 CONSTANT VARCHAR2 (16) := 'Expenditure_Type';
    l_chr_proj_attr4 CONSTANT VARCHAR2 (19) := 'Expenditure_Comment';
    l_chr_proj_attr5 CONSTANT VARCHAR2 (23) := 'SYSTEM_LINKAGE_FUNCTION';
    i_num_count NUMBER;
    i_num_rows_inserted NUMBER := NULL;
    l_chr_message fnd_new_messages.MESSAGE_TEXT%TYPE;
    l_chr_hdr_eligible VARCHAR2 (5);
    l_tbl_timecard_info hxc_self_service_time_deposit.timecard_info;
    l_tbl_attributes_info hxc_self_service_time_deposit.app_attributes_info;
    l_tbl_messages hxc_self_service_time_deposit.message_table;
    l_new_timecard_id NUMBER;
    l_new_timecard_ovn NUMBER;
    l_num_time_building_block_id hxc_time_building_blocks.time_building_block_id%TYPE;
    I NUMBER; --PENDING REMOVE
    l_message VARCHAR2 (2000); --PENDING REMOVE
    l_time_building_block_id NUMBER; --PENDING REMOVE
    CURSOR process_line
    IS
    SELECT ROWID ROW_ID, a.*
    FROM xxpowl.xxpowl_hxt_otl_intf a
    WHERE 1 = 1 --a.request_id = l_num_request_id
    AND a.status_flag = 'NEW' -- 'VALID'
    AND a.error_desc IS NULL
    AND a.service_activity_type IS NOT NULL;
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered From Date:'
    || (TO_DATE ( (l_chr_from_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered To Date:'
    || (TO_DATE ( (l_chr_to_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_GLOBAL.APPS_INITIALIZE (user_id => l_num_user_id,
    resp_id => l_num_resp_id,
    resp_appl_id => l_num_otl_appl_id);
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Inserting the data in the custom table XXPOWL_HXT_OTL_INTF');
    INSERT INTO xxpowl.XXPOWL_HXT_OTL_INTF (SR_NUMBER,
    PROJECT_TASK_OWNER,
    PROJECT_TASK_OWNER_PERSON_ID,
    PROJECT_ID,
    PROJECT_TASK_ID,
    ASSIGNEE,
    ASSIGNEE_ID,
    ASSIGNEE_PERSON_ID,
    ASSIGNEE_SUPERVISOR_PERSON_ID,
    TASK_NUMBER,
    PARENT_TASK_NUMBER,
    DEBRIEF_NUMBER,
    DEBRIEF_HEADER_ID,
    DEBRIEF_DATE,
    TASK_ASSIGNMENT_ID,
    DEBRIEF_OBJECT_VERSION_NUMBER,
    DEBRIEF_PER_COMPLETE,
    DEBRIEF_LINE_ID,
    DEBRIEF_PROCESS,
    SERVICE_ACTIVITY,
    SERVICE_ACTIVITY_TYPE,
    INVENTORY_ITEM_ID,
    ITEM,
    BUSINESS_PROCESS_ID,
    DEBRIEF_TRANSACTION_TYPE_ID,
    DEBRIEF_UOM_CODE,
    DEBRIEF_HOURS,
    CONV_DEBRIEF_IN_HOURS,
    DEBRIEF_START_TIME,
    DEBRIEF_END_TIME,
    DEBRIEF_SERVICE_DATE,
    NOTES,
    OTL_ELIGIBLE_FLAG,
    NOTIF_SENT_FLAG,
    NOTIF_ELIGIBLE_FLAG,
    ERROR_DESC,
    STATUS_FLAG,
    INITIAL_NOTIF_SENT_DATE,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    REQUEST_ID,
    INITIAL_REQUEST_ID)
    (SELECT b.incident_number sr_number,
    h.resource_name project_task_owner,
    h.source_id project_task_owner_person_id,
    b.external_attribute_1 project_id,
    b.external_attribute_2 project_task_id,
    jtf_task_utl.get_owner (d.resource_type_code, d.resource_id)
    assignee,
    d.resource_id assignee_id,
    jrre.source_id assignee_person_id,
    paa.supervisor_id assignee_supervisor_person_id,
    c.task_number task_number,
    (SELECT task_number
    FROM jtf_tasks_b z
    WHERE c.parent_task_id = z.task_id)
    parent_task_number,
    a.debrief_number,
    a.debrief_header_id debrief_header_id,
    a.debrief_date debrief_date,
    a.task_assignment_id task_assignment_id,
    a.object_version_number debrief_object_version_number,
    a.attribute1 debrief_per_complete,
    e.debrief_line_id debrief_line_id,
    cbp.name debrief_process,
    cttv.name service_activity,
    DECODE (cttv.attribute1,
    'Y', 'Service-Billable',
    'N', 'Service-Non Billable')
    service_activity_type,
    e.inventory_item_id inventory_item_id, --f.segment1 item,
    (SELECT segment1
    FROM mtl_system_items_b f
    WHERE e.inventory_item_id = f.inventory_item_id
    AND f.organization_id = b.inv_organization_id)
    item, --241 --Mater Org
    e.business_process_id business_process_id,
    e.transaction_type_id debrief_transaction_type_id,
    e.uom_code debrief_uom_code,
    e.quantity debrief_hours,
    (g.conversion_rate * e.quantity) conv_debrief_in_hours,
    e.labor_start_date debrief_start_time,
    e.labor_end_date debrief_end_time,
    e.service_date debrief_service_date,
    (SELECT note_tl.notes
    FROM JTF_NOTES_B NOTE, JTF_NOTES_TL NOTE_TL
    WHERE NOTE.JTF_NOTE_ID = NOTE_TL.JTF_NOTE_ID
    AND NOTE_TL.LANGUAGE = USERENV ('LANG')
    AND NOTE.SOURCE_OBJECT_ID = a.DEBRIEF_HEADER_ID
    AND note.jtf_note_id =
    (SELECT MAX (note1.jtf_note_id)
    FROM JTF_NOTES_B note1
    WHERE NOTE1.SOURCE_OBJECT_ID =
    a.DEBRIEF_HEADER_ID))
    notes,
    'Y',
    'N',
    'X',
    NULL,
    'NEW',
    NULL,
    SYSDATE,
    l_num_user_id,
    SYSDATE,
    l_num_user_id,
    l_num_login_id,
    l_num_request_id,
    l_num_request_id
    FROM csf_debrief_headers a,
    cs_incidents_all_b b,
    jtf_tasks_b c,
    jtf_task_assignments d,
    csf_debrief_lines e, --mtl_system_items_b f,
    mtl_uom_conversions g,
    jtf_rs_resource_extns_vl h,
    cs_business_processes cbp,
    cs_transaction_types_vl cttv --, cs_sr_task_debrief_notes_v notes
    jtf_rs_resource_extns_vl jrre,
    per_all_assignments_f paa
    WHERE a.task_assignment_id = d.task_assignment_id
    AND d.task_id = c.task_id
    AND c.source_object_id = b.incident_id
    AND c.source_object_type_code = 'SR'
    AND a.debrief_header_id = e.debrief_header_id
    AND e.uom_code = g.uom_code
    AND g.uom_class = 'Time'
    AND b.incident_owner_id = h.resource_id(+)
    AND e.business_process_id = cbp.business_process_id
    AND e.transaction_type_id = cttv.transaction_type_id
    AND d.resource_id = jrre.resource_id
    AND jrre.source_id = paa.person_id --= 181
    AND TRUNC (SYSDATE) BETWEEN paa.effective_start_date
    AND paa.effective_end_date
    AND TRUNC (e.last_update_date) BETWEEN TO_DATE (
    (l_chr_from_date),
    'YYYY/MM/DD HH24:MI:SS')
    AND TO_DATE (
    (NVL (
    l_chr_to_date,
    l_chr_from_date)),
    'YYYY/MM/DD HH24:MI:SS')
    AND NOT EXISTS
    (SELECT 1
    FROM xxpowl.XXPOWL_HXT_OTL_INTF old
    WHERE old.debrief_header_id =
    e.debrief_header_id
    AND old.task_number = c.task_number
    AND TRUNC (old.DEBRIEF_SERVICE_DATE) =
    TRUNC (e.SERVICE_DATE)
    AND old.DEBRIEF_TRANSACTION_TYPE_ID =
    e.TRANSACTION_TYPE_ID
    AND old.request_id <> l_num_request_id
    AND old.DEBRIEF_UOM_CODE = e.uom_code
    AND old.DEBRIEF_HOURS = e.quantity));
    i_num_rows_inserted := SQL%ROWCOUNT;
    fnd_file.put_line (fnd_file.LOG,
    'No of rows Inserted:' || i_num_rows_inserted);
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error while Inserting debrief lines data into custom table.Error: '
    || SQLERRM
    || '. Exiting the interface without processing further';
    fnd_file.put_line (fnd_file.LOG, l_chr_error_msg);
    ROLLBACK;
    RETURN;
    END;
    FOR process_line_rec IN process_line
    LOOP
    l_chr_error_msg := NULL;
    l_tbl_timecard_info.delete;
    l_tbl_attributes_info.delete;
    l_tbl_messages.delete;
    l_new_timecard_id := NULL;
    l_new_timecard_ovn := NULL;
    l_num_time_building_block_id := NULL;
    l_chr_message := NULL;
    i_num_count := 0;
    l_num_tbb_id := NULL;
    BEGIN
    hxc_timestore_deposit.create_time_entry (
    p_measure => process_line_rec.conv_debrief_in_hours,
    p_day => TO_DATE ( (process_line_rec.debrief_service_date),
    'DD/MM/RRRR'),
    p_resource_id => process_line_rec.assignee_person_id,
    p_comment_text => process_line_rec.notes
    || '....Remove this notes in the code logic....Request Id:'
    || l_num_request_id, --pending lokesh
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_time_building_block_id => l_num_time_building_block_id);
    fnd_file.put_line (
    fnd_file.LOG,
    'Step#1 completed, TIME_BUILDING_BLOCK_ID:'
    || l_num_time_building_block_id);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#1 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Classify Time
    -- Attribute1
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Task_Id',
    p_attribute_value => process_line_rec.project_task_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#2 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute2
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Project_Id',
    p_attribute_value => process_line_rec.project_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#3 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute3
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Type',
    p_attribute_value => 'Service-Billable',
    -- p_attribute_value=> 'Service-Non Billable',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#4 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute4
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Comment',
    p_attribute_value => 'Expenditure Comment created by API',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#5 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute5
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'SYSTEM_LINKAGE_FUNCTION',
    p_attribute_value => 'ST',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#6 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    hxc_timestore_deposit.execute_deposit_process (
    p_validate => FALSE,
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_messages => l_tbl_messages,
    p_mode => 'SAVE', -- p_mode-> 'SUBMIT', 'SAVE', 'MIGRATION', 'FORCE_SAVE' or 'FORCE_SUBMIT'
    p_deposit_process => 'OTL Deposit Process',
    p_timecard_id => l_new_timecard_id,
    p_timecard_ovn => l_new_timecard_ovn);
    COMMIT;
    hxc_timestore_deposit.log_messages (p_messages => l_tbl_messages);
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    fnd_file.put_line (
    fnd_file.LOG,
    (l_tbl_messages (i_num_count).message_name));
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '**** Error.....Inside Exception Block in execute_deposit_process');
    BEGIN
    hxc_timestore_deposit.log_messages (
    p_messages => l_tbl_messages);
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '*****Error....Inside Exception Block in hxc_timestore_deposit.log_messages.Error:'
    || SQLERRM);
    END;
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    END;
    COMMIT;
    IF l_chr_error_msg IS NOT NULL OR l_new_timecard_id IS NULL
    THEN
    fnd_file.put_line (fnd_file.LOG,
    '***** Error *****' || l_chr_error_msg);
    o_ret_code := 1;
    END IF;
    BEGIN
    fnd_file.put_line (
    fnd_file.LOG,
    'Updating the status of the record in custom table for debrief_line_id:'
    || process_line_rec.debrief_line_id);
    UPDATE xxpowl.XXPOWL_HXT_OTL_INTF
    SET status_flag =
    DECODE (
    l_chr_error_msg,
    NULL, DECODE (
    l_new_timecard_id,
    NULL, 'FAILED',
    DECODE (SIGN (l_new_timecard_id),
    '1', 'SUCESS',
    'FAILED')),
    'FAILED'),
    time_building_block_id = l_new_timecard_id,
    last_update_date = SYSDATE,
    request_id = l_num_request_id,
    last_updated_by = l_num_user_id,
    error_desc = l_chr_error_msg
    WHERE ROWID = process_line_rec.row_id;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error while updating the status to SUCCESS.Error: '
    || SQLERRM;
    END;
    END LOOP; --process_line
    EXCEPTION
    WHEN OTHERS
    THEN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Unknown/Unhandlled Exception Error......' || SQLERRM);
    o_ret_code := 2;
    END main_process;
    SHOW ERR;
    Error Messages:
    1. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_ROLLBACK_TIMECARDS_PK) violated.
    2. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_LATEST_DETAILS_FK) violated
    Thanks a lot for the help!

    Hello
    We will get this error message when we run this from application other than "Time and Labor Engine". So try to run this concurrent program (if you registered as a conc. program) from Time and Labor Engine application.
    --Lokesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error while creating the 'LOV' type parameter in Siebel 8.1.1.5

    Hi,
    One of my Customer is facing the below error while creatting the parameter of type 'LOV' in Parameter applet in Siebel 8.1.1.5
    Runtime Error!
    Program: C:\Program Files\Internet Explorer\iexplorer.exe
    This application has requested the Runtime to terminate it in an usual way. Please contact the application’s support team for more information
    Could some please let me know what would be the reason for this issue?
    Thanks in advance for your help.
    Thanks,
    Ravi

    Please close this thread...it appears that the error occurs when the report involves a big set of records. I tried trying to filter only one record and was able to produce the pdf

  • Error while entering transaction for a new customer in release 12.1.1

    Hi,
    I created a new customer in receivables (am using the version 12.1.1)
    First i got an error while creating the customer saying, "Provide a positive integer for minimum customer balance amount or percent when balance amount overdue type is amount or percent respectively"
    I corrected the profile class amounts and now am allowed to create the customer but now the error comes while entering a transaction for this new customer:
    "The system cannot determine geographical information for this location and cannot derive a tax jurisdiction. Please contact your system administrator"
    please suggest a solution.
    regards,
    Shilpa

    I faced the same problem, Doc ID 420194.1 solved the problem. Shilpa kindly post the solutions moving forward so the users can benefit from it. Thank you!
    Solution
    run Geography Reference Program with parameter "Country code" for all records.
    Navigate to Trading Community Manager ->
    Requests -> Run
    Select "Geography Name Referencing" program
    Processing for Table : HZ_LOCATIONS and Run Type : ALL
    Parameters: Country Code :US
    Usage Code :ALL
    From Location Id :NULL: To Location Id:NULL
    Start Date :NULL: End Date:NULL
    Number of workers:1
    Total number of Processed Locations:9
    Number of Successfully Processed Locations:9
    Number of Locations in Error:0

Maybe you are looking for

  • Tecra A8: How to disassemble the keyboard?

    I'd like to disassemble keyboard in my Tecra A8. Is there any disassembly guide on the web?

  • How do I get an iPod to play indefinitely?

    How do I get music to play indefinitely in my iPod? I shuffle a playlist and it plays until every song has played once, then it stops. I need it to shuffle indefinitely until I choose to stop it, is there any way to do that with a playlist? Or a comp

  • Flex tree displaying raw XML with tags

    For some reason, after I setup a tree control and set its dataprovider to an XML that a coldfusion component is returning, the tree will display the raw XML in one node (including tags and everything) instead of formatting it into folders and files.

  • BTE,USER-EXIT OR BADI to be used in T-code GCU1

    Hi Experts, I need to identify the BTE,USER-EXIT OR BADI to be used in T-code GCU1 to populate correct entries for field Reference Item (REFDOCLN) and Quantity (MSL)  which are populated with wrong entries while correcting out-of-balance . OUT-OF BAL

  • Net value becoming double in a query

    Hi experts, We have a query based on an Infoset of Sales order header and AR_4. In the query output, against a customer the netvalue is becoming double in case of 2 acc doc, 3 times in case of 3 acc docs, 4 times in case of 4 acc docs like this it is