Cannot copy file
"C:\Users\User\OneDrive - XYZ\abc\signed.pdf" to
""C:\Users\User\OneDrive - ABC\abc\signed.pdf"".
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
Copying files from a one drive desktop sync folder to another folder.
Checked all permissions etc, it was working fine for about 3 years and now suddenly it is giving this error, haven't changed anything anywhere. Same access same details same permissions. If i uninstall the one drive client and reinstall it it works fine for a couple of times and then again gives the same error for all files.
Has something to do with the One drive folder functionality. Anyone else had the same issue please help.
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
- Posts: 6
- Joined: 22 Feb 2021
-
- Site Admin
- Posts: 7523
- Joined: 9 Dec 2007
Where are the double double quotes coming from?
- Posts: 6
- Joined: 22 Feb 2021
The double quotes are a typing error, please ignore it.
Cannot copy file
"C:\Users\User\OneDrive - XYZ\abc\signed.pdf" to
"C:\Users\User\OneDrive - ABC\abc\signed.pdf".
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
Cannot copy file
"C:\Users\User\OneDrive - XYZ\abc\signed.pdf" to
"C:\Users\User\OneDrive - ABC\abc\signed.pdf".
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
- Posts: 323
- Joined: 13 Apr 2017
Are you sure that the OneDrive base folders are "OneDrive - XYZ" and "One Drive - ABC" ?
Two different OneDrive accounts?
Two different OneDrive accounts?
- Posts: 4908
- Joined: 11 Jun 2019
Probably syncing a business and personal account. Unlink the destination account and set it back up
- Posts: 6
- Joined: 22 Feb 2021
Its the same One Drive Account ( Business ) Synching from one folder to another in the same one drive account. The one drive folder syncs to windows desktop local folder. The sync is setup from one local folder to another within this one drive sync folder (local) on windows. The same setup was working fine till last month. It has been working absolutely fine since last 1 year. This happens on a windows 10 machine. All of sudden this issue has come up. Same setup with same account and permission level ( and same folders synching) is installed on another machine running server 2016 and that works fine. Don't know what is wrong here. I have tried unlinking the destination and creating a new sync folder for one drive. The first iteration works fine. But if you run it again it just gives multiple errors. Please help
- Posts: 323
- Joined: 13 Apr 2017
If the sync setup is from two folders in the same OneDrive account why the OneDrive folder names you have given are different?
A typo?
Give us the true error message, censoring with more care, and telling us clearly what you have censored.
The Windows username under which you are running the sync is the same who own the OneDrive folder?
A typo?
Give us the true error message, censoring with more care, and telling us clearly what you have censored.
The Windows username under which you are running the sync is the same who own the OneDrive folder?
- Posts: 6
- Joined: 22 Feb 2021
Actual Error Message
Cannot copy file
"C:\Users\User\OneDrive - CRAE\TBR-CC\BB\2021\3. MARCH\RT\CW40.pdf" to
"C:\Users\User\OneDrive - CRAE\Main Data\BB\2021\3. MARCH\RT\CW40~3e6d.ffs_tmp".
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
The Windows Username is the same as who owns the OneDriver Folder. Only one user in the workstation.
Like i said before, the same setup was working for over a year and a half, stopped working all of a sudden. I am not sure if it was because of a windows update or something.
Cannot copy file
"C:\Users\User\OneDrive - CRAE\TBR-CC\BB\2021\3. MARCH\RT\CW40.pdf" to
"C:\Users\User\OneDrive - CRAE\Main Data\BB\2021\3. MARCH\RT\CW40~3e6d.ffs_tmp".
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
The Windows Username is the same as who owns the OneDriver Folder. Only one user in the workstation.
Like i said before, the same setup was working for over a year and a half, stopped working all of a sudden. I am not sure if it was because of a windows update or something.
- Posts: 323
- Joined: 13 Apr 2017
If you ignore this error does the sync go on and completes?
What antivirus is installed?
Windows Defender or something else?
Try a sync with the antivirus disabled.
What antivirus is installed?
Windows Defender or something else?
Try a sync with the antivirus disabled.
- Posts: 6
- Joined: 22 Feb 2021
If i ignore the error the sycn finishes with errors and no files are updated
I have Avast Free Antivirus. Have already tried disabling the antivirus, same error.
Windows Defender is Disabled
I have even reinstalled both filesync and onedrive clients, it syncs for the first time sucessfully. but when we do a second re-run, the error starts popping up. The Sync type is Update files in one folder, so it looks for changes in the source folder and updates the files in the destination folder.
Same setup for same configuration / account / onedrive profile / folders works fine on another machine which is running windows server 2016 when i tried.
I have Avast Free Antivirus. Have already tried disabling the antivirus, same error.
Windows Defender is Disabled
I have even reinstalled both filesync and onedrive clients, it syncs for the first time sucessfully. but when we do a second re-run, the error starts popping up. The Sync type is Update files in one folder, so it looks for changes in the source folder and updates the files in the destination folder.
Same setup for same configuration / account / onedrive profile / folders works fine on another machine which is running windows server 2016 when i tried.
- Posts: 6
- Joined: 22 Feb 2021
If fact even if i am trying to sync files from the one drive location to an network location external. that is also not happening
- Posts: 323
- Joined: 13 Apr 2017
Try this:
- unlink the OneDrive account
- delete completely or move elsewhere the "C:\Users\User\OneDrive" folder
- create "C:\Users\User\OneDrive" folder
- link the OneDrive account and be sure to connect to the "C:\Users\User\OneDrive" folder
- don't use the OneDrive option "Files On-Demand"
Save disk space with OneDrive Files On-Demand for Windows 10
- wait until OneDrive is synced
Retry the FFS sync.
- unlink the OneDrive account
- delete completely or move elsewhere the "C:\Users\User\OneDrive" folder
- create "C:\Users\User\OneDrive" folder
- link the OneDrive account and be sure to connect to the "C:\Users\User\OneDrive" folder
- don't use the OneDrive option "Files On-Demand"
Save disk space with OneDrive Files On-Demand for Windows 10
- wait until OneDrive is synced
Retry the FFS sync.
- Posts: 4908
- Joined: 11 Jun 2019
Since the errors seem to be coming from the source side, what are the permissions on those files in the source? Are they actually on the local drive, or just "on-demand"?
-
- Site Admin
- Posts: 7523
- Joined: 9 Dec 2007
I'd suggest running a Process Monitor trace: https://freefilesync.org/faq.php#trace
It's quite possible there's an interference with another program, e.g. AV, which updates threat signatures all the time, thous would explain why this problem occurs all of a sudden.
It's quite possible there's an interference with another program, e.g. AV, which updates threat signatures all the time, thous would explain why this problem occurs all of a sudden.
- Posts: 3
- Joined: 22 May 2026
ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]
I worked out how to fix it. Go to the root folder causing the error on the source drive.
Right click - [Properties] then [Security].
In Group or user names, mine didn't have "SYSTEM".
Click on [Edit] then [Add] and type "SYSTEM" in the empty box.
Click on [Check names] then [OK]
Click on "SYSTEM" and check the box for Allow Full control.
Click on [Apply] then [OK]
Then retry FreeFileSync
It worked for me, hopefully it works for you.
Let me know how you go.
A huge shout-out to the makers of FreeFileSync. One of the best and most useful programs there is.
Thanks so much.
By the way, I did not appreciate being called a spammer by your bot. Just because I added an email address. I did so because I genuinely want to know if this helped anyone. The message is quite offensive considering I wasted all my time typing this up when I could have just moved on.
I worked out how to fix it. Go to the root folder causing the error on the source drive.
Right click - [Properties] then [Security].
In Group or user names, mine didn't have "SYSTEM".
Click on [Edit] then [Add] and type "SYSTEM" in the empty box.
Click on [Check names] then [OK]
Click on "SYSTEM" and check the box for Allow Full control.
Click on [Apply] then [OK]
Then retry FreeFileSync
It worked for me, hopefully it works for you.
Let me know how you go.
A huge shout-out to the makers of FreeFileSync. One of the best and most useful programs there is.
Thanks so much.
By the way, I did not appreciate being called a spammer by your bot. Just because I added an email address. I did so because I genuinely want to know if this helped anyone. The message is quite offensive considering I wasted all my time typing this up when I could have just moved on.
-
- Posts: 2978
- Joined: 22 Aug 2012
@D.Affy
Apparently you run this FFS task as a scheduled task.
That information is nowhere found in your entries for this topic, but would have been very useful.
Obviously, the user under which credentials an FFS task is run must have read and/or write access to the locations involved in your sync.
By default, scheduled tasks are run as the SYSTEM user, so if that user does not have the proper access rights, your FFS sync can not run as intended.
Instead of giving the SYSTEM user access rights, you could simply have changed your scheduled task settings such that it runs under the credentials of a user (e.g. you) that has the proper access rights to the locations involved in your sync.
Apparently you run this FFS task as a scheduled task.
That information is nowhere found in your entries for this topic, but would have been very useful.
Obviously, the user under which credentials an FFS task is run must have read and/or write access to the locations involved in your sync.
By default, scheduled tasks are run as the SYSTEM user, so if that user does not have the proper access rights, your FFS sync can not run as intended.
Instead of giving the SYSTEM user access rights, you could simply have changed your scheduled task settings such that it runs under the credentials of a user (e.g. you) that has the proper access rights to the locations involved in your sync.
- Posts: 3
- Joined: 22 May 2026
I have no idea what you're talking about.
And "apparently" neither do you.
All I know is, I had a problem, I did as I described and now it's fixed.
And "apparently" neither do you.
All I know is, I had a problem, I did as I described and now it's fixed.
-
- Posts: 2978
- Joined: 22 Aug 2012
> And "apparently" neither do you.
What is that statement based on?
The fact that you don't understand what I wrote, does not mean I have no idea what I'm talking about.
Don't project your frustration about "apparently" being called a spammer on a volunteer that is trying to help you. In your own words: "The message is quite offensive considering I wasted all my time typing this up when I could have just moved on."
What is that statement based on?
The fact that you don't understand what I wrote, does not mean I have no idea what I'm talking about.
Don't project your frustration about "apparently" being called a spammer on a volunteer that is trying to help you. In your own words: "The message is quite offensive considering I wasted all my time typing this up when I could have just moved on."
- Posts: 3
- Joined: 22 May 2026
I based that statement on the fact that you assumed that I ran a scheduled task and then proceeded to give a complicated explanation on what I should have done to fix a problem I had already fixed and wanted to share.
It wasn't a person that accused me of being a spammer, it was the bot replying with a pre-filled message.
I did explain that in my post, but it seems you have not taken that into account. Again, another assumption.
I tried to delete my posts and my account, but it seems that's not possible.
So, if an administrator is reading this, please delete my profile and let me know when it's done.
Regards.
It wasn't a person that accused me of being a spammer, it was the bot replying with a pre-filled message.
I did explain that in my post, but it seems you have not taken that into account. Again, another assumption.
I tried to delete my posts and my account, but it seems that's not possible.
So, if an administrator is reading this, please delete my profile and let me know when it's done.
Regards.
- Posts: 1222
- Joined: 8 May 2006
> In Group or user names, mine didn't have "SYSTEM".
Have to assume that is atypical?
What pointed you to this fix?
> it was working fine for about 3 years and now suddenly it is giving this error, haven't changed anything anywhere
And that's odd too.
Might it have to do with onedrive itself, a change from their end?
If SYSTEM were removed, might Event Viewer have a log of that action?
If so, that might help point out why it happened?
Have to assume that is atypical?
What pointed you to this fix?
> it was working fine for about 3 years and now suddenly it is giving this error, haven't changed anything anywhere
And that's odd too.
Might it have to do with onedrive itself, a change from their end?
If SYSTEM were removed, might Event Viewer have a log of that action?
If so, that might help point out why it happened?