DDE.initiate is not working in oracle forms 10g

Previously i have used DDE for uploading the data from excel to DB in oracle forms 10g.now it is throwing non-oracle exception at DDE.intiate.
could you please help me to solve this issue.
i use the below code
APPLICATION := OLE2.CREATE_OBJ('EXCEL.APPLICATION');
     ole2.set_property(application,'Visible','false');
     WORKBOOKS := OLE2.GET_OBJ_PROPERTY(APPLICATION,'WORKBOOKS');
     ARGS := OLE2.CREATE_ARGLIST;
     OLE2.ADD_ARG(ARGS,:PARAMETER.P_SERVER_FILE_NAME);
     WORKBOOK := OLE2.GET_OBJ_PROPERTY(WORKBOOKS,'OPEN',ARGS);
     OLE2.DESTROY_ARGLIST(ARGS);
     WORKSHEETS := OLE2.GET_OBJ_PROPERTY(WORKBOOK,'WORKSHEETS');
     WORKSHEET := OLE2.GET_OBJ_PROPERTY(APPLICATION,'ACTIVESHEET');     
     M_CONVID := DDE.INITIATE('EXCEL',:PARAMETER.P_SERVER_FILE_NAME);

Hello,
Do not use DDE.intiate.Comment that line.As per your code the file is already open.
Here is a good example in this metalink note:
How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1)
Regards,
Alex
If someone's answer is helpful or correct please mark it accordingly.

Similar Messages

  • Host('sqlldr') is not working in oracle forms 10g

    oracle database version:10.1.2.0
    oracle forms version:10g
    client ans server are on the same machine.
    when i am trying to load the file in to oracle,i wrote the when-button-pressed trigger as
    host('sqlldr');
    when i run the form its not giving any result.
    i tried by using batch file also itn is giveing the error like
    message 2100 not found

    What happens when you run "SQLLDR" from a command window? It sounds like the directory where the SQLLDR executable is located is not in your PATH. You can either add it to your path or fully qualify the path to the executable as Christian suggests.
    Craig...

  • Copy/Paste functionlity is not working in oracle forms 11g

    Hi All,
    We are using custom built big application (oracle 11g/forms 11g).
    1. And few user are not able to copy/paste from oracle forms 11g to winword.And its random sometime they can ,sometime they can't .
    2. If they have problem means they have copy/paste issue and (When we close application and run it again it is working fine)
    3.it's random we are not able to re-produce in development environment.
    What i noticed both user have problem and both are using left hand mouse ,generally we use left/right they are using right/left.
    Here the Environment Detail:
    Java runtime :1.6.0_26
    Weblogic server
    oracle forms 11g
    So just wondering is there any changes required. Seniors/Guru please advise.
    Thanks!

    It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
    1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
    2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
    3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
    4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
    Example:
    C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
    So, recommendations:
    1. Uninstall all JRE versions currently installed. Install 1.6.0_33
    2. Ensure that you are using 11.1.1.6 or 11.1.2.0
    3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
    4. Install the latest mouse driver.
    5. Retest
    Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM

  • Mouse Scroll Not Working in oracle forms

    Hi,
    I Created a master and detail block.. In Detail block following Properties i set
    No. of Records to be displayed : 10
    Scroll bar : no
    Without having the scroll bar i wannt to check all the records in the detail Block.
    for this i created key_scrolldown trigger in form levl called thye builtin
    SCROLL_DOWN;
    i'm using Oracle 10g.. JIniator for Running Oracle Forms
    applying this Coding this function is not working..
    Can anybody tell this How to oversome from this...???
    Cheers.

    What version of Oracle Forms are you using? You should always include this in your posts. :)
    Mouse scrolling is only enabled in Web runtime of Forms - so you must be using Forms 9i or higher.
    Does JRE Support mouse scrolling function?If memory serves, Mouse scroll was first introduced in Java 1.5.0. Therefore, if you want enble the mouse scroll wheel in Forms, you must be using JRE 1.5.0 or higher. I strongly recommend you use Java 1.6.0_33 or higher - but do not use Java 1.7.0 as it has not been certified with Oracle Forms yet.
    In order to use the JRE over the Jinitiator, you must modify your configuration to enable use of the JRE. Please take a look at Oracle 10gR2 Forms Services – Using Sun's Java Plug-in. This Oracle White Paper is for Forms 10g Release 2, but the instructions are basically the same for 9i and 11g as well.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • GET_FILE_NAME NOT WORKING IN ORACLE FORMS 9I

    PLEASE HELP THIS COMAND WORKING IN FORMS 5 BUT NOT
    WORKING IN FORMS 9I TO OPEN THE DAILOG BOX AND GET IMAGE FILES
    TO SAVE ON FORMS 9I PLEASE HELP.
    declare
    salfile varchar2(255);
    begin
    salfile:=get_file_name('C:\emp\',NULL,'JPG FILES (*.JPG)|*.JPG|','IMAGE LIST');
    read_image_file(SALFILE,'ANY','ISLAM.EMP_IMAGE');
    END;
    THANKS & REGARDS.
    M.Z.ISLAM

    Forms 5 is a client/server application, so it looks for files on your local c: drive.
    Forms 9i is a web application, so in principle it will now look on the server's c: drive.
    However, get_file_name is not a standard Forms procedure. My guess it that it is one of your own procedures and it uses the d2kwutil library. This library won't work in a web environment.
    If you want to do something with files on your local PC in a web envirionment, you will have to use webutil.

  • Oracle Forms 10G not working as Oracle Forms 6i

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    :System.message_level has nothing to do with how you check the flow of execution, or whether you use the Message statement. :System.Message_Level is a Forms variable that can be set to a numeric value. If you set it > 0, it hides error messages, which you should NOT do. Is there anywhere in your form where it is set? If there is, make sure it is set to zero while you are testing.
    <P>Since you are using regular message statements to debug (Re: Zdebug -- Download a Forms debugging message tool), you should determine if the process that sets up the tabbed canvases is being executed.

  • JavaBean not working with Oracle Forms (URGENT)

    I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from the form to the bean and get a parameter back to the form from the Javabean. The bean is called on the when-button-pressed event of a form button. The problem is, the form doesnt seem to invoke the bean at all. There seems to be no communcation between the form and the bean at runtime on-click of the form button other that all the messages in the form procedure being displayed.
    The event code for the button is,
    Declare
    setNewMsg varchar2(2000) := 'Hello World';
    getData varchar2(2000);
    BeanHdl Item;
    Begin
    BeanHdl := find_item('Block3.MYBEAN');
    If NOT ID_NULL(BeanHdl) Then
              Message('Before Set');
              SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
              Message('Before Get');
              getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
              SYNCHRONIZE;
              Message(getData);
              Message('After Get');
              Message(' ');
    Else
              Message('The ID is null');
              Message(' ');
    End If;
    END;
    The javabean code is,
    package oracle.forms.beans;
    import java.awt.*;
    import java.io.*;
    import java.beans.*;
    import oracle.forms.ui.*;
    import oracle.forms.properties.*;
    import oracle.forms.handler.*;
    import oracle.ewt.lwAWT.*;
    public class SimpleTestBean extends VBean { 
    public static final ID SETMESSAGE = ID.registerProperty("setMessage");
    public static final ID GETMESSAGE = ID.registerProperty("getMessage");
    private String msg = "";
    public String newMessage() {
         return msg;
    public Object getProperty(ID id) { 
         try { 
              if (id == GETMESSAGE) { 
                   return newMessage();
    return super.getProperty(id);
    catch (Exception e) { 
         e.printStackTrace();
    return null;
    public boolean setProperty(ID id, Object value) { 
         try { 
              if (id == SETMESSAGE) { 
              msg = (String) value;
    return super.setProperty(id, value);
    catch (Exception e) { 
         e.printStackTrace();
    return false;
    Thanks

    Hi,
         I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from Oracle Form(Ver 6i) to the java bean and get a parameter back to the form. The Javabean is called on "When-Button-Pressed" event of a Form button. The problem is, Form doesn't seem to invoke the bean at all. There seems to be no communication between the Oracle Form and the Javabean at runtime.
         On-click of the Form button though all test messages in the Form trigger are being displayed (Even message before and after the Set_Custom_Property & Get_Custome_Property). The only issue is the Form variable doesn't show the returned value from the bean. So the big question is - Whether the bean is invoked at all or not.
         If YES then how to check it and if NO then how to communicate with the bean from Oracle Form. I am attaching the code of Javabean and trigger code.
    Thanks & Regards
    NOTE : All the ClassPath for the JavaBean has been set properly and the Form is also recognizing the Implementation Class for the Javabean.
         The Trigger Code is,
         --- This code is written on When-Button-Pressed trigger of Form button.
         --- The form also contains the bean area "MYBEAN", which i have referred in the code.
         Declare
              setNewMsg varchar2(2000) := 'Hello World';
              getData varchar2(2000);
              BeanHdl Item;
         Begin
         BeanHdl := find_item('Block3.MYBEAN');
         If NOT ID_NULL(BeanHdl) Then
              Message('Before Set');
              SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
              Message('Before Get');
              getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
              SYNCHRONIZE;
              Message(getData);
              Message('After Get');
              Message(' ');
         Else
              Message('The ID is null');
              Message(' ');
         End If;
         END;
    The Bean Code is,
         package oracle.forms.beans;
         import java.awt.*;
         import java.io.*;
         import java.beans.*;
         import oracle.forms.ui.*;
         import oracle.forms.properties.*;
         import oracle.forms.handler.*;
         import oracle.ewt.lwAWT.*;
         public class SimpleTestBean extends VBean { 
         public static final ID SETMESSAGE = ID.registerProperty("setMessage");
         public static final ID GETMESSAGE = ID.registerProperty("getMessage");
         private String msg = "";
         public String newMessage() {
              return msg;
         public Object getProperty(ID id) { 
              try { 
                   if (id == GETMESSAGE) { 
                        return newMessage();
    return super.getProperty(id);
         catch (Exception e) { 
              e.printStackTrace();
              return null;
         public boolean setProperty(ID id, Object value) { 
              try { 
              if (id == SETMESSAGE) { 
              msg = (String) value;
    return super.setProperty(id, value);
         catch (Exception e) { 
              e.printStackTrace();
              return false;
    ------------------------------------------------------------------------------------------

  • Headstart forms - down key does not work in Oracle Forms 11g

    Just moved forms from 10g to 11g.
    But when run the down key does not work. The .res file looks OK.
    I have included the hst65.jar in the search path for jar-files in formsweb.cfg.
    Anybody had this isssue?

    It was an erroneous .res-file! So problem solved. :-)

  • ICONS are not appearing in oracle forms 10g

    Dear All,
    Good Morning.
    I am using oracle 10g forms.
    I had my old application in forms6i. I migrated it into forms 10g.
    Application is running fine no function problem there is.
    But icons are appeared into button.
    Please tell me way, how can i configure for icons.

    The above mentioned thread is talking about icons not appearing in the Forms builder and not at runtime. I don't think it will help you.
    In Webforms displaying "Icons" it's a little bit different than client/server, Webforms use .gif files as icons and not .ico files and these files should be Jarred in a .Jar file and put in a directory where the JVM can reach.
    Follow the instruction in the [url http://www.oracle.com/technology/products/forms/pdf/webicons.pdf]Webicons file in page 3 under the "Don't want to learn about the details, Just get started!" it's very easy and fun.
    Tony

  • Client_ole not working on oracle forms 11g

    hello,,,
    I have configured webutil in forms 11g ( Doc ID : 1093985.1) step by step and finally
    i installed webutil demo from ( Doc ID : 1272222.1)
    When I test it works fine , everything works fine except OLE --> write to MS Word , when i enter some text and pressed on it ,nothing happening ulness if i check or unchecked "Silent?" .
    img :: -------------------------------> http://www.orafaq.com/forum/fa/10911/165137/
    My platform :
    Red Hat 4
    Weblogic 10.3.6
    Forms and reports 11g
    Any help

    It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
    1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
    2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
    3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
    4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
    Example:
    C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
    So, recommendations:
    1. Uninstall all JRE versions currently installed. Install 1.6.0_33
    2. Ensure that you are using 11.1.1.6 or 11.1.2.0
    3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
    4. Install the latest mouse driver.
    5. Retest
    Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM

  • Insert Statement is not working in Oracle Form

    Hi all,
    I have developed a custome form from the scarch.
    I have one button on that for called "PROCESS"
    when I cick on the PROCESS button it should insert record in to one custome table.
    I have created custom table in custom schema and given grant to Apps user. as well as I created synonym in Apps for that table.
    The code for WHEN-BUTTON-PRESSED
    DECLARE
    *     l_user_id NUMBER:=FND_GLOBAL.USER_ID;*
    *     l_date DATE :=SYSDATE;*
    BEGIN
    *     FOR i IN REFUND_DETAILS.transaction_tbl.FIRST..REFUND_DETAILS.transaction_tbl.LAST*
    *     LOOP*
    *          fnd_message.DEBUG('l_user_id'||l_user_id);*
    *          fnd_message.DEBUG(REFUND_DETAILS.transaction_tbl(i).OU_NAME);*
    *          fnd_message.DEBUG(REFUND_DETAILS.transaction_tbl(i).cust_account_id);*
    *          fnd_message.DEBUG(REFUND_DETAILS.transaction_tbl(i).receipt_number);*
    *          fnd_message.DEBUG(REFUND_DETAILS.transaction_tbl(i).refund_amount);*
    INSERT INTO xxkci_ar_refund_details
    VALUES(REFUND_DETAILS.transaction_tbl(i).OU_NAME,
    REFUND_DETAILS.transaction_tbl(i).cust_account_id,
    REFUND_DETAILS.transaction_tbl(i).receipt_number,
    REFUND_DETAILS.transaction_tbl(i).refund_amount,
    *'1223',--:CUSTOMER.pn_ref,*
    *'SUCCESS',--:CUSTOMER.status,*
    *'DONE',--:CUSTOMER.MESSAGE,*
    l_user_id,
    l_date,
    l_user_id,
    l_date);
    *     END LOOP;*
    *     COMMIT;*
    END;
    when I am running the form from front end and cliking the process button it is throughing the bellow error.
    ora-01031 insufficient privileges.
    As I have given all the grant for Apps user.
    When I am running the same insert satement in toad for the Apps it is working fine no error.
    Its Urjent please required a help on this.
    Thanks
    Nihar

    Have you tried to give the grant to APPLSYS user as well and see if this helps?
    If you still get the same error, please obtain the FRD file for details about the error -- http://forums.oracle.com/forums/search.jspa?threadID=&q=FRD&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Right click is not working on oracle form

    Hi
    I created a custom form using template.fmb
    When user trying to pasted some data into text field and right clikc the mouse , the popup menu is not coming.
    Actually nothing is happening when right click the mouse.
    Please help me on this one and let me know if I am missing any setups or any libraries .....
    Thanks
    Kiran.

    Unfortunately, you have to assign the Popup menu to each item using the Popup Menu property of the item. Also, unfortunately, the Set_Item_Property() built-in does not allow you to set this property at runtime; you must set the property value during design. You can use the JDAPI Java library to dyamically modify your Forms binaries (.fmb). Search the forum on "JDAPI" for information about using this library. If you are not Java proficient, then only option available to you would be to select all of the items you want to use this popup menu and set the property in mass.
    Craig...

  • BMP is not displayed in Oracle Forms 10g

    Hi,
    I am trying to display logo on the custom logon form.
    I have created an image item in the block. The following code is written in WNFI
    DECLARE
    Master_image VARCHAR2(80) := 'SS.bmp';
    BEGIN
    set_window_property(forms_mdi_window, window_state, maximize);
    set_window_property(forms_mdi_window, Title, 'Accounting System');
    READ_IMAGE_FILE(master_image, 'BMP', 'image_master');
    END;
    But the BMP is not getting displayed.
    Am i missing something here?
    Thanks
    AT

    Hi Gerd,
    I thought so.
    But it is working same way in another application also on 10g.
    I do not have access to that form but i got the above mentioned code used there and i tried to use it in my form.
    Can think of something?
    Thanks
    AT

  • Case statement Not working with Oracle version 10g

    Below is code , which works on 11r2 but not on 10g.
    declare
    v1 VARCHAR2(200);
    begin
    select version into v1 from DBA_REGISTRY WHERE COMP_NAME LIKE '%Catalog Views%';
    CASE
          WHEN v1 like '10.2%' THEN
    DBMS_OUTPUT.PUT_LINE('it is  10.2');
    dbms_streams_auth.grant_admin_privilege('GGADMIN');
          WHEN v1 like '11.1%' THEN
    DBMS_OUTPUT.PUT_LINE('it is  11.1');
    dbms_streams_auth.grant_admin_privilege('GGADMIN');
    EXECUTE IMMEDIATE 'grant become user to GGADMIN';
          WHEN v1 like '11.2.0.3%' THEN
    DBMS_OUTPUT.PUT_LINE('it is  11.2.0.3');
    dbms_goldengate_auth.grant_admin_privilege('GGADMIN');
        END CASE;
    end;
    /I dont know when i run code in 10.2 it still looks for dbms_goldengate_auth
    and error out.
    dbms_goldengate_auth.grant_admin_privilege('GGADMIN');
    ERROR at line 18:
    ORA-06550: line 18, column 1:
    PLS-00201: identifier 'DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE' must be declared
    ORA-06550: line 18, column 1:
    PL/SQL: Statement ignoredif I comment dbms_goldengate_auth it returns perfect result.
    it is  10.2
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.03Is there any other way around ????
    Edited by: 949509 on Jan 27, 2013 6:57 PM

    949509 wrote:
    Can you please tell me How i can execute dynamic sql via execute immediate.In a very simialr was as you did the grant of become user in your code. SOmething like:
    declare
       v1          VARCHAR2(200);
       l_grant_str VARCHAR2(1000);
    begin
       select version into v1 from DBA_REGISTRY WHERE COMP_NAME LIKE '%Catalog Views%';
       CASE
          WHEN v1 like '10.2%' THEN
             DBMS_OUTPUT.PUT_LINE('it is  10.2');
             l_grant_str := 'dbms_streams_auth.grant_admin_privilege(''GGADMIN]'')';
          WHEN v1 like '11.1%' THEN
             DBMS_OUTPUT.PUT_LINE('it is  11.1');
             l_grant_str := 'dbms_streams_auth.grant_admin_privilege(''GGADMIN'')';
             EXECUTE IMMEDIATE 'grant become user to GGADMIN';
          WHEN v1 like '11.2.0.3%' THEN
              DBMS_OUTPUT.PUT_LINE('it is  11.2.0.3');
             l_grant_str := 'dbms_goldengate_auth.grant_admin_privilege(''GGADMIN'')';
       END CASE;
       execute immediate l_grant_str;
    end;John

  • Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    duplicate
    Re: Oracle Forms 10G not working as Oracle Forms 6i

Maybe you are looking for