Guest_imported
New member
- Jan 1, 1970
- 0
I use CFFILE to create temporary Excel template files, the error message I receive is this:
<<
Error processing CFFILE Error attempting to write data to target file 'd:\Inetpub\Error: There was a sharing violation.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (277:1) to (277:84).
>>
The filename is built dynamically, and the number following IQY= is a randomly generated number between 1 and 1000 to ensure that if two or more users try to use the application at the same time there is no filename duplication. Beyond that, I also use a CFLOOP routine before the <CFFILE> tag writes the contents of the file to check and see if a file with an identical name exists, if it does it adds a 1 to the filename before the file extension and checks again until it finds a filename that does not exist on the server. This Tag works 99% of the time and I can't figure out why I get this error from time to time. I can't see how it would be trying to overwrite an open file if it checks for a unique filename before writing, the directory has plenty of space, and all the permissions it needs (otherwise it wouldn't EVER work). Any thoughts?
SnoBoredCa
<<
Error processing CFFILE Error attempting to write data to target file 'd:\Inetpub\Error: There was a sharing violation.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (277:1) to (277:84).
>>
The filename is built dynamically, and the number following IQY= is a randomly generated number between 1 and 1000 to ensure that if two or more users try to use the application at the same time there is no filename duplication. Beyond that, I also use a CFLOOP routine before the <CFFILE> tag writes the contents of the file to check and see if a file with an identical name exists, if it does it adds a 1 to the filename before the file extension and checks again until it finds a filename that does not exist on the server. This Tag works 99% of the time and I can't figure out why I get this error from time to time. I can't see how it would be trying to overwrite an open file if it checks for a unique filename before writing, the directory has plenty of space, and all the permissions it needs (otherwise it wouldn't EVER work). Any thoughts?
SnoBoredCa