Client_text_io does not write the file but does create it.

Hello there!
I have a form which generates a .txt file using client_text_io webutil function.
this is the procedure:
PROCEDURE CREA_FILE IS
MYFILE CLIENT_TEXT_IO.FILE_TYPE;
OUTFILE CLIENT_TEXT_IO.FILE_TYPE;
MFILE VARCHAR2(1000);
MLINE VARCHAR2(5000);
RESP NUMBER;
BEGIN
MLINE:='LINE TO WRITE...';
MFILE := C:\test.txt;
OUTFILE := CLIENT_TEXT_IO.FOPEN(MFILE,'w');
CLIENT_TEXT_IO.put_line(OUTFILE, MLINE || ' 123');
CLIENT_TEXT_IO.Fclose(OUTFILE);
EXCEPTION
     WHEN OTHERS THEN
     CLIENT_TEXT_IO.Fclose(MYFILE);
     message('ERROR: '||SQLERRM);
END;
It works on OAS 10g + forms 10g. the file is created fine, BUT I have tried with forms 11g unsuccessful.
My forms 11g are running under weblogic and the RedHat server.
Im running the forms app from my laptop Windows XP.
I configured webutil as the MOS note said, the thing is, the file is created, but no data is writted.
I can open the file test.txt but the line I tried to print is not there, the same thing with 10g and the file is good.
help me please.

What are you doing after writing to the file? Are you leaving the form? Forms performs event bundling when sending data over to java beans;
v_FILE_HANDLE := CLIENT_TEXT_IO.FOPEN (FPATH, 'W'); most certainly uses get_custom_property at the end to retrieve the file handle from the bean which will cause a "synchronize" as data must be retrieved from the bean before continuing in the PL/SQL code whereas
CLIENT_TEXT_IO.Put_line(v_FILE_HANDLE,v_string_prov);
CLIENT_TEXT_IO.FCLOSE (v_FILE_HANDLE); most certainly uses set_custom_property which is a one-way street and data is bundled up and sent as one package. If you have e.g. a exit_form right after those calls there is a chance that forms waits for some other data to be sent over to the bean but won't send it, as the form doesn't exist anymore after the exit_form. The same would happen if you'd do a
v_FILE_HANDLE := CLIENT_TEXT_IO.FOPEN (FPATH, 'R');
CLIENT_TEXT_IO.FCLOSE (v_FILE_HANDLE); right after writing your form as fopen will cause the sync (with the possibility that java will still hold a file lock on the file as the fclose method won't be called).
cheers

Similar Messages

  • LabVIEW could not write the file back to disk (-2570)

    Hello,
    i use this MDF data storage plugin to write MDF files: mdf plugin
    I created a project with some VI's like MDFOpen.vi, MDFClose.vi, MDFWriteDouble.vi, etc ...
    I also created a Test VI which generates data at a specific rate (want to see performance) and write it to a MDF file. It works ....
    Now I want to use this in C#. I compiled a LabView .Net DLL out of my MDF VI's and referenced it in Visual Studio. I can open a MDF File from C# and close it. But as soon as I write a double (actual content) into the MDF File I get an exception when I call MDFClose.vi from DLL. Obviously "Close Data Storage <APPEND>" from inside my MDFClose.vi returns error -2570: LabVIEW could not write the file back to disk. I have no idea why.
    regards
    Thomas

    So I guess it's time to update this post for anyone who also have problems with MDF or Storage/DataPlugin VIs in general.
    My task was to create a MDF Logger, so I needed to write MDF files. MDF4Lib from Vector mentioned in an above post can only read MDF files. ETAS is also selling an MDF Lib but there are reasons I don't want that. So why not use MDF Storage/DataPlugin from NI? I can tell you.
    My MDF Logger is now finished and can create MDF files with groups and channels, just like TDMS, but ... when I write data in a loop and then finish by closing the MDF File/Reference it may happen that:
    i get error LabVIEW could not write the file back to disk (-2570)
    application crashes
    both 1 and 2
    If it does not crash or throw an error it succeeds finishing my MDF file correctly but next time I repeat this (without restarting application) I notice writing data takes longer than in first run and my memory is increasing. The more I repeat the longer it takes to write data to MDF and the more memory is increasing until it finally crashes. It also depends on how much data in how many groups/channels are written.
    NI Support already got this and confirmed that with desktop execution tracekit you will see that with each call to a Storage/DataPlugin VI references are leaking. Those leaks are assumed to be the root cause of all that trouble. There is not bugfix but apparently one or more CAR's about this. So I guess this is not MDF specific but generally with Storage/DataPlugin.
    My current only workaround is to close the app each time after I am done writing one MDF file. My future fix will be to implement MDF on my own.

  • Everytime when I quit FCP X, I could not find the file that was created previously. I'm aware files (events/projects) are saved automatically. But strangely when I reopen FCP, the event/projects are not listed.

    I need help here. Saved events/projects are not visible or listed when I reopen FCP X. Tried to open from the event folder don't seem to work.
    I'm using MacOS X 10.6.8 and just bought FCP X 10.1.
    Help.

    No. I'm not using two hard drives. Files saved on MacBook Pro HDD. Only time I use the second HD is for backup but while working on FCP X.
    This is unclear.
    Do you have another HD with FCP X projects and / or events?
    If you do (whether it's a backup or not) it will cause the exact problem you described. Make sure any other drives with FCP X events or projects are turned off before you launch FCP X.
    If you don't have a second drive with events or projects, I suggest you try trashing your preferences.
    Faults like this can sometimes be fixed by clearing out FCP X's preferences (for some reason, they get knotted up from time to time).
    Download Digital Rebellion's Preference Manager (free, simple to use, and quite safe).
    http://www.digitalrebellion.com/prefman/
    With Pref Manager, you can backup the Prefs first, then if trashing makes no difference, you can restore all your settings.
    If you trash them and don't restore them, you will need to go over your FCP X settings again, so it's a great idea to backup Preferences from time to time when FCP X is working well, then you can ditch the bad prefs and restore from your (Digital Rebellion) backup.
    muhammadfromsingapore wrote:
    Thks Bob. No. I'm not using two hard drives. Files saved on MacBook Pro HDD. Only time I use the second HD is for backup but while working on FCP X. I'm getting very frustrated whenever I return to work on the video to find the file 'missing'. I know its there but it's just not showing up on the Event Browser. Sigh!!
    How come you marked your own post as "Correct Answer" when all it does is tell Bob he's wrong? This will mislead people.
    Andy

  • Camileo H10 do not write the files to SD card

    Hello,
    I have bought a Camileo H10 in December. It is a nice cam, but sometimes I record a video in HD format, the file will not stored on the SD card.
    I have tried an 8GB class 2 and a 16GB class 6 SD card. This problem caused highly intermitted, when I record a video not the first time in lifecycle.
    Another problem is, on the videos, the audio stream is to fast. When the audio is played, the pictures run 10% longer than the audio.
    Did anyone knows, there is a firmware update available?
    Thanks
    Stefan

    > sometimes I record a video in HD format, the file will not stored on the SD card.
    First of all you should check if the SD card is not locked the SD cards supports an lock which would not allow you to format the SD card or to store something on such card.
    Furthermore you should take a look into the user manual and should check what SD cards are supported!
    > Another problem is, on the videos, the audio stream is to fast. When the audio is played, the pictures run 10% longer than the audio. Did anyone knows, there is a firmware update available?
    Why you need a firmware update? Do you think this is a firmware problem??
    I believe that this has nothing to do with the firmware or with an cam problem.
    My father has got a HD cam and such issue appeared also with the recorded High definition video.
    The problem is that your video must be converted and you need the right codec

  • Error window "could not write the file. There is not enough scratch memory available

    When I try to use the "save for web" I get this error window. I have deleted several files and have over 700 GB of memory available on my local C drive. I have had PS CC for over a year and have never seen this before. Any help would be appreciated.

    Hi AndreaJ,
    If it cannot create a temp file, which indeed is tied to the limitations for 32bit apps and in Save for Web cannot exceed 2GB,
    That's what it's telling you, and this has absolutely nothing to do with your system swap file.
    A possible solution may be to manually flatten the file before exporting or it might also help to clean up the Drive you are using as Scratch disk.
    In Addition to this:
    http://helpx.adobe.com/photoshop/using/memory-performance.html#assigning_scratch_disks
    Hope this helps

  • Publish to DVD says it completes, does not write the ISO file in version 13.

    When I publish to DVD and select ISO it says it completes but it does not write the ISO file in version 13.

    apsteinmetz
    The DVD disc which is labelled 4.7 GB/120 minutes is in reality 4.38 GB. And the DVD disc which is labelled 8.5 GB/240 minutes is in reality 7.95 GB.
    What version of Premiere Elements and on what computer operating system is it running? Can we assume 13/13.1 on Windows 8.1 64 bit?
    What are you doing, a burn to disc DVD-VIDEO standard or widescreen on DVD disc or burn to disc AVCHD on DVD disc?
    When you get to the burn dialog (and you have your disc in the burner tray), what does the Quality area of the burn dialog show for Space Required and Bitrate with and without a check mark next to "Fit Contents to Available Space"?
    Or, can you do burn to Folder (4.7 GB) and/or burn to ISO Image (4.7 GB)? Are your successful burn to .iso files under 1 GB in file size?
    Please quantitate "...shortening the timeline dramatically".
    Thank you. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable it to save mp3 files on my computer?

    I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable Firefox to save mp3 files on my computer?

    Go to Options>Applications tab > search MPEG Layer 3 audio(audio/mpeg) > use "Save File" option on drop down menu.

  • My audio files no longer sync to the in the 5d in camera audio. It did when I bought the program but no longer does  I reinstalled and it still will not sync the files recorded on the H4N with the Canon 5D Mark Ii

    My audio files no longer sync to the in the 5d in camera audio. It did when I bought the program but no longer does  I reinstalled and it still will not sync the files recorded on the H4N with the Canon 5D Mark II  Camera. 
    The program used to import and transcode the Can 5D footage but no longer does.   The program freezes often and looses my projects as well.  Hard to make a living when your editing program is on strike!

    My audio files no longer sync to the in the 5d in camera audio. It did when I bought the program but no longer does  I reinstalled and it still will not sync the files recorded on the H4N with the Canon 5D Mark II  Camera. 
    The program used to import and transcode the Can 5D footage but no longer does.   The program freezes often and looses my projects as well.  Hard to make a living when your editing program is on strike!

  • HT3702 I purchased a book called Activity-based costing for $3.99. I tried to open the file but it said my computer does not have IOS. I have a smartphone and I am unable to view the book. I am requesting since I am unable to use the book activity-base co

    I purchased a book called Activity-based costing for $3.99. I tried to open the file but it said my computer does not have IOS. I have a smartphone and I am unable to view the book. I am requesting since I am unable to use the book activity-base costing, a refund.
    Kevin

    I don't know what you are saying. How do I get my money refunded.

  • "Move to trash",  ask password but still does not delete the file

    hi, when i try to delete any file on my mac, the laptop ask for password, then i put the password but it still does not delete the file. Anybody can help?

    Make sure the application or document you are trying to delete is not open or running.

  • Linking to a MS word file in Safari does not open the file

    I access a web site that has hyperlinks to MS Word files. When I click on the link the following happens.
    1. I get a new empty window
    2. I get the download window showing the file
    But the file does not load in Word.
    I have to manually click on the file to load it into word.
    When I access the same page with Firefox,and click on the hyperlink the Word file loads into Word with no action required by me.
    Is this they way Safari works or is there some preference I can set to make it load the file into Word?
    Safari does open pdf files fine.

    1. I get a new empty window
    2. I get the download window showing the file
    This is normal for a site that has the Word files links set up to open in a new page. (Which is almost necessary in Windows IE, since IE will open the Word doc in the same browser window otherwise, losing all web site navigation.) But Safari doesn't open Word files directly, so you get that blank new window while the file downloads in the background.
    But the file does not load in Word.
    What do you have in Safari > Preferences, in the General section, for "Open safe files after downloading"? If you have that box checked, files that the Mac OS considers "safe" (JPEGs, PDF files, etc.) will open automatically in the default program for that type of file. The only question is whether Word documents are considered safe. They might not be, since they can carry macro viruses. Checking now...
    I tested that, and it seems that Word files are not considered "safe" files and will not open automatically with that setting checked. The alternative: when the downloads window opens, it shows the file you just downloaded. You can double-click on the Word file's icon to open it in Word, without navigating to the downloaded file on your hard drive to open it.
    Message was edited by: Rachel R

  • Recording does not save the file

    We are facing a serious problem with Captivate 2. After
    recording about 40 -50 slides it does not save the file.
    The system hangs for several minutes and there’s no
    response.To analyze this problem we have tried out User Forums and
    FAQs.In the User Forum too similar problems are reported. For
    example, visit:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1261116&enterthread=y
    In fact, in our team Captivate is loaded on a standalone
    hi-end system with ample space and memory.
    We have also tried workarounds to address this issue. For
    example, we deleted all temp files from library and we also saved
    it on a short path like c:/project.
    Nothing works!!!

    Hi Madduser and welcome to our community
    When you say
    To analyze this problem we have tried out User Forums and
    FAQs are we to assume you simply searched them and read the
    threads? I'm assuming this because this is your first post here.
    You will note that the thread you linked to mentioned the
    person was attempting to save on a network. I do see you have tried
    using the shortened local path to no avail, so I'm guessing the
    network is ruled out here.
    As usual, I've got more questions than answers, but hopefully
    as we work through them something will come to light.
    * Have you EVER been able to create and save things using
    Captivate? Or did you just install it and it's never worked for
    you?
    * Have you tried what is outlined in the following Technical
    Note?
    Click here to read the
    Technical Note
    Cheers... Rick

  • IMAQ ClipboardToImage IMAQ Vision does not support the file type you specified.

    Hi.
    I have been trying out the inventeering INVENTvisionIMAQexample.vi. But i always encoutered
    an error in the INVENTvisionVFWcopy.vi of "IMAQ ClipboardToImage IMAQ Vision
    does not support the file type you specified." And the video window does not
    appear full size with real-time capture image. Does anyone encountered this problem as well? Please enlightened me. Thank you.

    What error it is throwing ? if you could attach the vi then it will be easy to find out the problem

  • I want to upload a Banner to my iTunes U page. The banner file has all the requirements like as, kind, size, frame, and etc. Infortunately,  I could not upload the file. It does not show in Provider Page Configuration or the preview.   Someone could help

    I want to upload a Banner to my iTunes U page.
    The banner file has all the requirements like as, kind, size, frame, and etc.
    Infortunately,  I could not upload the file. It does not show in Provider Page Configuration or the preview.
    Someone could help me?

    Sounds like a driver issue. I never tested in bridge, so I could be wrong. But it sounds to me that when you are connected to that screen, your settings are not set to the full resolution of that screen.

  • When I copy an artist over to itunes and that particular album has multiple albums, it does not separate the albums but lines up all of the songs...such as all the 1's..then 2's and so on.  How do I fix that?s

    when I copy an artist over to itunes and that particular album has multiple albums, it does not separate the albums but lines up all of the songs...such as all the 1's..then 2's and so on.  How do I fix that?

    JPSchrader wrote:
    when I copy an artist over to itunes and that particular album has multiple albums...
    Should that read "when I copy an artist over to itunes and that particular artist has multiple albums," because if not, I don't understand?
    If I'm right about that, I'm still not really clear at all about what you're doing. Where are you importing these songs and albums from? Is it existing songs files and if so, what format are they in?

Maybe you are looking for