Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mellerbeck
Creator II
Creator II

File write failed: System.IO.IOException: Cannot create a file when that file already exists.

I get this error on occasion, was wondering if anyone else sees it and possible reasons why it occurs?

File write failed: System.IO.IOException: Cannot create a file when that file already exists.

Thanks,

Michael   

15 Replies
jfkinspari
Partner - Specialist
Partner - Specialist

Any news around this issue? I have experienced the same at random times

ferha_jafri
Partner - Creator III
Partner - Creator III

I m also facing the same problem not sure what needs to be done???

Not applicable

I deleted the associated .old file and .shared file and this resolved the issue

anna72to
Contributor II
Contributor II

I also helped

Anonymous
Not applicable

We had a similar issue where none of the usual solutions for I/O errors seemed to help. The app would load normally when reloaded manually, but not when a reload was triggered via QMC. Didn't even cross my mind it could be the .SHARED and .OLDFILE in the same folder. These files probably became corrupt when the server crashed during a scheduled reload of the app, so it's purely coincidental that it was this particular application that was affected.

I moved the files to another folder and the app now reloads normally via QMC.

Thanks Leslei! ldmello123


--

Error message to direct future Google searches here:

Exception when trying to move or delete file. System.IO.IOException: Cannot create a file when that file already exists. ||  ||    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

julianacampag
Creator
Creator

translated by Google

To solve the problem, I copied qvw to another folder and created a new task. It ran normally, with no errors. I then copied all the files (.qvw, .log, .Meta, .TShared) and replaced with the originals.
I ran the qvw again that was in error and worked.