Error Code 80: The file exists

Get help for specific problems
Posts: 4
Joined: 8 Oct 2015

nwilkins83

Hi,

I am trying to copy files from a local drive to a network mapped drive.

I get an error stating "Error Code 80: The File exists. (CopyFileEx)"

I get this on random files at various points of using freefilesync through the week.

What could be causing this please?

Many Thanks
Posts: 4
Joined: 8 Oct 2015

nwilkins83

Error log:

Cannot copy file
"E:\Blah-Blah\ExecuteDxBCommonFunction.m" to
"X:\Blah-Blah\ExecuteDxBCommonFunction.m_9.ffs_tmp".

Error Code 80: The file exists. (CopyFileEx)
Posts: 4
Joined: 8 Oct 2015

nwilkins83

If you notice it is trying to copy a .m file but is having issues creating .m_ files?

these start off from .m.ffs_tmp through to .m_9.ffs_tmp ?
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

Sounds like the issue discussed here:
viewtopic.php?t=1592
Posts: 4
Joined: 8 Oct 2015

nwilkins83

That discussion does seem to cover my issue.. But doesnt really offer a fix?
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

Now that Windows 10 also exhibits this bug, chances are Microsoft will fix it at some point in time. Unfortunately it seems there's no way to report Windows bugs without paying for a support contract.
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

For the record, the workaround for the time being is to somehow remove the EA metadata from the specific files, e.g. copy them back and forth to a FAT drive.
Posts: 1
Joined: 20 Nov 2015

tieske-1114

I'm experiencing the same issue to. I'm running a Windows 7 in VMware Workstation, trying to backup on a Synology NAS.

I wrote my own program to do some testing, and it only seems to happen if CopyeFileEx is called with the COPY_FILE_FAIL_IF_EXISTS option. Is it possible to add a work around? E.g. if CopyFileEx fails, delete the file at destination side, and copy without the COPY_FILE_FAIL_IF_EXISTS option?

If you need more information or need some more testing, please let me know as the issue is very easy to reproduce here.
Posts: 1
Joined: 4 Oct 2016

pablo2119

Hi guys,

Last week I realized I have this error on 2 diferent scenarios, one over windows server, and another over WD Mycloud Storage.(by LAN)

Maybe this explanation from windows API can help??
stackoverflow.com/questions/20421599/failed-to-create-a-file-in-windows-using-createfile-api

Thanks in advance.
Pablo.