FORMS - FRM-40735 ERROR

Hi.
I've created a new application which provides the customer's commercial analysis. There are 3 text-items in my form where user fill them with the following: Establishment, Customer_id and the Period(in days) for the consulting.
After that the 'key-next-item' trigger calls my procedure 'update_details' in which I've put a common 'select' that'll provide the customer first sales date. Although I've faced troubles with this procedure.
The form doesn't run out correctly. It raises the FRM-40735 for the user and when it runs by debug mode raises:
'PDE-PXC002 Program unit execution aborted due to unhandled exception(1722).' Why is it? Could someone help me?
Following the Select Code:
BEGIN
SELECT MIN(sales_date)
INTO :first_sales_date
FROM sales
WHERE (esb_cod = :esb and
cust_id = :cust);
END;
Thank you,
Anderson

What's the error message the user is getting? FRM-40735 is not enough. We need the text of the error message:
FRM-40735: ..... trigger raised unhandled exception ......
The important bits are the name of the trigger that failed and more importantly what the unhandled exception was.
I can see two possible things going wrong with your code:
TO_DATE(SYSDATE) might go wrong. SYSDATE is already a date, so there is no need to do a TO_DATE function again. In fact, it's probably causing an implicit conversion from SYSDATE to a string and then converts the string back to a date.
The other thing is the TO_DATE('09/14/2001'). It's dangerous to do a TO_DATE without a format mask. If your session runs in European settings this will lead to errors since there is no 14th month.
It's best practice (and much clearer for other developers) to include a format mask:
TO_DATE('09/14/2001','MM/DD/YYYY')

Similar Messages

  • FRM - 40735 Error

    Hi,
    In Oracle EBS 11i ->HRMS module , when opening any form showing error message like FRM -40735 and ora 6508.
    And the error is only in this module. In other modules the forms are working. it has no error.
    What is the reason for this? Can any solution for this?
    Please reply.
    Regards
    Naseer

    What is the exact application release? Database version? OS?
    Please post the complete error message.
    Was this working before? If yes, any changes have been done recently?
    Do you have any custom code on this module? --FRM-40735: PRE-UPDATE trigger raised unhandled exception ORA-06508 - ORA-1403: no data found [ID 783098.1]
    Do you have any invalid objects? Any errors in the database?
    Known errors generated on the People form (PERWSHRG) [ID 206584.1]
    ORA-04063 and FRM-40735 Errors When Creating Employees Using Human Resources [ID 149672.1]
    If none of the above helps, please obtain the FRD file and see if you get more details about the issue in the logs.
    How To Perform Forms Runtime Diagnostics (FRD) Tracing in Applications 11i [ID 167635.1]
    Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i [ID 150168.1]
    Quick Ref: How To Perform Forms Runtime Diagnostic Trace (FRD) in Applications 11i [ID 149201.1]
    Unable to Create Forms Runtime Diagnostics (FRD) Trace on Ebusiness Suite 11i? [ID 749363.1]
    Thanks,
    Hussein

  • MRP에서 RESOURCE를 REPLAN시 FRM-40735 ERROR 발생

    제품 : MFG_MRP
    작성날짜 : 2002-11-27
    MRP에서 RESOURCE를 REPLAN시 FRM-40735 ERROR 발생
    ==========================================
    PURPOSE
    Problem Description
    MRP에거 Resource Replan시 FRM-40735 Error 발생.
    **Reproduce steps
    1. Run MRP with MRP-M1-PRD plan (plan capacity option checked)
    (N) Material Requisition Planning > MPR > Launch
    2. Query MRP-M1-PRD plan on MRP Workbench form (MRPSCPWB.fmx 11.5.124)
    and Resources button click
    (N) Material Requisition Planning > MRP > Workbench > Resources(B)
    3. Find Resource (with find option Dept/Line =METAL_FAB )
    4. Select first line and click Horizontal Plan button
    5. Select Line and Avalibility Button Click
    6. Update Resource with following option
    Dept/Line = METAL_FAB
    Resource = Drill
    Update Mode = Add Capacity
    From Date = 08-NOV-2002
    To Date = 29-NOV-2002
    Daily Capacity = 100
    7. Click Apply Button and confirm update
    8. Return to Horizontal Capacity Plan form and click Current Radio Button
    9. And Click Snapshot Radio Button , the error is occured
    "FRM-40735 WHEN-RADIO-CHANGED trigger raised unhandled exception
    Ora-01476"
    Workaround
    Solution Description
    Apply Patch 2402184 or later.
    mrlsra.ppc 115.16
    mrtres.ppc 115.2
    Reference Documents
    -------------------

  • FRM-40735 error message

    Hi!
    I have a strange problem.
    I have a working application developed with Forms 5.0.6.8.0. The app uses a stored proc to lock tables for inserts/updates. It works with Oracle8 on NT4S and Oracle 7.3 on DEC Alpha. We have a database (Oracle 7.2 NT4WS) for testing purposes dumped from the Oracle7.3 database.
    When the app tries to call the proc. I get the FRM-40735 error message stating there is no given stored procedure with that name (ORA-04067).
    I have created a script which calls this stored procedure.Running this script from SQL Plus with the same username/password everything works fine.
    Any suggestion would be appreciated.
    Thanks
    Zoltan Sutto

    I find the solution.
    When I am developing forms and compiling them I connect to a database (Oracle 8.0 on NT Server 4.0).
    During our discussion I connected to the database having problem with (Oracle 7.2 on NT 4.0 Workstation). I did a Compile All (Shift+Ctrl+K) and Compile the form into File (CTRL+T).
    And it works.
    I do not understand what was happening during compiling connected to different databases.
    Could you explain it to me?
    Thanks
    Zoltan Sutto

  • JOB DETAILS FORM에서 FRM-4064 ERROR시 DATAFIX 방법

    제품 : MFG_WIP
    작성날짜 : 2004-11-25
    JOB DETAILS FORM에서 FRM-4064 ERROR시 DATAFIX 방법
    =============================================
    PURPOSE
    Job Details Form에서 FRM-4064 Error시 DATAFIX 방법 제공
    Problem Description
    Job을 만든 후 Job Details/materail reuirements에서 해당 오더에 대한 per assembly
    수량을 바꾸고자 수치를 변경하면 Error 메세지가 나옴
    Error 메시지: FRM-4064: Record has been updated. Requery block to see change.
    Workaround
    N/A
    Solution Description
    Old job has invalid date format.
    1> alter session set nls_date_format = 'dd-mon-yyyy hh24:mi:ss' ;
    2> select wip_entity_id, date_required, mps_date_required
    from wip_requirement_operations
    where wip_entity_id = (select wip_entity_id
    from wip_entities
    where wip_entity_name = '&Job_Name');
    3> if data exists in step2>, please run below sql
    update wip_requirement_operations
    set date_required = trunc(date_required),
    mps_date_required = trunc(mps_date_required)
    where wip_entity_id = (select wip_entity_id
    from wip_entities
    where wip_entity_name = '&Job_Name');
    Reference Documents
    -------------------

  • FRM-40735 Error While openings Forms

    Sawwan,
    We did cloning , every thing went smooth, No issues before, When ever we are trying to access forms getting error
    11.5.0.2 and 10.2.0.4
    FRM-40735:ON_ERROR Trigger Raised Unbundled exception ORA-06508
    Thanks

    Sawwan,
    Invalids List..
    SQL> select count(*) from dba_objects where status ='INVALID';
    COUNT(*)
    204
    Here is error_log information
    error_log" [Read only] 13 lines, 1711 characters
    [Fri Sep 18 13:35:41 2009] [notice] FastCGI: process manager initialized (pid 58
    97)
    [Fri Sep 18 13:35:42 2009] [notice] Oracle HTTP Server Powered by Apache/1.3.19
    [Fri Sep 18 13:35:41 2009] [notice] FastCGI: process manager initialized (pid 58
    97)
    [Fri Sep 18 13:35:42 2009] [notice] Oracle HTTP Server Powered by Apache/1.3.19
    configured -- resuming normal operations
    [Fri Sep 18 13:37:48 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 13:38:19 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 13:40:46 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 13:40:46 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 13:40:58 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 13:43:32 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Fri Sep 18 15:04:10 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:
    /comn/portal/xxxxxxxx_oraapp05/favicon.ico
    [Fri Sep 18 15:12:17 2009] [error] [client xxx.xxx.xxx.xxx] client denied by serv
    er configuration: /comn/java/java
    [Fri Sep 18 15:12:17 2009] [error] [client xxx.xxx.xxx.xxx] client denied by serv
    er configuration: /comn/java/java
    @

  • Calling a report from forms - FRM-40735 when-button-pressed raised unhandle

    Hi,
    I created a form to generate a pdf report.
    its not going too well, so i need some help.
    my form only has one button , when pressed I want it to generate a report in pdf format.
    i created a when-button-pressed trigger and the following code is below:
    I also create a web service proxy jar file,
    the jar file is in the FORMS_BUILDER_CLASSPATH, and the jar file is imported from forms builder without any issues.
    As of now I am hard coding everything in the code below to see if it works.
    The error I am getting  FRM-40735 when-button-pressed raised unhandled exception ORA-105100 i dont know why ?
    This error is occurring at this line of code, please help, this is my first time doing something like this.
    obj := publicreportserviceclient.new(); DECLARE
    param_name varchar2(200);
    un varchar2(200);
    pw varchar2(200);
    out_file varchar2(200);
    obj ORA_JAVA.JOBJECT;
    BEGIN
    obj := publicreportserviceclient.new();
    param_name := 'EMP';
    un := 'Administrator';
    pw := 'Oracle123';
    out_file := 'D:\DevSuiteHome_1\j2ee\home\default-web-app'||'output';
    publicreportserviceclient.callRunReport(obj,'/~administrator/Learn/Test1/Test1.xdo','EMP','141414',un,
    pw,'pdf','New_Template',out_file);
    web.show_document('http://jmenge-de.de.oracle.com:8889/j2ee/' || 'output');
    exception
      --check for ORA-105101
      when ORA_JAVA.EXCEPTION_THROWN then
         message('Java Exception : '
          || Exception_.toString(ORA_JAVA.LAST_EXCEPTION));
          ORA_JAVA.CLEAR_EXCEPTION;
          return;
      --check for ORA-105100
      when ORA_JAVA.JAVA_ERROR then
                   message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              return;
    END;This is my java function
        public void callRunReport (String reportPath, String paramName, String  paramValue, String
        username, String password, String format, String template, String outFile) {
        try {
                bip_webservice.proxy.PublicReportServiceClient myPort = new bip_webservice.proxy.PublicReportServiceClient();
                // Calling runReport
                ReportRequest repRequest = new ReportRequest();
                repRequest.setReportAbsolutePath(reportPath);
                repRequest.setAttributeTemplate(template);
                repRequest.setAttributeFormat(format);
                repRequest.setAttributeLocale("en-US");
                repRequest.setSizeOfDataChunkDownload(-1);
               ParamNameValue[] paramNameValue = new ParamNameValue[1];
                paramNameValue[0] = new ParamNameValue();
                paramNameValue[0].setName(paramName);
                String[] values = new String[1];
                values[0] = paramValue;
                paramNameValue[0].setValues(values);
                repRequest.setParameterNameValues(paramNameValue);
                ReportResponse repResponse = new ReportResponse();
                repResponse = myPort.runReport(repRequest,username,password);
                byte[] baReport = repResponse.getReportBytes();
                FileOutputStream fio = new FileOutputStream(outFile);
                fio.write(baReport);
                fio.close();
            } catch (Exception ex) {
                        ex.printStackTrace();
        }Thanks - please help

    If there is a way to make it work with Bi publisher, Please let me know.
    I need to something to make it work with BI publisher.
    thanks,
    Edited by: Rooney on May 27, 2010 1:27 PM

  • Support for Headstart?/FRM-40735 Error

    Hello,
    I am a consultant for Oracle, but I am very new to Oracle
    Applications and Headstart. I have a client with questions on
    Headstart, however this is outside the area of expertise of my
    group.
    I would like to ask 2 questions:
    1. It is my understanding that Oracle World Wide Support does
    not handle calls on this. Can someone tell me how (if possible)
    my client can get support for Headstart ?
    2. Also, the client is experiencing an error with forms
    generated by Headstart. If they hit the up arrow key at the top
    of a form they get the error message 'FRM-40735 ON-ERROR trigger
    raised unhandled exception PROGRAM_ERROR'. This problem is
    solved if they generate a .plx file. Is there another way to
    resolve this or is it required to do this for all forms created
    via Headstart?
    Any help would be greatly appreciated !
    Thank you !
    null

    Sorry, I just realized this was not for Oracle employees. Please
    disregard my previous message !!
    Dana Wheeler (guest) wrote:
    : Hello,
    : I am a consultant for Oracle, but I am very new to Oracle
    : Applications and Headstart. I have a client with questions on
    : Headstart, however this is outside the area of expertise of my
    : group.
    : I would like to ask 2 questions:
    : 1. It is my understanding that Oracle World Wide Support
    does
    : not handle calls on this. Can someone tell me how (if
    possible)
    : my client can get support for Headstart ?
    : 2. Also, the client is experiencing an error with forms
    : generated by Headstart. If they hit the up arrow key at the
    top
    : of a form they get the error message 'FRM-40735 ON-ERROR
    trigger
    : raised unhandled exception PROGRAM_ERROR'. This problem is
    : solved if they generate a .plx file. Is there another way to
    : resolve this or is it required to do this for all forms created
    : via Headstart?
    : Any help would be greatly appreciated !
    : Thank you !
    null

  • When does FRM-40735 error come

    when does the error FRM-40735 and ORA-304500 come.What does it mean.
    thank you

    The FRM is an unhandled exception error message and the ORA message is to do with a problem in ORA_FFI.
    Place and exception handler with the code:
    EXCEPTION
    WHEN OTHERS THEN
    FOR i IN 1..Toll_Err.NErrors LOOP
    PAUSE;
    Tool_Err.Pop;
    END LOOP;
    END;
    Regards
    Grant Ronald
    Forms Product Management

  • FRM-40735 Error when trying to add an employee as key member for a project

    FRM-40735: ON Insert trigger raised unhandled exception ORA-06502 in PAXPREPR when trying to add an employee as key member for a project
    Tried generating FND log messages to see if it shows any error messages but it didn't show any specific error.

    Error ORA-06502 says PL/SQL: numeric or value error.
    The Error could be in the data already exist in the system for key members. If this Project was created using APIs, there are possibilities that some other character( i.e. next line chracter ) got entered in the column value which Form "PAXPREPR" is not able to fetch or update.
    You can query the key member data from back-end to check if any data corruption is there. you may require data-fix to correct that.
    AB

  • FRM-40735 error in PROD sys

    hi,
    When Saving Data there is an error in production system:
    Error
    FRM-40735:WHEN-BUTON-PRESSED
    trigger raised unhandled exception
    ORA-01403
    Regards
    ***SBJ***

    Hi,
    When Click Details button the following message is coming
    FRM-40735:WHEN-BUTON-PRESSED trigger raised unhandled exception ORA-01403
    ORA-01403 :no data found
    ORA-06512 :at “APPS.MMI_RCV_COR_INTERFACE”,line 68
    EBS:11.5.9 base
    OS: Windows 2003 server
    This is customized module.
    Regards
    ***SBJ***
    Edited by: user13098774 on Jun 14, 2010 1:33 AM

  • FRM-40735: ON-ERROR trigger unhandled exception ORA-06508

    Guru,
    Today we changed few customization in CUSTOM.pll and regenerated it , but we received the following error message after login to application irrespective of any responsiblity/form
    FRM-40735: ON-ERROR trigger unhandled exception ORA-06508
    So we reverted CUSTOM.pll change and recompiled successfuly. However we are still getting same error.
    Kindly give us little light on it.
    Regards,
    Raju

    Hi Raju,
    In addition to Hussein's post, Can you check the following notes, since you have changed & reverted the custom.pll
    - Cannot Log into Oracle Applictions after the Custom.pll has been Changed [ID 146038.1]
    Best Regards,

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger

    Hi Guys,
    Can someone help me to find the root cause of my follwoing issue
    Issue
    My Sales Order was giving following error when trying to open the form
    'FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger '
    Bounced the instance the issue was resolved.
    Again today morning ,same issue started again after the daily bounce which is done bu a script.
    This time I bounced Form server and issue was resolved.
    Can someone help me in finding the root cause of this issue.
    This is issue is happening only on one form (Sales Order ) !!!!!
    Thanks

    Hi
    This is a Standard form using cusom.pll.
    This was working perfect for last 1 year.
    There where no changes made in the forms or in the environment.
    Only activity carried out was a rebooting of server.
    Surprising it is working fine after boucing!!!!
    any idea
    Thanks

  • FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-01403

    I am trying to make a manual payment in the APXPAWKB form (Form Version : 12.0.223.12010000.68). When I tab out, after selecting the Payment Document, I am getting the "+FRM-40735: WHEN-VALIDATE-ITEM+" error. Please help.
    I am working on R12.1.1. I used the Payment type - Check
    Regards
    Reem

    Hi;
    Its generic error,I suggest review:
    Resolving FRM-40735 Errors [ID 61579.1]
    Regard
    Helios

  • Ora 02292 FRM 40735

    I have a form with two data blocks. There is a foreign key relationship between the two tables. Let me give an example. If I have two tables with the following primary keys:
    Folder (folder_id);
    Message (message_id, folder_id);
    I want to write a trigger that will update the key in Message:
    BEGIN
    UPDATE Message
    SET folder_id = 8432
    WHERE sender = :VARIABLE;
    END;
    If I try this, I get the ora 02292 FRM 40735 error message within the Forms runtime. I know that it has to do with the primary key integrity constraint, which is obvious. Is there a way around this?

    I treid the following:
    CREATE TABLE FOLDER (FOLDER_ID NUMBER NOT NULL, FOLDER_NAME VARCHAR2(20));
    ALTER TABLE FOLDER ADD CONSTRAINT FO_PK PRIMARY KEY (FOLDER_ID);
    CREATE TABLE MESSAGE(MESSAGE_ID NUMBER NOT NULL, FOLDER_ID NUMBER NOT NULL, SENDER VARCHAR2(30));
    ALTER TABLE MESSAGE ADD CONSTRAINT ME_PK PRIMARY KEY (MESSAGE_ID,FOLDER_ID);
    ALTER TABLE MESSAGE ADD CONSTRAINT ME_FO_FK FOREIGN KEY (FOLDER_ID) REFERENCES FOLDER (FOLDER_ID);
    INSERT INTO FOLDER (FOLDER_ID, FOLDER_NAME) VALUES (1, 'Folder 1');
    INSERT INTO FOLDER (FOLDER_ID, FOLDER_NAME) VALUES (2, 'Folder 2');
    INSERT INTO MESSAGE(MESSAGE_ID, FOLDER_ID, SENDER) VALUES (11, 1, 'Sender 1');
    INSERT INTO MESSAGE(MESSAGE_ID, FOLDER_ID, SENDER) VALUES (22, 2, 'Sender 2');
    UPDATE MESSAGE SET FOLDER_ID=1 WHERE SENDER='Sender 2';
    UPDATE MESSAGE SET FOLDER_ID=3 WHERE SENDER='Sender 2';
    ORA-02291: Integritäts-Constraint (HR.ME_FO_FK) verletzt - übergeordneter Schlüssel nicht gefunden
    DELETE FOLDER WHERE FOLDER_ID=1;
    ORA-02292: Integritäts-Constraint (HR.ME_FO_FK) verletzt - untergeordneter Datensatz gefundenSo did you try to call your update manually in SQL*PLUS. I should show you the violated constraint with that you can check where the error lies.

Maybe you are looking for