FRM 40010 after using Ole container

Hi,
I am using an OLE container item to store different file types on Oracle 9 DB using Forms 6.0.8.27.0 .
Whenever I save a document using the ole container, exit the form, I cannot run any other form from my application. I get FRM-40010 :'Cannot read form XXX'
If I restart the application everything works fine until I use the ole container again to save a file. Then I get the same error.
It seems that the ole container changes the working directory.
Forms60_Path is set correctly.
Inserting a file from the correct working directory and deleting it (just to let the ole container changes the working directory to the one I want) is not a practical solution.
Thanks in advance for any hints,
Marco.

David,
not sure if this is a bug, because if you don't specify the '.rep' then, because of the search order used, the rep file is used anyway if available in the Reports_Path. One thing that could happen though is that your application now picks up an rdf file (maybe in the Reports60 directory) because the rep file is read later. Please check how many occurences of teh report file you have.
Repeatingly calling run_product will issue the same job to the Reports runtime over and over. The Reports runtime is not able to handle multiple jobs in parallel, one at a time. This means that if the Reports runtime is busy the Reports execution has to wait if not crahsing. The rdf file - if used - wins soem time in that it gets compiled on te fly before getting executed.
Frank
Ps.: Will not deny the chance of a bug, but Forms60 is desupported and you won't get a fix for i

Similar Messages

  • Problem in Using OLE Container

    Sir I have development an ActiveX in VB for urdu in oracle forms.
    The problems I am facing is that it is storing the input efficiently but
    when I Query the saved data it is not working,
    I got an Error that OLE Object not defined for the current record.
    It create the OLE object for a new record and take input & save it
    But as I assign the retrieved Data in Post Query, it give error object not
    defined.
    At the same time it display out when assign with when button pressed.
    the code that is working is for saving in the database is at save button (when
    button pressed)
    DECLARE
    VEN_IDp OLE2.OBJ_TYPE;
    VEN_NAMEp OLE2.OBJ_TYPE;
    ADD1p OLE2.OBJ_TYPE;
    CITYp OLE2.OBJ_TYPE;
    ZIPCODEp OLE2.OBJ_TYPE;
    STATEp OLE2.OBJ_TYPE;
    COUNTRYp OLE2.OBJ_TYPE;
    PHONE1p OLE2.OBJ_TYPE;
    PHONE2p OLE2.OBJ_TYPE;
    MOBILEp OLE2.OBJ_TYPE;
    FAXp OLE2.OBJ_TYPE;
    ECOMMENTSp OLE2.OBJ_TYPE;
    n1 NUMBER;
    V1 VARCHAR2(255);
    V2 VARCHAR2(255);
    V3 VARCHAR2(255);
    V4 VARCHAR2(255);
    V5 VARCHAR2(255);
    V6 VARCHAR2(255);
    V7 VARCHAR2(255);
    V8 VARCHAR2(255);
    V9 VARCHAR2(255);
    V10 VARCHAR2(255);
    V11 VARCHAR2(255);
    V12 VARCHAR2(255);
    BEGIN
    --creating pointers to the activeX's
    VEN_IDp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_IDU');
    VEN_NAMEp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_NAMEU');
    ADD1p := FORMS_OLE.GET_INTERFACE_POINTER('ADD1U');
    CITYp := FORMS_OLE.GET_INTERFACE_POINTER('CITYU');
    ZIPCODEp := FORMS_OLE.GET_INTERFACE_POINTER('ZIPCODEU');
    STATEp := FORMS_OLE.GET_INTERFACE_POINTER('STATEU');
    COUNTRYp := FORMS_OLE.GET_INTERFACE_POINTER('COUNTRYU');
    PHONE1p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE1U');
    PHONE2p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE2U');
    MOBILEp := FORMS_OLE.GET_INTERFACE_POINTER('MOBILEU');
    FAXp := FORMS_OLE.GET_INTERFACE_POINTER('FAXU');
    ECOMMENTSp := FORMS_OLE.GET_INTERFACE_POINTER('ECOMMENTSU');
    --getting new value returned by the ActiveX
    N1 :=Project1_UserControl1.getUrduText(VEN_IDp);
    V2 :=Project1_UserControl1.getUrduText(VEN_NAMEp);
    V3 :=Project1_UserControl1.getUrduText(ADD1p);
    V4 :=Project1_UserControl1.getUrduText(CITYp);
    V5 :=Project1_UserControl1.getUrduText(ZIPCODEp);
    V6 :=Project1_UserControl1.getUrduText(STATEp);
    V7 :=Project1_UserControl1.getUrduText(COUNTRYp);
    V8 :=Project1_UserControl1.getUrduText(PHONE1p);
    V9 :=Project1_UserControl1.getUrduText(PHONE2p);
    V10 :=Project1_UserControl1.getUrduText(MOBILEp);
    V11 :=Project1_UserControl1.getUrduText(FAXp);
    V12 :=Project1_UserControl1.getUrduText(ECOMMENTSp);
    assigning the value to database item for saving
    :VEN_ID := N1;
    :VEN_NAME :=V2;
    :ADD1 := V3;
    :CITY :=V4;
    :ZIPCODE :=V5;
    :STATE :=V6;
    :COUNTRY:=V7;
    :PHONE1 :=V8;
    :PHONE2 :=V9;
    :MOBILE :=V10;
    :FAX :=V11;
    :ECOMMENTS :=V12;
    END;
    -- It save the record successfully
    and the code not working at (post query OR timer expired created at post query)
    It query the data from database and display it in the textitem but I want to
    assign it to ActiveX for Urdu Display
    (the activeX display Urdu for assiged value in button pressed case)
    DECLARE
    VEN_IDp OLE2.OBJ_TYPE;
    VEN_NAMEp OLE2.OBJ_TYPE;
    ADD1p OLE2.OBJ_TYPE;
    CITYp OLE2.OBJ_TYPE;
    ZIPCODEp OLE2.OBJ_TYPE;
    STATEp OLE2.OBJ_TYPE;
    COUNTRYp OLE2.OBJ_TYPE;
    PHONE1p OLE2.OBJ_TYPE;
    PHONE2p OLE2.OBJ_TYPE;
    MOBILEp OLE2.OBJ_TYPE;
    FAXp OLE2.OBJ_TYPE;
    ECOMMENTSp OLE2.OBJ_TYPE;
    V1 VARCHAR2(255);
    V2 VARCHAR2(255);
    V3 VARCHAR2(255);
    V4 VARCHAR2(255);
    V5 VARCHAR2(255);
    V6 VARCHAR2(255);
    V7 VARCHAR2(255);
    V8 VARCHAR2(255);
    V9 VARCHAR2(255);
    V10 VARCHAR2(255);
    V11 VARCHAR2(255);
    V12 VARCHAR2(255);
    str1 VARCHAR2(255);
    str2 VARCHAR2(255);
    str3 VARCHAR2(255);
    str4 VARCHAR2(255);
    str5 VARCHAR2(255);
    str6 VARCHAR2(255);
    str7 VARCHAR2(255);
    str8 VARCHAR2(255);
    str9 VARCHAR2(255);
    str10 VARCHAR2(255);
    str11 VARCHAR2(255);
    str12 VARCHAR2(255);
    BEGIN
    SYNCHRONIZE;
    VEN_IDp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_IDU');
    VEN_NAMEp := FORMS_OLE.GET_INTERFACE_POINTER('VEN_NAMEU');
    ADD1p := FORMS_OLE.GET_INTERFACE_POINTER('ADD1U');
    CITYp := FORMS_OLE.GET_INTERFACE_POINTER('CITYU');
    ZIPCODEp := FORMS_OLE.GET_INTERFACE_POINTER('ZIPCODEU');
    STATEp := FORMS_OLE.GET_INTERFACE_POINTER('STATEU');
    COUNTRYp := FORMS_OLE.GET_INTERFACE_POINTER('COUNTRYU');
    PHONE1p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE1U');
    PHONE2p := FORMS_OLE.GET_INTERFACE_POINTER('PHONE2U');
    MOBILEp := FORMS_OLE.GET_INTERFACE_POINTER('MOBILEU');
    FAXp := FORMS_OLE.GET_INTERFACE_POINTER('FAXU');
    ECOMMENTSp := FORMS_OLE.GET_INTERFACE_POINTER('ECOMMENTSU');
    --function setUrduText(interface oleobj,text in out varchar2) Return varchar2
    This function Displays Urdu when value is assigned in when button pressed event
    str1 :=Project1_UserControl1.setUrduText(VEN_IDp,:VENDOR.VEN_ID);
    str2 :=Project1_UserControl1.setUrduText(VEN_NAMEp,:VENDOR.VEN_NAME);
    str3 :=Project1_UserControl1.setUrduText(ADD1p,:VENDOR.ADD1);
    str4 :=Project1_UserControl1.setUrduText(CITYp,:VENDOR.CITY);
    str5 :=Project1_UserControl1.setUrduText(ZIPCODEp,:VENDOR.ZIPCODE);
    str6 :=Project1_UserControl1.setUrduText(STATEp,:VENDOR.STATE);
    str7 :=Project1_UserControl1.setUrduText(COUNTRYp,:VENDOR.COUNTRY);
    str8 :=Project1_UserControl1.setUrduText(PHONE1p,:VENDOR.PHONE1);
    str9 :=Project1_UserControl1.setUrduText(PHONE2p,:VENDOR.PHONE2);
    str10 :=Project1_UserControl1.setUrduText(MOBILEp,:VENDOR.MOBILE);
    str11 :=Project1_UserControl1.setUrduText(FAXp,:VENDOR.FAX);
    str12 :=Project1_UserControl1.setUrduText
    END;
    I am not getting the point that why the Error OLE object not defined occur in
    display case where as in new record the object is activited on new record
    instane by itself but not in post query
    I am working on application of a library with Urdu data and at last step Iam
    facing the problem above PLs guide me
    Thanks in advance
    null

    Hi,
    - I am using Oracle Forms [32 bit] Versión 5.0.6.23.1 and Oracle 8i Enterprise Edition Release 8.1.7.0.0 as database.
    - The process can be reproduced in a stand alone form. You need to access a table with a RAW column in which the file is stored and put that column in an OLE Container.
    - It works with filetypes .xls, .doc, .pdf but (sometimes, not always) not with filetype .TIF (with an MS Imaging program associated).
    - I have 2 errors:
    - "No se puede encontrar el archivo 'C:\DOCUME~1\CAPEST~1\CONFIG~1\Temp\PKGnnn.TIF' (o uno de sus componentes). Asegúrese de que la ruta y el nombre de archivo son correctos y de que todas las bibliotecas está disponibles." This would be something like "The file 'C:\DOCUME~1\CAPEST~1\CONFIG~1\Temp\PKGnnn.TIF' (or one of its components) can be found. Be sure that the path and the filename are corrects and all the libraries are ready".
    - "No se puede abrir el archivo 'C:\DOCUME~1\CAPEST~1\CONFIG~1\Temp\PKGnnn.TIF'. Compruebe el nombre de archivo y los permisos." ("The file 'C:\DOCUME~1\CAPEST~1\CONFIG~1\Temp\PKGnnn.TIF' can´t be open. Check the filename and the grants."
    I hope this help.
    Edited by: Valla1 on Jan 21, 2009 8:40 AM
    The problem was that the field was mouse navigable.

  • Retriving a blob after it was loaded by OLE container in forms 6i

    We had forms6i application which has loaded documents into a blob column in the database using OLE container. We are able to retrive the blob from the OLE container on the forms6i, However when we are trying to retrive the same blob using PL/sql into the OS level file , we are unable to open the file as it not able to de-serialize the blob loaded into the database by an OLE container on the forms 6i
    we have loaded around 5000 documents in the database using forms 6i application.
    These were loaded during normal application usage and added mannually by invoking the forms application and then saving.
    Our requirement is now to retrive these documents all at once using automated scripts. if Blob data is inserted using forms 6i OLE container then is there any automated exteneded procedures to retrive those blobs using PL SQL script or any other method.
    my Forms version:Forms 6.0.8.25
    My Databae : Oracle database 10.2.0.4
    Thanks in advance.

    When you click a C/S OLE object, it is opened with its default application's owner, no ?
    So if the OLE object is opened by Excel, the extension is .xls.
    In any case you have to open the OLE object with its "mother" application if you want to save it as a file, so there is no problem at all to decide with extension to use.
    If you read this article : http://sheikyerbouti.developpez.com/webutil-docs/Webutil_store_edit_docs.htm you can see that the filename is automatically opened with the corresponding application.
    Francois

  • How can I read a blob created with ole container in forms 6i in forms 10g

    In forms 6i I used ole container to save a document (excel, pdf, word...) into a blob column.
    I want to migrate my application in forms 10g and I read that I have to use webutil_File_transfer.db_to_client and after webutil_host.blocking to see the document.
    In the same blob column I can have multiple type of document. How Can I know wich application to use to open the document ?
    Even if I know the extension of my document I'm enabled to open the file ???

    When you click a C/S OLE object, it is opened with its default application's owner, no ?
    So if the OLE object is opened by Excel, the extension is .xls.
    In any case you have to open the OLE object with its "mother" application if you want to save it as a file, so there is no problem at all to decide with extension to use.
    If you read this article : http://sheikyerbouti.developpez.com/webutil-docs/Webutil_store_edit_docs.htm you can see that the filename is automatically opened with the corresponding application.
    Francois

  • Path of inserted file in OLE container

    I used OLE container in the forms. Now I need to extract the path of the inserted file as well
    How do i do it?

    Hi Krishana,
    Please look at .ear file is available under this path.
    This is for local DCu2019s path
    C:\Documents and Settings\XYZ(UserName)\.dtc\1\DCs\com.compname(Package Name)\demo\mrcf\_comp\gen\default\deploy----Here .ear file is available.
    This is for normal WDJAVA Application .ear file.
    Here that .ear file is available  in under Project folder only.
    U can take .ear file here and then send to BASIS team.theu will deploye the QA and PRO Systems by using SDM
    I hope this is help full for you,
    Regards
    Vijay

  • Making use of 'obsolete' OLE container in Forms10g

    I have a column in a database table of type LONG RAW . This column was represented as an OLE Container - which in 10g is obsolete - in a form (Forms 6i). Trying to compile this form to Forms10g , I receive an error FRM-30454.
    Is it possible to retain the form as it is , by simply change a property , ....
    Anyway , What are the possible solutions for this kind of problem?
    Thanks , Simon

    What is the role of 'Importing OLE Library Interfaces' which is a menu selection found on Forms Builder menu->Program->Import OLE Library Interfaces?
    How is there the capability to import for example 'Word.Document' OLE classes as OLE containers are obsolete?
    Is there an example on how to use them...?
    I didn't find anything -only directions on how to import- in the on-line help of Forms 10g!!!
    Thanks ,
    Simon

  • Using RealPlayer control in OLE container to play video

    Hi everyone,
    I am a student and I want to use Oracle OLE control in Oracle forms to implement some multimedia data. I choose RealPlayer G2 control / Window media Player / even Oracle Video Control to do this. But I have one common problem that I can't insert those control object in the OLE container automatically(in the designer).
    How can I have the multimedia control object start when forms runtime?
    Also, how can I store and retrieve data using that multimedia control object?
    Anyone can help me?
    Thx.
    Carol

    Hello,
    I have a similar problem. I want to extract a blob filed with ole from forms with other tools to a file, but the new file then has extra informations about the ole-object. Due to MetaLink there seems to be no possibility to strip these extra bytes off the data.
    Please let me know if you have a solution to this problem.
    Greetings,
    Thorsten.

  • FRM-40010 - Cannot read form when using Call_form on Unix 9iAS

    Hi,
    I'm using 9iAS on a unix server. However, the main form calls several other forms using CALL_FORM('formnam'); but it cannot read any of the forms. I've ensured that they have all been compiled on the server. They compiled successfully.
    I've also ensured that they are all residing in the FORMS60_PATH. Although it can find the main form OK, it cannot read any of the other forms. They are all located in the same directory.
    What can be causing this error?

    Make sure that formname is the name of the .fmx file and that you use the same case as it is in the file system, because UNIX is case-sensitive.
    How are you setting FORMS60_PATH? If you're using the Forms Listener Servlet and are setting the FORMS60_PATH in default.env, be sure that the variable name is spelled correctly. In the early versions of default.env that came out, there was a typo: FORSM60_PATH. So if people didn't notice this and just uncommented the line and set the path, they would get FRM-40010.

  • FRM-41830 :List of values contain  Lov After upgrade Form patch set to 19

    We are facing the below issue when click on menu,
    FRM-41830 :List of values contain Lov After upgrade Form patch set to 19
    Please let us know if someone has got similar type of issues.
    Regards,

    Hi,
    Please verify that you have completed all the steps in the Developer 6i upgrade doc. Also, please post the complete error message.
    Have you tried to regenerate the forms via adadmin and see if it helps?
    If none of the above helps, please obtain the FRD file as per (Note: 150168.1 - Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i) and post the contents of the log file here.
    Thanks,
    Hussein

  • Using an OLE container to store MS word files

    Hello,
    We are using OLE containers in Forms 6 to store word documents. Occasionally documents seem to be coruppted and can not be opened. I exported document back to a file useing TOAD but the file seems to have a bunch of extra header info added by forms. Anyone know what this is and if it can be stripped off?
    null

    Hello,
    I have a similar problem. I want to extract a blob filed with ole from forms with other tools to a file, but the new file then has extra informations about the ole-object. Due to MetaLink there seems to be no possibility to strip these extra bytes off the data.
    Please let me know if you have a solution to this problem.
    Greetings,
    Thorsten.

  • Attention!!-don't use OLE object in Reports

    If you are planning to use or is currently using OLE objects in Reports-please don't use it as the object maynot reload in future and your report may not even open in Report Builder.I got this message when opening the report containing OLE object:
    REP-4004: Error occurred while restoring OLE object
    and it refused to open up crashing my days of work.
    The pity is I can't open my report even to remove the OLE object.

    I know that is weird.I placed the object in the same directory-but in vain.Afterall, what's the logic of putting it in the same directory after embedding it?

  • 6i to 9i conversion OLE container stored in a LONG RAW column to BLOB

    I need to automate the migration of data stored in a long raw column to a blob column. The objects were stored in the long raw column using an Oracle Forms 6i OLE container. There is also multiple object types stored in the column, ie (word, excel, images, but mostly pdf's). I have looked at the webutil package but cannot figure out how to read the long raw column since ole containers are obsolete in 9i. I have a lot of records that need migrating and need help.
    Thanks,
    J. Broome
    [email protected]

    It doesn't appear that I am able to attach the PDF files.  Can you supply your email (or I can supply mine) so I can send you the three files:
    1.)  A good PDF (manually extracted from our old application)
    2.)  Dump of the same PDF file (includes header/footer info)
    3.)  A partially fixed PDF file (but some of the pictures / pages are cut off - specifically pages 3,5,9,10,12,14)
    The way that we have tried to fix the file (in example 3 above) is the following:
    a.)  Find the First Occurrence of "%PDF-"
    b.)  Find the Last Occurrence of "%%EOF"
    c.)  if the first "%PDF-" is found AND the last "%%EOF" is found, then
       i.)  Remove all data before the first %PDF-
       ii.)  Remove all data after the last %%EOF
    Let me know if you need any other information.
    Thanks,
    Mike

  • Forms 6i : Ole Container : Locking problem

    We have a form in which user can attach all sorts of documents that are then saved in the database.
    Once in a while we have a locking problem; when 2 users try to open the same document, the second one first gets a 'Could not reserve record (2 tries). Keep trying?'. When clicking 'No', the next error message is 'Frm-40501 : unable to reserve record for update or delete', and the form cannot be used anymore. He keeps complaining about the reserved record.
    I've been looking into this problem but cannot seem to find a lot of help.
    Does anyone have an idea how to solve this locking problem?
    I have tried the following things:
    * setting the block to locking mode 'Delayed' => we ended up having duplicate records.
    * Changing properties of the ole-container (In Place Activation, Inside Out support, ...).
    Forms version is 6.0.8.13.0, database 8.0.6.0.0.
    Any help is appreciated.

    that seems to be a normal locking problem. Do you have tried to work with an ON-LOCK trigger ? (e.g. first to see, when locking will occur, second for implementing an own locking-behaviour, maybe with a SELECT for UPDATE)
    Or do you think, that there is something special with your OLE-programming ?
    Gerd

  • Problems with OLE Container in QUERY

    Hi all,
    I have problem with OLE Container when I am trying to retrieve data from the database. Inserting is no problem and commit is done. I am doing it with
    initialize_container('block.ole_object','C:\test.doc');
    I have only one column of BLOB type and it is last in the block as it was suggested somewhere on the forum.
    When I am trying to retrieve the already inserted data I get error with the following
    Description:
    FRM-40505: Oracle ERROR: unable to perform query and CTRL+F1 says the following:
    ORA-00932: inconsistent data types: expected got
    The forms and the database are as follow:
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    I need immediate help!!!

    This may be related to the 10g database, I'm not sure as there is no way for me to test it. I know that it works with a 9i database.
    One thing to check is to make sure that you don't have the FORMS60_DISABLE_DESCRIBE set to 1 within the Oracle registry.
    If this doesn't work, your only option might be to use a LONG RAW instead of a BLOB column type in the database.

  • Multi Page Doc in OLE Container

    I have a multipage Word Document in an OLE container and I want to be able to scroll through the pages without activating the container by pressing buttons for the next, previous, first and last pages along with knowing that I am on say page 5 of 25 pages. Has anyone ever done that and have and example?

    You could let this piece of code run over all pages:
    doc1 = app.documents[0];
    doc2 = app.documents[1];
    doc1.pages[0].pageItems.everyItem().select(SelectionOptions.ADD_TO);
    app.copy ();
    app.activeDocument = doc2;
    app.pasteInPlace ();
    -- this will do what you asked, but will it do what you intended?
    You cannot select objects across spreads. (The other day someone suggested using an XML tagged file, and apparently you can with that. I wouldn't know if it's applicable for your situation.)
    So this code does what one can do manually: select all, copy, activate document 2, paste. However, as you will find out, threaded text frames will not thread anymore to the next.
    It would be easier to duplicate each spread (not "page" -- it's not an option [**]) to your other document -- then you would not have to worry about the number of pages. It does add other responsibilies, though (styles, swatches, document size; all of these should match across the docs). [*]
    An other option could be to place the document's pages as images into the other.
    [* Post-Edit] That wouldn't preserve your text threads either, by the way.
    [** Post-Edit #2] Well, whaddoyouknow? You can duplicate pages as well from one document to another, as long as you reference a page in the other doc:
    doc1 = app.documents[0];
    doc2 = app.documents[1];
    doc1.pages[2].duplicate (LocationOptions.AFTER, doc2.pages[0]);
    The oblique Help confused things a bit: you can duplicate a Spread to another document immediately (I didn't try that), but for a Page it sez "another page or Spread" -- without mentioning that that one can be in another doc.

Maybe you are looking for

  • Bapi for f-44

    Hi.... I'm using BAPI_ACC_DOCUMENT_POST to clear vendor open items for the T-code f-44.The following is my below code and it seems to be going on fine but the data in the table bsak(Vendor accounts cleared items) is not updated..with the concern vend

  • Content server problem

    Hello, I would like to link my ECC 6.0 system with an (outdated..) 620 Content server This works fine for non secure data Now I would like to enable signed url's. for this you need to enable security=1 in the Content server .ini file. Furrthermore yo

  • How do i stop emails to me from Apple support community?

    I am being inundated with answers; probably over 2000.

  • IE issues with my website

    Hello there, Can you take a look at my website saponelawfirm.com and tell me what I am doing wrong? I am a beginner so please give me as much help as possible. Firstly, across all the browsers, on larger monitors, the left sidebar jumps over to the r

  • Additional Statistical Functions

    I am new to numbers and working on a dissertation. I have 24 subjects that answered a pre and post test to measure perception. I have assigned all questions and potential answers with numerical values. Has anyone used the statistical additional funct