All articles
Guides6 min readEnlightPixel

How to Fix 'Path Too Long' and Invalid Characters Before a SharePoint / OneDrive Migration (Without Renaming Your Original Archive)

Direct answer: Before a SharePoint or OneDrive migration, check the intended destination path, review naming issues and test a shorter destination before renaming files. PathReady helps you review supported repairs and create a separate, content-verified local handoff copy with an old-to-new path map. Your original archive stays in place. The prepared copy still needs the migration tool's assessment and tenant checks; PathReady does not upload or certify a cloud migration.

Disclosure: EnlightPixel makes PathReady. This guide describes its documented Windows 11 x64, fixed local NTFS workflow.


1. Why SharePoint and OneDrive Migrations Fail Halfway Through Upload

An IT administrator, MSP or records manager preparing an archive for SharePoint Online or OneDrive for Business can encounter name or path errors during assessment or upload. Checking the destination before starting a large transfer helps separate naming problems from permissions, file types and other migration requirements.

That happens because local Windows NTFS volumes and Microsoft 365 cloud storage enforce fundamentally different naming and path rules:

  1. The 400-Character Relative URL Limit: In SharePoint Online and OneDrive, the entire decoded server-relative path—including the site name, document library name, destination subfolder hierarchy, and filename—cannot exceed 400 characters. Count the decoded destination prefix and the source-relative path, including separators and the filename. For example, a 100-character destination prefix plus a 310-character relative path totals 410 characters. A 210-character local path does not automatically exceed the service limit.
  2. Invalid Characters & Trailing Whitespace: Files created on macOS, Linux, or older SMB shares frequently contain characters (" * : < > ? |), leading/trailing spaces, or trailing periods that OneDrive and SharePoint may reject during assessment, upload or sync.
  3. Reserved Device & SharePoint System Names: Folders named forms at the library root, any path segment containing _vti_, or legacy device names (AUX, NUL, CON, PRN, COM1, LPT1) can require renaming or separate handling.

2. Why In-Place Bulk Renaming Is Dangerous for Production Archives

When facing a large list of blocked paths, teams can use:

  • Manual spreadsheet triage using SharePoint Migration Tool (SPMT) assessment or migration reports.
  • Generic regex/bulk rename utilities run directly against the live source archive.

Logs and spreadsheets can support a careful migration, and renaming tools can be used safely on a copy. The risk is changing the original archive without a reviewed plan and a record of the changes. If you shorten folder names directly on your source server, existing project links, indexes and references may no longer match the source tree. Keep a backup and check dependent documents; a path map does not rewrite links inside them. Worse, if you guess the wrong destination subfolder depth in SharePoint, you end up renaming hundreds of files that didn't actually need to change.


3. Step-by-Step: How to Prepare a Verified Microsoft 365 Handoff Copy with PathReady

PathReady (Windows 11 x64 · Local NTFS) is built for Microsoft 365 pre-flight preparation without renaming the original archive.

Step 1: Scan the Local Windows Folder Against Real Microsoft 365 Rules

Point PathReady at an ordinary fixed local NTFS source folder and confirm the destination interpretation. Copy a network-share archive to a supported local folder first; PathReady does not directly scan NAS, mapped drives or online-only cloud trees. Scanning and preparation run locally without uploading your files or collecting desktop usage telemetry. License activation is a separate connection or offline-certificate workflow. PathReady flags:

  • Over-length paths relative to your target SharePoint site and library URL
  • Invalid characters, trailing periods, and leading/trailing spaces
  • Reserved SharePoint/Windows names and collision risks

Step 2: Compare Destination Subfolders Before Renaming Anything

Before you shorten a single filename, use PathReady’s Destination Comparison against your saved scan:

  • Test whether placing the archive in a shallower target subfolder reduces the number of path-length issues. The effect depends on the archive and destination.
  • Identify high-leverage parent folders: when a deep folder name is too long, PathReady can suggest a parent-folder repair and show its effect on descendants. Some entries may still need individual changes or exclusions; review the remaining issues before approving the plan.

Step 3: Stage a Separate, Verified Local Handoff Copy

Instead of modifying your source folder, PathReady writes a separate local handoff copy:

  • PathReady leaves the original archive in place and applies reviewed changes to a new operation folder. The source is still read and checked; keep your normal backups.
  • PathReady records SHA-256 content-verification results for copied primary content and supported named streams. Inspect verified, excluded and unfinished entries. A local receipt is not a signed authenticity certificate or a substitute for a backup.

Step 4: Generate the Handoff Receipt & Old-to-New Path Map

Every PathReady preparation produces a complete Handoff Package:

  • Exact Old-to-New Path Receipt: A complete audit map showing every inventoried original path alongside its proposed or prepared destination path, with recorded inclusion and outcome status.
  • Recipient & Upload Instructions: Clear documentation for the team or client receiving the prepared folder.
  • Post-Handoff Recheck: You can recheck a supported local prepared copy against the saved receipt without access to the original source drive. This checks the local package, not the SharePoint tenant or remote upload.

4. Path Length & Naming Rule Quick-Reference Matrix

CheckWhat to reviewHow PathReady helps
Destination path lengthMicrosoft documents a 400-character decoded service-path limit; local sync paths and applications have additional limitsModels the described destination and offers a separate optional client-root warning budget
Names and componentsInvalid characters, reserved names, edge spaces/dots, component length and collisionsProposes supported repairs for review; reports unresolved or excluded scope
Source preservationRenaming can affect existing referencesApplies the approved plan to a separate local copy
Handoff evidenceDistinguish planned changes from completed copiesExports path maps, outcomes and recorded content checks

Windows' traditional MAX_PATH limit is 260 characters. Some APIs support extended paths up to approximately 32,767 characters, but enabling long paths does not update every application or change Microsoft's cloud limits. See Microsoft's Windows path guidance.

For the current rules, see Microsoft's naming restrictions and file path limits. Microsoft also documents COM0–COM9, LPT0–LPT9, .lock, desktop.ini and names beginning ~$. _vti_ is restricted within names, while forms is restricted at the library root. Check the relevant client and tenant policies as well as the destination path.


5. Frequently Asked Questions (FAQ)

Does PathReady rename or overwrite my original files?

No. PathReady never mutates your source archive in place. It prepares a separate verified local copy on your Windows 11 NTFS drive and records inventoried original/proposed paths and preparation outcomes.

Can I test PathReady for free before buying?

Yes. Scanning and destination planning are free within documented capacity, and the free tier lets you prepare up to 100 included files and 100 MiB of primary content per operation. PathReady Pro is a $49.00 one-time license for larger preparations within documented capacity. It is not an upload service. The base USD price and taxes are confirmed at checkout; see current plans.

Will a verified copy guarantee a successful upload?

No. Permissions, tenant settings, unsupported items, application links and other migration requirements still need review. PathReady does not migrate ACLs, rewrite document links or verify a remote upload. For tool selection, see PathReady vs. SPMT and Bulk Rename Utility.

Feature scope and sources checked 2 November 2026 against the current product documentation and linked Microsoft guidance.

Related articles