Consequences of syncing libraries beyond the limits?

%3CLINGO-SUB%20id%3D%22lingo-sub-1874215%22%20slang%3D%22en-US%22%3EConsequences%20of%20syncing%20libraries%20beyond%20the%20limits%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1874215%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fservicedescriptions%2Fsharepoint-online-service-description%2Fsharepoint-online-limits%2C%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fservicedescriptions%2Fsharepoint-online-service-description%2Fsharepoint-online-limits%2C%3C%2FA%3E%26nbsp%3Bthere%20is%20a%20limit%20of%205%2C000%20items%20when%20syncing%20a%20SharePoint%20library%20using%20the%20OneDrive%20sync%20client.%20What%20isn't%20mentioned%20there%20is%20what%20happens%20when%20someone%20tries.%20We%20have%20a%20group%20whose%20Document%20library%20in%20their%20team%20site%20has%20over%2042%2C000%20items.%20Recently%2C%20one%20of%20the%20members%20of%20that%20group%20reported%20that%20files%20were%20being%20deleted%20by%20OneDrive.%20Sure%20enough%2C%20the%20Recycle%20bin%20in%20the%20site%20had%20thousands%20of%20entries%2C%20many%20duplicates%20of%20the%20same%20file%20apparently%20being%20deleted%20multiple%20times%20over%20the%20course%20of%20hours%20or%20days.%20I'm%20trying%20to%20piece%20together%20what%20happened%20(waiting%20for%20the%20admins%20to%20provide%20an%20audit%20log%20report).%20I%20didn't%20realize%20until%20after%20requesting%20that%20report%20that%20the%20library%20had%20so%20many%20files%20in%20it.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20does%20anyone%20know%20what%26nbsp%3B%3CEM%3Eactually%3C%2FEM%3E%20happens%20when%20someone%20tries%20to%20sync%20a%20library%20with%20more%20than%205%2C000%20items%3F%20I%20kind%20of%20assumed%20it%20would%20just%20stop%20and%20only%20sync%20the%20first%205%2C000%2C%20but%20don't%20know%20for%20sure.%20I'm%20using%20Power%20Automate%20to%20generate%20a%20really%20big%20library%20to%20test%20for%20myself%2C%20but%20if%20someone%20has%20already%20done%20that%2C%20I'd%20appreciate%20the%20feedback.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1874215%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1877174%22%20slang%3D%22en-US%22%3ERe%3A%20Consequences%20of%20syncing%20libraries%20beyond%20the%20limits%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1877174%22%20slang%3D%22en-US%22%3EWith%20the%20modern%20sync%20client%20(OneDrive.exe)%2C%20you%20can%20sync%20up%20to%20300K%20files%20in%20total%20across%20all%20libraries%2Fsites.%20The%20general%20recommendation%20isn't%20to%20exceed%20100K%20files%20in%20total%20for%20performance%20reasons%2C%20but%20you%20can%20absolutely%20synchronize%20%26gt%3B5K%20items%20in%20a%20single%20library.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20may%20want%20to%20investigate%20the%20unified%20audit%20log%20in%20the%20Compliance%20admin%20center%20to%20determine%20what%20happened%20with%20those%20files.%3C%2FLINGO-BODY%3E
Frequent Contributor

According to https://docs.microsoft.com/en-us/office365/servicedescriptions/sharepoint-online-service-description... there is a limit of 5,000 items when syncing a SharePoint library using the OneDrive sync client. What isn't mentioned there is what happens when someone tries. We have a group whose Document library in their team site has over 42,000 items. Recently, one of the members of that group reported that files were being deleted by OneDrive. Sure enough, the Recycle bin in the site had thousands of entries, many duplicates of the same file apparently being deleted multiple times over the course of hours or days. I'm trying to piece together what happened (waiting for the admins to provide an audit log report). I didn't realize until after requesting that report that the library had so many files in it. 

 

So, does anyone know what actually happens when someone tries to sync a library with more than 5,000 items? I kind of assumed it would just stop and only sync the first 5,000, but don't know for sure. I'm using Power Automate to generate a really big library to test for myself, but if someone has already done that, I'd appreciate the feedback.

2 Replies
With the modern sync client (OneDrive.exe), you can sync up to 300K files in total across all libraries/sites. The general recommendation isn't to exceed 100K files in total for performance reasons, but you can absolutely synchronize >5K items in a single library.

You may want to investigate the unified audit log in the Compliance admin center to determine what happened with those files.
Yeah, I'm waiting for one of our admins to pull the audit log report for me. I only have SPO admin access to our tenant. I know why they centralized everything, but really wish it were still possible to access the data from the site collection admin interface.