ColdFusion could not delete the file

Good day all im getting this error. cant figure it out
"ColdFusion could not delete the file
c:\ColdFusion8\wwwroot\Jewel\images\stock\203083.jpg for an unknown
reason"
I tried installing the 801 update the patch using :
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403622&sliceId=1
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1
However this does not seem to be working,... but the file is
there...
Does anyone have a solution to this problem

you sure you have all hotfixes installed? this was definitely
fixed in
one of the recent ones...
also, i am no quiet sure about referencing [previous] cffile
inside
another cffile tag:
<cffile action="rename"
source="#dirlocation#\images\stock\#CFfile.serverfile#"
destination="#dirlocation#\images\stock\#FORM.code#.jpg">
see if setting a RESULT attribute in your cffile
action='upload' tag and
referencing that instead in your cffile action='rename'
solves the
problem...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • ColdFusion could not delete the file [file path] fo

    Using the <cffile> tag I write a file to the server and
    display the outputed file in my browser. I then try to delete the
    file. I get the error message ColdFusion could not delete the file
    [file path] for an unknown reason. If I wait 60 seconds I can
    successfully delete the file. Using the freeware prodram Unlocker I
    know that it is a jrun.exe process that is preventing the deletion
    of the file for the 1 minute after the file has been created.
    Is there a known workaround or fix for this issue?

    Are you using CFlock when you write or create the file? If so
    that will prevent the file from being deleted until the lock is
    released.

  • Stroring certain details in a file, But Could not delete the File.

    I am storing certain details using serialization. But when i decide to delete the File i am unable to delete the File. I am attaching a sample Code to understand my problem.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    public class SerialDemo implements Serializable {
      public static void main(String[] args) {
        try {
            FileOutputStream f = new FileOutputStream("./test.proj");
            ObjectOutputStream s = new ObjectOutputStream(f);
            SerialDemo d = new SerialDemo(5);
            s.writeObject(d);
            s.flush();
            FileInputStream f = new FileInputStream("./test.proj");
            ObjectInputStream s = new ObjectInputStream(f);
            SerialDemo d = (SerialDemo) s.readObject();
            System.out.println(d.getIndex());
            s.close();
            f.close();
            System.out.println("SerialDemo.getVal() is: " + d.getVal());
          File file = new File("./test.proj");
          System.out.println(file.delete());
        } catch (Exception e) {
          e.printStackTrace();
      int test_val = 7; // value defaults to 7
      public SerialDemo() {
        super();
      public SerialDemo(int x) {
        super();
        test_val = x;
      public int getVal() {
        return test_val;
      private int idx = 2;
      public int getIndex() {
        return idx;
      static final long serialVersionUID = -4717603181820250815L;
    }

    Glad I could help. I recommend you look into using FindBugs, it will warn you of this kind of thing. Also change the way you open/close streams to:
    YourStream stream = null;
    try {
       stream = new YourStream();
       // read/write from
    } finally {
      try {
         stream.close();
      } catch( IOException ioe ) {
          // Log the IOE. Or use the IOUtils.quiteClose from Commons IO.
    }As otherwise you could leave the stream open, i.e. if the read() method throws an IOE.

  • Unzip issue: Could not delete the zip file after unzip it

    I have issue with the following code, the purpose is to unzip first then delete the zip file. But I could not delete the zip file. When I put a break point before my delete() call, I manually delete it and get the file is used by another process. Please help. Here is my code;
    try{
    File primeZip = new File(dir, fileName);
    ZipInputStream zipStream = new ZipInputStream(new FileInputStream(primeZip));
         ZipFile zf = new ZipFile(primeZip);
         OutputStream out = null;
         for (Enumeration em = zf.entries(); em.hasMoreElements();){
              String fileName = em.nextElement().toString();
              out = new FileOutputStream(fileName );
              byte[] buf = new byte[16384];
              int len;
              while ((len = zipStream.read(buf)) > 0) {
                   out.write(buf, 0, len);
              out.flush();
              out.close();
         out.flush();
                   out.close();
                   zipStream.close();
    primeZip.delete();
    }catch(FileNotFoundException e){          
    }catch(IOException e){         
    }

    I put close() for ZipFile object which is zf.close() befoer I delete the zip file resolve this issue.
    Thanks.

  • Time Machine Backup Error. Time machine could not delete the backup disk image .sparsebundle

    Time Machine is giving an error message.  Time Machine couldnt complete the backup.  I am using the Seagate GoFlex Home.  Error message states Time Machine could not delete the backup disk image "/volumes/Go Flex Home Backup/iMAc.sparsebundle".  Does anybody have any ideas?

    I have deleted all files in the Time Machine backup via Windows, Finder, and GoFlex UI.
    I think this is your problem.. you need to follow the exact setup from seagate to get TM running again.. please read the manual... I do not have one but I do have another brand of NAS and setting up TM involves a fairly complex set of instructions.. because it is not a native Apple device.. your computer does not recognise it as TM capable.. you need to use the work around the manual will explain.

  • Post 10.3: Could not find the file "hw.kb" to install.

    I'm getting this error on my 10.3 clients.
    "Could not find the file "hw.kb" to install"
    I think this is the April PRU...I have applied the post 10.3 fix and this is still not working :/
    Full Message:
    GenericActions.FileCouldNotBeFound{hw.kb}
    Message ID: GenericActions.FileCouldNotBeFound
    Related Objects: /System/System Bundles/102d38812c9437a05ee01e8bc93369f0

    This was not related to the 10.3 update, atleast not directly.
    I deleted the April PRU in system updates, checked for updates, and reapplied.
    This solved my issue.

  • Error: Could not find the file "flash.ocx"

    I have been receiving the error COULD NOT FIND THE FILE
    "FLASH.OCX" for the past couple of months - I have been watching
    the message boards and have seen a lot of "fixes" and beta's come
    up errors (not sure that it's this exact error though).
    I get this error continuously throughout the day - no matter
    if I have nothing running on my computer or I have 10 things open.
    This morning it occurred to me that my screen saver is not coming
    on and it seems to me that the above errror is popping up everytime
    my screen saver should start. I HAVE TIMED THIS TODAY AND CHANGED
    HOW LONG BEFORE MY SCREEN SAVER STARTS - AND IT IS DEFINITELY
    GETTING THE ERROR EVERYTIME THE SCREEN SAVER IS TRYING TO START.
    Last week, I deleted the version of Flash that I had and then
    re-installed; still getting the error.
    I was getting the error when I had IE6 so I thought maybe
    switching to IE7 would correct it - but it didn't (that was a few
    weeks ago).
    My computer does not freeze up but it is SOOO annoying to
    continually throughout the day get this error.
    IE7.0
    ADOBE 9,0,28,0
    WINDOWS XP - SP2
    PLEASE HELP!

    Ah-ah! The workaround is to map my network folder to a drive, say... M:\
    So, when I select Edit->Edit in Audition->Sequence, I can select the Browse button to alter the Path destination. Instead of seeing '\\Zeus\Projects\...', I select the mapped M: drive so the path reads 'M:\Projects\...' instead.
    Then, Audition loads and is able to find the sequence or clip.
    So... that solves my problem!

  • Adobe Captivate could not open "the file" Ensure that:

    Brand spanking new installation of the trail version of Captivate 5.5.
    Try to open a file a client sent to me.
    Receive message
    Adobe Captivate could not open "the file" Ensure that:
    -The files is not open already
    - The file is not damanged.
    -The hard disk has suffecient available space
    -The system has suffeicent resources.
    Researched the blog and tried 2 suggestions:
    1. Clearing the cache. Did not work. I do not have a cache folder. I haven't created a Captivate 5.5 project. I'm just trying to open a file sent to me.
    2. Tried deleted bak file. Didn't work. Captivate 5 keeps recreating the file.
    Other facts:
    Other people have been able to download the trial version and open the file.
    I have Captivate 4 on my machine.
    Any suggestions?
    Thanks

    I'm experiencing about the same problem:
    I made a software demo using Macromedia Captivate on computer 1 en sent it by e-mail to computer 2.
    On computer 2 I installed a Captivate 5.5 trial and I want to open the file in 5.5.
    The file is not locked as far as I know (I right-clicked the file > properties > unlock)
    I do have sufficiënt available space and resources. The file contains 135 slides but is not too large as I tried to do the same thing with a 50-slide file > same error message.
    I tried creating a new blank project > I copied the slides into the blank project, saved again on a local drive, sent it to computer 2 again, but same error message.
    Please help, I'm getting desperate.
    Marieke

  • Safari could not download the file because there is not enough disk spacr

    safari could not download the file because there is not enough disk space I have a 1TB hard drive and only use a small amout of space.Mac os x mountain lion (12.8.2), HD 978.59 free out of 999.35GB.Please help Brenton

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • I am getting the following message "safari could not download the file (440MB) because there is not enough disk space.  disk utility says i have 249.8 GB of available disk space.  any suggestions as to what is the problem would be appreciated

    i am getting the following message "safari could not download the file (440 MB) because there is not enough disk space.  please delete files or download to another disk."  when i check system information it tells me i have 249.82 GB of disk space available.  any suggestions as to what i can do to resolve this problem.

    don
    thanks for your suggestion.  that is the same advice that i got from the geek squad at the local apple store.
    i did what he instructed but it did not work.  i have since called apple support twice regarding the problem.  they had me start the computer in safe mode, going into the library and deleting a phlist file (i think) do a repair disk permissions, do a repair disk, empty the cache, and finally the last guy told me to unplug the computer from the wall socket and restart.
    when i mentioned the advice you and the apple store guy gave me they sort of poo pooed it saying that was done when they did all this other stuff.
    i am now waiting for the download to be completed to see if unplugging the computer had any effect.
    thanks again for your kindness in answering my concern.

  • "Time Machine could not delete the backup disk"

    This morning, I got the "Time Machine must create a new backup for you" message referred to here:  http://pondini.org/TM/C13.html
    I went ahead and told it "start new backup" but after a few minutes, got this message, ending in error message -1:  "Time Machine could not delete the backup disk."  It did not reference a sparsebundle file or some other specific file name as I've seen in some other threads, and I haven't been able to find this exact issue anywhere in the forum or on Pondini's page.
    I went ahead and told it manually to do a new backup, but I am concerned that it will "lie to me" about the verifiability of the files per Pondini's page above (orange box at the bottom).  I'll attempt to force it to manually verify once this backup completes to see what happens, I guess.
    I'd appreciate any input.

    And now an effort to manually start a backup produces this error:  "This backup is too large for the backup disk. The backup requires 233.73 GB but only 188.30 GB are available."

  • I have a MacBook pro version 10.6.7 with snow leopard. After an scheduled software upgrade I could not open Quicken (It said it could not open the files). Now I can only open it if I have my external drive on. Can you help?

    I have a MacBook pro version 10.6.7 with snow leopard. After an scheduled software upgrade I could not open Quicken (It said it could not open the files). Now I can only open it if I have my external drive on. Can you help?
    All the information that I had input on Quicken is gone. I have to have the external hard drive that I use to back up to be able to use quicken now. It is as if it was erased from the laptop hardrive

    Try repairing permissions. My favorite way is with a utility called AppleJack. Info and download here. It's free. It only works when you boot in Single User Mode. When restarting or booting, hold down the Command key and S keys.
    You will get a very different startup screen that looks like the Terminal app has hijacked the screen. Just let the lines of text scroll by. When that happens you will get a text entry prompt. Type in "AppleJack" without the quotation marks.
    A DOS looking menu will appear. Choose 1 or d to run Disk Repair. If you get a message that Disk Repair found and corrected errors, run it again. Repeat until you get the "your disk appears to be ok" message. This rarely happens with my experience, though. This does the same thing as as booting from an external drive and running Disk Utility's repair. Only, no external drive is required!
    Next, choose 2 or p to repair disk permissions. This will take a little while. AppleJack warns that it will take up to an half hour to run repair permissions. It'n never taken more than about ten minutes for my MacBook Pro.
    As permissions are repaired, you will see each repair scroll on the screen. When done, the menu returns, choose q to quit. Then at the prompt, enter "exit" without the quotes. Your MacBook Pro should restart into Mac OS normally after this.
    Hope this helps.

  • Could not open the file

    I had worked on the Illustrator CC 2014 with 19 slices of PDF presentation file for my assignment even in 15 minutes ago, and before closing it previous time, I have saved the file, and restarted my laptop, tried to open the PDF file again, but the message of "Could not open the file" was appeared each time I have tried to open it. I wonder what is wrong with it. And I do really have to working on it right now. Here I am attaching the pictures and please solve this problem. Thank you

    Does it open in Acrobat?
    Did it really complete saving? Or did it crash or did you abort the saving process?
    In case you can open it in Acrobat, the PDF part of the file is still intact. Then you could create a niew file in Illustrator and place your file in it. Of course then most  editing features will be lost, but at least you've got the content.
    Use this script to place all pages at once:
    Introducing: Open Multi-Page PDF win/mac

  • Could not open the file in application server

    Hi All,
    I have a Zreport which will write files on application server. When I tried to download it is showing me "Could not open the file". And when checked again with /nal11 the files does not exist. When I ran the Zreport again the file exist in application server but unable to download. And when checked again the file doesnot  exist. Why it is getting archived? Please help me.
    Thanks,
    Venkata

    Hi Sagar,
    Below is my file path : /dv2/tmp/instl/salesdata.txt
    When I checked in the below path the file exists.
    /dv2/tmp/archive/salesdata.txt
    Solved the issue.
    Thanks,
    Venkata

  • Web Intelligence report scheduling: Error "Could not open the file"

    Hello,
    we are on BO 4.0 SP9 Patch 1.
    Since the update to this patch level we have intermittent failure of scheduled reports in Web Intelligence.
    Error message is: "Could not open the file *.wid"
    There has been neither a change of the report nor a promotion.
    Former schedules finished successful.
    SAP note search or SCN search only showed notes with the issue that this error occurs after a promotion.
    Does anyone has experiences with this error?

    Hi Sebastian,
    If Hot Back is enabled I would suggest turning this feature off unless it’s a business requirement.
    In addition as a workaround in the reoccurring jobs set the number of retries to something greater than 0.
    This issue was fixed in BI4.0 SP08, I would suggest opening an incident with support.
    Hope the above helps
    ~Valdrin

Maybe you are looking for