ERROR_ACCESS_DENIED: Access is denied. [CopyFileEx]

Get help for specific problems
cbuae
Posts: 2
Joined: 22 Feb 2021

Post by cbuae

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.
User avatar
Zenju
Site Admin
Posts: 5770
Joined: 9 Dec 2007

Post by Zenju

Where are the double double quotes coming from?
cbuae
Posts: 2
Joined: 22 Feb 2021

Post by cbuae

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]
Gianni1962
Posts: 250
Joined: 13 Apr 2017

Post by Gianni1962

Are you sure that the OneDrive base folders are "OneDrive - XYZ" and "One Drive - ABC" ?
Two different OneDrive accounts?
xCSxXenon
Posts: 916
Joined: 11 Jun 2019

Post by xCSxXenon

Probably syncing a business and personal account. Unlink the destination account and set it back up