MedhaCloud
Link copied to clipboard!
Managed IT Support

SharePoint Document Library: Setup, Views & Limits

Sreenivasa Reddy G
Sreenivasa Reddy G
Founder & CEO
Aug 3, 20269 min read
24
SharePoint Document Library: Setup, Views & Limits

Our SharePoint server support team works in document libraries every day, and most of the tickets trace back to the same handful of settings and limits. This page documents the document library: what it is, how to create and configure one, columns, views, versioning, check-out, sync, and the service limits that cause errors when a library grows past them.

What a document library is

A document library is a container on a SharePoint site that stores files together with metadata about each file. Every SharePoint team site is created with one library named Documents; a site can hold more. A library is technically a specialized list where each item carries a file, which is why library limits and list limits are stated together in the service documentation. The distinctions that matter:

  • Library vs. list. A list stores rows of data (columns only, optional attachments up to 250 MB). A library stores files, and each file's row of metadata. If the content is files, use a library; attachments on list items are a workaround, not a filing system.
  • Library vs. folders. Folders live inside a library. A folder is one way to organize files within a library; metadata columns and views are the other. The choice between them is covered below.
  • Library vs. OneDrive. OneDrive is an individual user's personal library. Team files belong in a site library, where they survive the owner leaving. For background on the platform itself, see what is SharePoint.

Creating a document library

  1. Open the SharePoint site, select New on the site home page or from Site contents, then Document library.
  2. Choose Blank library, an existing library to copy the structure from, or a template.
  3. Enter a name. The name at creation time becomes part of the URL, so create with a short name (no spaces) and rename afterward if a longer display name is wanted; the rename changes the display name only, not the URL.
  4. Set whether the library appears in site navigation, then select Create.

Creation and settings pages are documented at Create a document library in SharePoint. Library-level settings (versioning, check-out, columns, views) are under the gear icon > Library settings.

Columns and metadata

Columns attach structured data to each file: status, client, document type, review date. Column types that come up most:

  • Choice — a fixed set of values (Draft / In review / Approved). Cheap to set up, filterable, no governance overhead.
  • Person or Group — resolves against the directory; used for owner or reviewer fields.
  • Managed metadata — values come from the term store, shared across sites; use when the same vocabulary must stay consistent tenant-wide, not for a single library.

Metadata vs. folders: metadata scales better. A file can carry several attributes at once, while a folder path encodes exactly one hierarchy, lengthens the file path (which has a hard limit, below), and hides files from anyone who guesses the hierarchy wrong. The working rule: use columns plus views for classification, and use folders where a permission boundary or the list view threshold requires physical partitioning.

Required columns gotcha: a column marked Required blocks saving until it has a value. Files uploaded by drag-and-drop, sync, or Teams arrive without the value and sit checked out or missing from views for other users until someone fills the column in. If a library receives files from sync or Teams, either avoid required columns or set a default value.

Views

A view is a saved combination of visible columns, filter, sort, and grouping. To create one: adjust columns and filters in the library, open the view dropdown (top right), and Save view as; or build it in Library settings > Create view. Views can filter (Status equals Approved), group (by client), and sort, and any view can be set as the default so every visitor lands on it. Personal views exist alongside public ones. Views are also the standard answer to large libraries: a filtered view over an indexed column returns results in a library far larger than what a flat listing can render.

Versioning

Versioning is on by default in SharePoint document libraries. Major versions (1.0, 2.0) are published copies; minor versions (0.1, 1.1) are drafts and are off unless enabled in Library settings > Versioning settings. The service supports up to 50,000 major and 511 minor versions per file, per the SharePoint limits page.

How many versions are kept is governed by version history limits, set at organization, site, or library level. New libraries historically defaulted to a 500-major-version count limit; Microsoft now also offers an Automatic setting that expires old versions based on age and activity rather than a fixed count, and recommends it as the default. Count limits, expiration limits, and trim jobs for existing versions are documented at version history limits for document libraries. Two behaviors worth knowing: versions trimmed by a limit or a trim job bypass the recycle bin and are unrecoverable, and items under a retention policy or eDiscovery hold ignore the library's version limits until the hold lifts.

Check-out and check-in

Check-out locks a file so only the person holding the check-out can save changes; others see the last checked-in version. It is optional per library (Versioning settings > Require check out) and off by default. With modern co-authoring, required check-out is usually the wrong setting for Office files — it blocks simultaneous editing, and files stuck checked out to a departed user are a recurring ticket. Use it only where single-writer control is a genuine requirement (controlled documents, records). A site owner can discard another user's check-out from the file's context menu or Manage files which have no checked in version in Library settings.

Sync to File Explorer

The Sync button in a library hands the library to the OneDrive sync client, which surfaces it in File Explorer under the organization name. Files On-Demand keeps files cloud-only until opened. Practical limits from restrictions and limitations in OneDrive and SharePoint and the service limits page:

  • Performance guidance: no more than 300,000 files in a single synced library, and the same 300,000 figure applies across all libraries a device syncs.
  • Libraries with information rights management (IRM) enabled do not sync; checked-out files and some column configurations also interfere.
  • Certain characters and names are invalid in synced paths, and the 400-character path limit (below) applies to the synced path as well.

Sharing: library level vs. item level

By default a library inherits the site's permissions. Sharing a single file or folder creates an exception scoped to that item; sharing the library, or granting access at the site, changes access for everything. Item-level sharing links accumulate quietly and are the usual source of permission sprawl — after roughly 100,000 items with a shared parent, permission inheritance can no longer be broken on the container at all, and the supported limit is 50,000 unique permission scopes per library (5,000 recommended). Inheritance, sharing links, and auditing access are covered in SharePoint permissions.

Limits that matter

All values from the official service limits and the large-lists documentation:

LimitValueWhat breaks
List view threshold5,000 items per view operationViews, filters, and sorts over non-indexed columns fail or return partial results once a query would touch more than 5,000 items. The library still stores the files; unindexed queries against it stop working.
Items per library30 million files and foldersHard storage ceiling per library. Long before it, unindexed views and permission changes degrade.
File upload size250 GB per fileUploads above this fail in the browser, sync client, and Teams alike.
File path length400 characters, decoded, including folder path and file nameDeeply nested folders with long names hit this; the file cannot be created, moved, or synced. Folder depth is the usual cause.
Unique permission scopes50,000 per library (5,000 recommended)Item-level sharing at scale; permission operations slow down, then fail.
Versions per file50,000 major / 511 minorRarely hit directly; version storage cost arrives first.

Working with large libraries

Strategies, from Microsoft's guidance on managing large lists and libraries:

  • Index the columns you filter on. A filtered view over an indexed column works past the 5,000-item threshold; SharePoint also creates some indexes automatically on modern lists. Indexes must exist before the library exceeds the threshold, or be added when the query volume allows.
  • Partition with folders where indexes are not enough. Keeping any single container under the threshold keeps every operation against it safe, at the cost of a hierarchy.
  • Keep the structure flat and rely on views. Metadata columns plus filtered, grouped default views give per-audience slices of one library without the path-length and discoverability costs of deep folders.
  • Split libraries by permission boundary. One library per access group avoids item-level permission sprawl entirely.

Templates and content types

A content type bundles a document template with a set of columns and can be attached to multiple libraries, so a Contract created anywhere starts from the same Word template and carries the same metadata fields. Library templates (create a library from an existing one) copy structure within a site. Content types are the mechanism for standardizing document metadata across many sites; for a single library, plain columns and a default template in the Forms folder are sufficient and cheaper to maintain.

Common breakages

  • Threshold errors — "this view exceeds the list view threshold" on views, filters, or metadata changes in libraries past 5,000 items with no indexed columns.
  • Sync duplicates — files named Document-CopyDesktop-PC or similar appear when the sync client hits a conflict, a required column, or a checked-out file and cannot merge.
  • Files stuck checked out — required check-out plus a departed user, or drag-and-drop uploads into a library with required columns.
  • Path length failures — moves and syncs fail for files deep in nested folders once the decoded path passes 400 characters.
  • Permission sprawl — years of item-level sharing links; nobody can state who has access, and inheritance can no longer be reset on large containers.

When to hand it over

Library problems compound: a structure that worked at 2,000 files fails at 50,000, and the fixes (indexing, restructuring, permission resets) are harder after the fact. Our SharePoint support team handles library architecture, large-library remediation, permission cleanup, and SharePoint Server and Online administration as standard case types. An engineer is available on live chat 24/7.

Library throwing threshold errors or sync failures? SharePoint server support — indexing, restructuring, and permission cleanup handled by an engineer, not a script. Live chat is open 24/7.

Topics

sharepoint-document-librarysharepointmicrosoft-365
Sreenivasa Reddy G
Written by

Sreenivasa Reddy G

Founder & CEO15+ years

Sreenivasa Reddy is the Founder and CEO of Medha Cloud, recognized as "Startup of the Year 2024" by The CEO Magazine. With over 15 years of experience in cloud infrastructure and IT services, he leads the company's vision to deliver enterprise-grade cloud solutions to businesses worldwide.

Managed IT SupportCloud InfrastructureDigital Transformation
Follow on LinkedIn

Need Expert Help?

Our certified cloud and IT engineers are ready to tackle your toughest challenges — from migrations to managed services.