Need some advice on working with a large document library

%3CLINGO-SUB%20id%3D%22lingo-sub-1010663%22%20slang%3D%22en-US%22%3ENeed%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010663%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20are%20on%20SharePoint%20Online%2C%20and%20want%20to%20store%20an%20archive%20with%2050000%20PDF%20files%20in%20it.%20The%20library%20should%20be%20searchable%20on%20the%20document%20title.%20I%20already%20tried%20some%20things%20but%20I'm%20running%20into%20problems.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20storing%20all%20the%20documents%20in%20a%20single%2C%20separate%20library%20called%20archive.%20Before%20uploading%20I%20created%20an%20indexed%20column%20called%20documentTitle.%20I%20also%20created%20a%20Flow%20that%20triggers%20on%20document%20creation%2C%20and%20fills%20the%20documentTitle%20column%20with%20the%20document%20name.%20When%20I%20started%20uploading%2C%20this%20worked%2C%20but%20only%20for%20the%20first%20xx%20documents%20(I%20didn't%20count%20them).%20I%20guess%20I%20hit%20a%20SharePoint%20threshold%20limit%20with%20the%20Flow.%20No%20error%20messages%2C%20Flows%20are%20reported%20as%20successful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20the%20next%20day%20I%20created%20a%20flow%20that%20selects%20500%20documents%20with%20empty%20documentTitle%20column%20and%20fills%20the%20column.%20This%20worked%20for%202500%20documents.%20I%20thought%20I%20hit%20the%20same%20SharePoint%20threshold.%20On%20day%203%20I%20tried%20to%20rerun%20the%20flow%20of%20day%202%2C%20and%20although%20it%20states%20to%20be%20successful%2C%20nothing%20happens%20because%20SharePoint%20doens't%20return%20any%20documents%20with%20an%20empty%20documentTitle.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20none%20of%20the%20documents%20are%20returned%20when%20searching%20the%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20appears%20that%20you%20can't%20really%20work%20with%20libraries%20with%20more%20than%205000%20documents.%20I%20searched%20this%20community%20but%20didn't%20find%20a%20fitting%20answer%20to%20my%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERight%20now%2C%20I'm%20thinking%20of%20creating%20about%2030%20document%20libraries%2C%20by%20letter%20of%20afphabet%20and%20splitting%20the%20big%20letters%2C%20so%20that%20none%20of%20the%20libraries%20contain%20more%20than%205000%20documents.%20Since%20the%20archive%20grows%20every%20year%2C%20that%20would%20mean%20I'd%20have%20to%20shuffle%20the%20documents%20around%20what%20sounds%20like%20a%20nightmare...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20some%20advice%20for%20me%20on%20this%3F%20Something%20I%20haven't%20tried%20yet%3F%20How%20would%20you%20tackle%20this%3F%20Maybe%20a%20smarter%20way%20of%20splitting%20the%20documents%3F%20Any%20advice%20would%20be%20helpful!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1010663%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-1010699%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010699%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6831%22%20target%3D%22_blank%22%3E%40Jille%20Floridor%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20document%20libraries%20with%20250%2C000%20items%20in%20them.%20Search%20works%20fine%20if%20no%20folder%20has%20more%20than%205000%20items%20in%20it.%26nbsp%3B%20I%20am%20pretty%20sure%20this%20will%20work%20but%20worth%20testing%20on%20the%20first%20few%20letters%20but%20create%20a%20folder%20for%20each%20letter%20of%20the%20alphabet.%20We%20have%20also%20done%20that%20in%20another%20large%20document%20library.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1011332%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1011332%22%20slang%3D%22en-US%22%3EYeah%2C%20not%20sure%20why%20you%20are%20creating%20the%20other%20column%20and%20populating%2C%20the%20search%20should%20pull%20the%20file%20name%20as%20is%20from%20the%20name%20column.%20I%20do%20try%20to%20split%20my%20documents%20into%20sub%20folders%20by%20date%20as%20well%20but%20the%20libraries%20are%20made%20to%20handle%2030%20million%20documents%2C%20folders%20are%20not%20required.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1011473%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1011473%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20agree%20folders%20are%20not%20strictly%20required%20but%20if%20a%20view%20or%20Folder%20is%20returning%2Fhas%20more%20than%205000%20items%20(roughly)%20the%20following%20error%20is%20returned%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20344px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157407i8AEA079D1B4EBD03%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Something%20Went%20Wrong.PNG%22%20title%3D%22Something%20Went%20Wrong.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20haven't%20see%20it%20is%20possible%20to%20just%20have%2050%2C000%20files%20returned%20by%20the%20default%20%22All%20documents%22%20view%20without%20putting%20those%20files%20in%20folders%20or%20applying%20meta%20data%20to%20cut%20down%20what%20is%20returned.%26nbsp%3B%20I%20got%20this%20error%20by%20turning%20on%20%22Show%20items%20without%20folders%22%20in%20the%20view%20settings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1011484%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1011484%22%20slang%3D%22en-US%22%3EHmm%2C%20I%20have%20a%20library%20with%20well%20over%205000%20items%20and%20the%20no%20folder%20view%20works%20just%20fine.%20I%20do%20have%20a%20handful%20of%20indexes%20thou.%20Make%20sure%20that%20view%20does%20not%20have%20any%20filters%20applied.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1012482%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20some%20advice%20on%20working%20with%20a%20large%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1012482%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3Ban%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214649%22%20target%3D%22_blank%22%3E%40Andrew%20Hodges%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20replies!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20idea%20behind%20the%20additional%20columns%20was%20to%20use%20them%20for%20filtering%2C%20since%20search%20didn't%20return%20any%20results.%20I%20didn't%20mention%20I'm%20filling%20two%20more%20columns.%20I%20split%20the%20filename%20to%20fill%20a%20name%2C%20firstname%20and%20a%20date%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20going%20to%20create%20a%20set%20of%20folders%20and%20try%20and%20upload%20the%20files%20in%20those%20folders.%20See%20how%20that%20works%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi all

 

we are on SharePoint Online, and want to store an archive with 50000 PDF files in it. The library should be searchable on the document title. I already tried some things but I'm running into problems.

 

I tried storing all the documents in a single, separate library called archive. Before uploading I created an indexed column called documentTitle. I also created a Flow that triggers on document creation, and fills the documentTitle column with the document name. When I started uploading, this worked, but only for the first xx documents (I didn't count them). I guess I hit a SharePoint threshold limit with the Flow. No error messages, Flows are reported as successful.

 

So, the next day I created a flow that selects 500 documents with empty documentTitle column and fills the column. This worked for 2500 documents. I thought I hit the same SharePoint threshold. On day 3 I tried to rerun the flow of day 2, and although it states to be successful, nothing happens because SharePoint doens't return any documents with an empty documentTitle.

 

Also, none of the documents are returned when searching the site.

 

It appears that you can't really work with libraries with more than 5000 documents. I searched this community but didn't find a fitting answer to my problem.

 

Right now, I'm thinking of creating about 30 document libraries, by letter of afphabet and splitting the big letters, so that none of the libraries contain more than 5000 documents. Since the archive grows every year, that would mean I'd have to shuffle the documents around what sounds like a nightmare...

 

Do you have some advice for me on this? Something I haven't tried yet? How would you tackle this? Maybe a smarter way of splitting the documents? Any advice would be helpful!

5 Replies
Highlighted

Hi @Jille Floridor ,

 

We have document libraries with 250,000 items in them. Search works fine if no folder has more than 5000 items in it.  I am pretty sure this will work but worth testing on the first few letters but create a folder for each letter of the alphabet. We have also done that in another large document library. 

 

Andy

Highlighted
Yeah, not sure why you are creating the other column and populating, the search should pull the file name as is from the name column. I do try to split my documents into sub folders by date as well but the libraries are made to handle 30 million documents, folders are not required.

Hi @Chris Webb ,

 

I agree folders are not strictly required but if a view or Folder is returning/has more than 5000 items (roughly) the following error is returned - 

 

 

Something Went Wrong.PNG

I haven't see it is possible to just have 50,000 files returned by the default "All documents" view without putting those files in folders or applying meta data to cut down what is returned.  I got this error by turning on "Show items without folders" in the view settings.

Highlighted
Hmm, I have a library with well over 5000 items and the no folder view works just fine. I do have a handful of indexes thou. Make sure that view does not have any filters applied.
Highlighted

Hi @Chris Webb an @Andrew Hodges 

 

Thanks for your replies!

 

The idea behind the additional columns was to use them for filtering, since search didn't return any results. I didn't mention I'm filling two more columns. I split the filename to fill a name, firstname and a date column.

 

I'm going to create a set of folders and try and upload the files in those folders. See how that works out.