Skip to main content
Participating Frequently
April 18, 2011
Question

Error processing CFFILE Unable to move file x to path.

  • April 18, 2011
  • 1 reply
  • 571 views

Here is my system info:


server.ColdFusion.ProductLevel = Professional
server.ColdFusion.ProductName = ColdFusion Server
server.ColdFusion.ProductVersion = 5, 0, 0, 0
server.OS.AdditionalInformation = Service Pack 4
server.OS.BuildNumber = 2195
server.OS.Name = Windows NT

We randomly are getting the following:

Error processing CFFILE<P> Unable to move file 'C:\x\file.pdf'  to path 'C:\y\file.pdf' . The process cannot access the file because it is being used by another process. (error 32)<p>The error occurred while processing an element with a general identifier of (CFFILE), occupying document position

Here is the code that it refers to as erroring:

<cffile action="Move" source="#sourceFileName#" destination="#failedFileName#" nameconflict="overwrite"></cfif>

Is the 'Move' code wrong?

    This topic has been closed for replies.

    1 reply

    Inspiring
    April 18, 2011

    The code is fine.  You just have to figure out what the other process is, decide what you want to do about it, and code accordingly.