The issue still relevant on Windows 11 - Operating system version 10.0.26200.7171
-
Re: NPP cannot save on Windows Onedrive
After updated of a Notepad++ v8.8.8 it cannot save files to users OneDrive and comes with elevation prompt.

files and folders are created with no issue and with build in notepad it works to save files on OneDrive just fine.
-
@KingRustamus said in The issue still relevant on Windows 11 - Operating system version 10.0.26200.7171:
Re: NPP cannot save on Windows Onedrive
After updated of a Notepad++ v8.8.8 it cannot save files to users OneDrive and comes with elevation prompt.

files and folders are created with no issue and with build in notepad it works to save files on OneDrive just fine.
This is a long shot, but does anything change if you go to Settings | Preferences… | MISC. and in the top left section change File Status Auto-Detection to Disabled?
-
@KingRustamus
Saving to OneDrive is not a problem for me with v8.8.8 but with 10.0.26200.7309. -
I’ve encountered such stuff before and it was caused by the Windows ransomware protection “Controlled folder access” in action. (build in Notepad.exe works in such a case because all the Microsoft own signed binaries have a build-in exception).
So check (try to set temporary off or add a new Notepad++.exe exception there) the Windows Settings > Privacy & Security > Windows Security > Virus & threat protection > Ransomware protection > Controlled folder access.
If it doesn’t help, I can prepare a testing build of the notepad++.exe binary showing us exact system error code (and it’s not the ERROR_ACCESS_DENIED for sure, otherwise in the v8.8.6+ you saw the UAC-elevation prompt 1st) leading to this SaveFailed N++ messagebox.