Error: custom.pll

Hi all
when we are trying to open some forms we are getting an error :custom.pll cannot find the current instace, whats actual problem?where can we find the this program to edit it to add new instance.
thanks
Praneeth

You can turn CUSTOM.pll off in the forms via Help->Diagnostics->Custom Code->Off.
Otherwise, on the applications filesystem, go to $AU_TOP/resource, open CUSTOM.pll in f60desm or ifbld60.exe (windows) and look for logic errors in the pl/sql. Do a compile/validate all from the forms designer/builder.
You can recompile it with the following command or use adadmin to recompile all forms from product fnd.
f60gen module_type=library module=$AU_TOP/resource/CUSTOM.pll output_file=$AU_TOP/resource/CUSTOM.plx userid=apps/apps compile_all=yes

Similar Messages

  • Error FRM-30312 while compiling a custom pll library on forms 11g weblogic

    hi,
    this is my case:
    Im trying to upgrade a forms 10g application to 11g, using FORMS 11g v11.1.1.3 and WEBLOGIC server v10.3.3.
    Forms files compiled correctly, also webutil.pll was correctly compiled.
    but if I try to compile my custom pll I can see the error...
    when I run application, this erros msg appears:
    FRM-40735: ON-ERROR trig raised unhandled exception ORA-06508
    I have this script to compile .pll files (libraries):
    +#SCRIPT TO COMPILE LIBRARIES+
    export ORACLE_INSTANCE=/opt/oracle/Middleware/asinst_1
    export ORACLE_HOME=/opt/oracle/Middleware/as_1
    export ORACLE_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export FORMS_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    export FORMS_DEFAULTFONT="Lucida.9"
    for i in `ls *.pll`
    do
    echo Compiling: $i ....
    file=$i
    +$ORACLE_INSTANCE/bin/frmcmp.sh Module=$i Userid=user/pwd@db Module_Type=LIBRARY Batch=YES+
    done
    But this error is shown:
    Compilation errors on RP2RRO:
    PL/SQL ERROR 201 at line 106, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 106, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 123, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 123, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 153, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 153, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 169, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 169, column 8
    Statement ignored
    Failed to generate library.
    FRM-30312: Failed to compile the library.
    I tried finding the string on the source code and delete or replace, but the only strings remainding are for example "RP2RRO_RUN_PRODUCT()", It looks like compiler finds the string within the entire word.
    I need help.

    InoL, Thank you very much.
    I know rp2rro.pll was there, and I compiled it successfully, and place it to the correct folder.
    but I did not know that my custom pll had the rp2rro as a program unit.
    I solve this problem replacing the code inside my custom library with the rp2rro.pll code that comes with forms 11g
    THANKS again.

  • Error while compiling a custom pll with forms 11g and weblogic

    Hi there,
    I just posted a thread here:
    Error FRM-30312 while compiling a custom pll library on forms 11g weblogic
    please, I need help

    Why wouldn't you post in the proper forum, i.e the Forms forum

  • Using Custom.pll on AP Invoices form goes into error in 11.5.10.1

    Hi All,
    I am trying to do some customization on APXINWKB (Invoices form) using CUSTOM.pll. But whenever i am trying to open the form after adding the code in CUSTOM.pll i am getting the following error:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.GL_EURO_USER_RATE_API", line 173
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.GL_CURRENCY_API", line 327
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-ITEM-INSTANCE trigger raised unhandled exception ORA-06502.
    I am trying to display a a small message in the new form instance of the above form thru CUSTOM.pll, nothing more than that!!. If i remove the coding, the form is working perfectly. My oracle apps version is 11.5.10.1
    Can any body help me??
    Raj

    Hi Helios,
    Thank you for the update, actually the problem is solved.
    The issue is : Whenever i am trying to show a message in that form using either form personalization or CUSTOM.pll, it is giving the error, if i do any thing else like 'changing the default where clause etc', it is not giving any error. The problem is only with message. Actually my requirement is changing the where clause, which is happening with out any problem. I dropped the idea of showing the message any way.
    This problem is strange. Any ways, i am raising an SR with Oracle.
    Raj

  • FRM-40815: Form Error, using CUSTOM.pll

    Hello,
    I am trying to customize WIP Lot Transactions Oracle Standard Form using CUSTOM.pll.
    Upon navigating to one of the 3 blocks in the form(RESULTING_LOT), I am getting following error message:
    "FRM-40815: Variable GLOBAL.CLRREC_NOVALIDATE does not exist"
    This global variable is not used in CUSTOM.pll at all. But is initialized and used in the standard form only.
    When custom code is turned off, there is no error message.
    Please advise.
    Thanks,
    Krishna.

    Hi,
    Thanks for the response.
    I have created a custom profile and attached it users and Profile value has the organization names.I want the User A with Org1 value in the profile to see all the GL Batches which is created by any other user who belongs to only Org1. Say another user User B with Org2 as the profile value should not see any GL batches created by any other user in the GL Journal Form belonging to other Org's.I'm able to restrict the batches using the below query using the personalizations in the Record Group for the Batch Name.But if the user doesnt give any search criteria and then selects Find then the main form displays all the batches. Hence I want to overide the Data Block where to display accordingly.
    select a.name from gl_je_batches a
    where 1=1
    and a.created_by in (select b.user_id from
    fnd_user b,
    fnd_profile_option_values c,
    fnd_profile_options d
    where c.profile_option_id =d.profile_option_id
    AND c.level_value = b.user_id
    AND profile_option_name='KAP_USER_ORGANIZATION'
    AND c.profile_option_value =(select profile_option_value
    from fnd_profile_option_values e
    where e.level_value =fnd_profile.value('USER_ID')
    and profile_option_id=d.profile_option_id)
    Thanks,
    Ashwini.

  • FRM-40734: Internal PL/SQL error by using delete_group in CUSTOM.pll

    Hi,
    I am dynamically changing an LOV using CUSTOM.pll and it is working fine initially when i enter the form. If I change one field, it needs to be changed again. For this I am using delete_group and again create_group_from_query. Here delete_group is throwing an error FRM-40734: Internal PL/SQL error.
    Please help me on this.
    Thanks In Advance,
    Hima

    can you post us your code?

  • Error while compiling CUSTOM.PLL with frmcmp_batch

    We have a strange issue here. One of the users is unable to compile custom.pll . He is getting the issue
    PDE-PLI038 Cannot open file for use as a PL/SQL Library
    This is the below file permission for the custom.pll
    -rwxrwxrwx 1 applmgr oaa 20480 Apr 29 02:57 CUSTOM.pll
    This is the one with custom developments in it.
    This is user id
    uid=114(ccankim) gid=1026(oaa)*
    But when I as a applmgr user is able to compile the CUSTOM.pll successfully.
    applmgr>frmcmp_batch module=CUSTOM.pll userid=apps/***** module_type=library
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release  - Production
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0      Production
    Compiling library CUSTOM...
    Compiling Package Spec CUSTOM......
    Compiling Package Body CUSTOM......
    Done.
    Any idea Gurus...
    EBS 12.1.3
    UNIX HP-UX B.11.31 U ia64 4294967040 unlimited-user license
    DB 11.2.0.2

    $ which frmcmp_batch
    /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    $ ll -ltr /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    -rwxr-xr-x 1 applmgr oaa 22544380 Dec 21 12:17 /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    The user has execute permission.( because his user id belongs to group oaa which has execute permission)
    Full 777 permission on the directory where this CUSTOM.pll exists.
    The confusing part is, if the file would have been corrupted, it would not have been compiled successfully under applmgr user. So the doc id 1082077.1 as of now doesn't help a lot.
    :(

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • How to use two dimensional array in custom.pll

    HI
    How to use two dimensional arrays in custom.pll
    I tried by the following way .
    type ship_array is table of number index by binary_integer;
    type vc_array is table of ship_array index by binary_integer;
    But I am getting the error as that
    A plsql table may not contain a table or a record with composite fields.
    Please tell me the way how to use them

    which forms version are you using? two dimensional arrays are available in >= 9i if memory serves.
    regards

  • Messaging using CUSTOM.pll

    Hello,
    I have registered a message named 'HAC_ASN_PO_ALERT' with the message type 'Note'. I have generated the message and am using the CUSTOM.pll to show the message when a specific event occurs. I am using the code below to call the message.
    FND_MESSAGE.SET_NAME('HAC','HAC_ASN_PO_ALERT');
    FND_MESSAGE.SET_TOKEN('ASN_STRING',x_asn_string);
    FND_MESSAGE.ERROR;
    This works just fine, the message displays when I want it to, but it shows with the error bell as an error message. I wanted to display the message as a note with the note icon. I have looked at the FND_MESSAGE package and there is not a procedure called NOTE. I tried SHOW, but I got an error. Can anyone please help me to get this message to display correctly?
    Thank you,
    Mike

    I am facing the same issues in R12.. Any solution for this.
    Thanks in Advance.
    Chetan

  • Custom PLL with GO_BLOCK

    Hi
    please help or suggest.
    I'm setting a Delivery To Location on Purchase Order Distribution Block required, so that when users a trying to save the record a message should pop up notifying then that they must populate the DELIVERY TO LOCATION address field i've used the GO_BLOCK but im getting this error frm-40737: illegal restricted procedure go_block in WHEN-VALIDATE-RECORD trigger.
    Please help and see my code below.
    begin
         app_item_property2.set_property ('PO_DISTRIBUTIONS.DELIVER_TO_LOCATION',required,property_true);
         if name_in('PO_DISTRIBUTIONS.DESTINATION_TYPE') = 'Inventory' then
                app_item_property2.set_property ('PO_DISTRIBUTIONS.DESTINATION_SUBINVENTORY',required,property_true);
         end if;     
         if p_event_name = 'WHEN-VALIDATE-RECORD' then
               if p_block_name = 'PO_LINES' then
                   if name_in('PO_DISTRIBUTIONS.DELIVER_TO_LOCATION') is null  then
                             fnd_message.set_name('XX','XX_PO_DELIVER_TO_LOCATION');
                               fnd_message.error;                          
                               raise form_trigger_failure;
                   end if; 
                   if name_in('PO_DISTRIBUTIONS.DESTINATION_TYPE') = 'Inventory' and name_in('PO_DISTRIBUTIONS.DESTINATION_SUBINVENTORY') is null then
                             fnd_message.set_name('XX','XX_DESTINATION_SUBINVENTORY');
                               fnd_message.error;
                               raise form_trigger_failure;
                   end if; 
           end if;
         end if;
      exception
              when FORM_TRIGGER_FAILURE then
              Go_Block('PO_DISTRIBUTIONS');
                 IF NOT FORM_SUCCESS THEN
                      RAISE Form_Trigger_Failure;
                 END IF;          
              when others then
              Raise;
      end;     

    Lethu,
    you cannot use navigational triggers in WVR.
    Why can't you use forms personalization to achieve this?
    This is way simpler than modifying the custom.pll.
    HTH,

  • Standard LOV Customization through CUSTOM.pll HELP

    Hello,
    I am currently trying to override the LOV dropdown of an Oracle 11.5.10 form using the custom.pll. The example I am using is as follows:
    procedure event(event_name varchar2) is
    form_name      varchar2(30) := name_in('system.current_form');           --added by Nazir
    block_name      varchar2(30) := name_in('system.cursor_block');      --added by Nazir
    item_name     varchar2(100) := name_in('system.current_item');
    v_sql          varchar2(5000);
    result           Number;
    rec_id           RecordGroup;
    v_login_company     VARCHAR2(50);
    begin
    if(event_name = 'WHEN-NEW-ITEM-INSTANCE') then
    if (form_name = 'ARXTWMAI' and block_name = 'TGW_HEADER') then
    if( item_name = 'CTT_TYPE_NAME_MIR') then
    v_login_company     :=     fnd_profile.value('LN_LOGIN_COMPANY');
    if (v_login_company = '0000') then
         fnd_message.set_string('Please enter description');     Testing fnd message. This works fine. Message displayed.
         --fnd_message.show;
    v_sql := 'select ctt.cust_trx_type_id cust_trx_type_id, ctt.name name, ctt.description description, ctt.type class, arl_class.meaning class_meaning, ctt.accounting_affect_flag open_receivables_flag, ctt.post_to_gl post_to_gl_flag, ctt.allow_freight_flag allow_freight_flag' ||
    ',ctt.creation_sign creation_sign, ctt.allow_overapplication_flag allow_overapplication_flag, ctt.natural_application_only_flag natural_application_only_flag, ctt.tax_calculation_flag tax_calculation_flag, arl_status.meaning default_status' ||
    ',arl_print.meaning default_printing_option, rat.name default_term from      ar_lookups arl_print, ar_lookups arl_status, ar_lookups arl_class, ra_terms rat, ra_cust_trx_types ctt ' ||
    'where '||''''||'INVOICE_PRINT_OPTIONS'||'''' || '= arl_print.lookup_type ' ||
    ' and      ctt.default_printing_option = arl_print.lookup_code' ||
    ' and' || ''''||'INVOICE_TRX_STATUS'||'''' ||'= arl_status.lookup_type' ||
    ' and      ctt.default_status = arl_status.lookup_code and      ctt.default_term = rat.term_id(+) ' ||
    ' and' || ''''||'INV/CM'||'''' || '= arl_class.lookup_type ' ||
    ' and      ctt.type = arl_class.lookup_code' ||
    ' and      ctt.type in ( ' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ',' || '''' || 'INV' || '''' || ',' || '''' || 'CM' || '''' || ',' || '''' || 'DM' || '''' || ')' ||
    ' and      ( ctt.type not in (' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ') or ctt.accounting_affect_flag =' || '''' || 'Y' || '''' || ')' ||
    ' order      by ctt.name' ;
                   rec_id := CREATE_GROUP_FROM_QUERY( 'TRANS_TYPE_LNCUSTOM', v_sql );
                   result := POPULATE_GROUP(FIND_GROUP( 'TRANS_TYPE_LNCUSTOM'));
                   SET_LOV_PROPERTY('ARXTWTGW_TRANSACTION_TYPE', GROUP_NAME, 'TRANS_TYPE_LNCUSTOM' );
    end if;
    end if;
    end if;
    end if;
    end event;
    I am getting following errors:
    FRM-41072: Cannot create group TRANS_TYPE_LNCUSTOM
    I checked my query with DBMS outputs and then copy that output and ran it as a query in toad and it worked fine.
    Has anyone done this before that could help me resolve the problem??
    Thanks,
    Nazir.

    Hello,
    I figured out the problem and it works perfectly fine. Basically, it does create a record group but once I move out of the item and come back to the item, it was trying to create a record group with the same name again. So I had add an extra check in my statement:
    if id_null('record group')
    then only create the group;
    Thanks Guys,
    Nazir.

  • Launch workflow through Custom.pll

    All,
    We have a requirement to invoke Workflow process for every service request create / update and I am calling the wf like below in custom.pll
    WHEN-VALIDATE-RECORD
    XXPPS_CRM_WF_PROCESS.XXPPS_WF_LAUNCH (                                     08291302      ,                                     'REFUND-PROCESS'    ,                                     'CRM QA'       ,                                     P_RETURN_MESG );
    I am getting below error
    FRM-40735 WHEN-VALIDATE-RECORD trigger raised unhandled exception ORA-20002 Does anyone has any idea ?? Can we launch the workflow through Custom.pll ?? Please advise...

    This forum is for general Oracle Forms questions.  Please post your question in the EBS General Discussion forum.  If you have a general Forms question, by all means, ask it here!
    Craig...

  • Custom code for LOV generation in Custom.pll

    Hi All,
    I am using the custom in my custom application, I am using the following procedure in Custom.pll for LOV generation. When I use the same procedure standalone then it's working fine, But when I use it in Custom.pll then it's giving me the Error "No-Data-Found", please let me know what to do. I am assuming that it can't find the appropriate backend table, I am logging in through sysadmin/sysadmin, Also I have fully followed the procedure for Table registration and Synoym creation and assiging it to apps but even then it's giving me the above mentioned error.
    procedure event(event_name varchar2) is
    rg_id RECORDGROUP;
    query_string VARCHAR2(2000);
    crnt_item VARCHAR2(60) := name_in('SYSTEM.CURSOR_ITEM');
    crnt_type VARCHAR2(30) := GET_ITEM_PROPERTY(crnt_item, DATATYPE);
    -- Omit crnt_hint if not context sensitizing the LOVs.
    crnt_hint VARCHAR2(30) := SUBSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT),
    INSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT), ':') + 2);
    begin
    IF event_name = 'WHEN-NEW-BLOCK-INSTANCE' THEN
    IF (form_name = 'FRM_EXPATIENTMASTER' and block_name = 'REG_EXPATIENTMASTER' and item_name = 'DEFENCECODEFK')
    then
    crnt_item := SUBSTR(crnt_item, (INSTR(crnt_item, '.') + 1));
    query_string := 'SELECT DISTINCT reg_defencecategory.defencecodepk'
    || ' AS holder_value '
    || ' FROM hms.reg_defencecategory'
    || ' ORDER BY 1';
    IF NOT ID_NULL(FIND_GROUP('generic_lov_rg')) THEN
    DELETE_GROUP('generic_lov_rg');
    END IF;
    rg_id := CREATE_GROUP_FROM_QUERY('generic_lov_rg', query_string);
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    GROUP_NAME, rg_id);
    IF FORM_SUCCESS THEN -- >From "IF" to "END IF" may be omitted
    -- if not context sensitizing the LOVs.
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    TITLE, 'Available ' || crnt_hint || ' values');
    SET_LOV_COLUMN_PROPERTY('generic_' || crnt_type || '_lov',
    1, TITLE, crnt_item);
    END IF;
    LIST_VALUES;
    /* IF name_in('control.holder') IS NOT NULL THEN -- Holder is set to null in Lov_Btn WBP trigger
    COPY(name_in('control.holder'), crnt_item); -- Depends upon implicit conversions for non character
    -- datatype values (in this example, NUMBER and DATE). Create a 'holder' for/of each datatype
    -- required to avoid implicit conversions.
    END IF;*/
    end if;
    end if;
    exception
    when no_data_found then
    message('No Data Found, try Again');
    null;
    end event;

    Hi John,
    I got the same issue. Is yours being resolve yet?
    Can you share the solution.
    Thanks.

  • After customization in CUSTOM.pll is raising popup erro in other module

    Hi All,
    i did customization of CUSTOM.pll and working fine for the QA module, while it raising the error for other module.
    i did customization as below:
    procedure event(event_name varchar2) is
    form_name varchar2(30) := name_in('system.current_form');
    block_name varchar2(30) := name_in('system.cursor_block');
    item_name varchar2(30) := name_in('system.cursor_item');
    item_value VARCHAR2(100);
    v_plan_id NUMBER;
    begin
    if (form_name = 'QLTRSINF' AND block_name ='Q_RES') then
    item_value := name_in('Q_RES_HEAD.NAME');
    IF (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
    IF item_value='INVOICE REMOVAL PROCESS' THEN
    set_block_property('Q_RES',DEFAULT_WHERE,'PLAN_ID= :Q_RES_HEAD.PLAN_ID and CHARACTER2=''No'' AND (status IS NULL OR status = 2) ');
    DO_KEY('EXECUTE_QUERY');
    end if;
    end if;
    end if;
    end event;
    The above code is working fine in QA module for UPDATE QUALITY RESULTS, while it is raising erro for other module.
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06502
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-06502.
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06502.
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-ITEM-INSTANCE trigger raised unhandled exception ORA-06502.
    please help me out .
    Thanks & Regards,
    Krrish

    Hello,
    Please, don't use the standalone Forms forum to ask questions about personalization. Ask them on the dedicated E-Business Suite forum.
    Francois

Maybe you are looking for