I use windows 8.1 and onedrive for business. I have a folder in my pc that sync with onedrive for business. Everytime I open a file that is stored in this folder, the lock file is created and onedrive popup a message “Name: .~lock.myfile.xlsx# / Error: the name or type isn’t allowed. Resolution: remove the item from your OndeDrive folder. For info…”.
The problem is invalid characters in file name: “~” and “#”.
This link explains these limitations for file name:
How can I get a solution for this invalid characteres?