There are several file types and keywords which are restricted on SharePoint online. Even if you are migrating content from any external source using SharePoint Migration Tool available for SharePoint Online or through any 3rd party migration tool on OneDrive or SharePoint Online document library,

I am sharing the list of all those Invalid characters, file names, types which are restricted on SharePoint Online and OneDrive for business.

Restrictions Details
Invalid characters If a file or folder contains any of the characters listed below, it may prevent files and folders from syncing. Rename the file or folder to remove these characters before you upload it: * : < > ? / \ |
Invalid file or folder names These names aren’t allowed for files or folders: . lock, CON, PRN, AUX, NUL, COM1 – COM9, LPT1 – LPT9, vti, desktop.ini, any filename starting with ~$.
Invalid or Restricted file types Microsoft recently removed the restriction on file types and now the invalid ore restricted file types can be uploaded to SharePoint Online document library Sync client using OneDrive sync client or any migration tool. These file types will not work until unless custom scripting is enabled on the site collection. .aspx, .asmx, .ascx, .master, .xap, .swf, .jar, .xsf, .htc
Network or mapped drives You can’t add a network or mapped drive as your OneDrive sync location. OneDrive doesn’t support symbolic links where the Link and Target are both located in the same library location.
Elevated privileges OneDrive can’t be run with elevated privileges.
Shared with Me You can’t synchronize the Shared with Me view grouping of files from a OneDrive for Business site.

Adnan is six time Microsoft MVP (Since 2015) with over 16 years of extensive experience with major expertise on SharePoint, SharePoint based development, Microsoft 365, Microsoft Teams, .Net Platform and Microsoft BI. He is currently working Sr Microsoft Consultant at Olive + Goose. He is MCT Regional Lead for Pakistan Chapter since 2012. He is working on SharePoint for past 12 years and worked on different intranet/intranet solutions for private & govt. sector majorly in United states and Gulf region and have experience of working with multiple Fortune 500 companies. He is a trainer, technology evangelist and also speaks in community forums.

Leave a Reply