SharePoint Migration Tool errors
Most SharePoint Migration Tool (SPMT) errors come from one of four places: the account you signed in with (wrong credentials, or not a site collection admin), the site URL or source path you entered, the SPMT working folder on your own computer (files open in it, or too little disk space), or limits on the content itself (a path of 400 characters or more, a checked-out file, too many unique permissions). Open the task's reports, read the error code in ItemFailureReport.csv, and match it in the tables below.
SPMT is Microsoft's free tool for moving on-premises content into Microsoft 365. Microsoft: "SPMT supports migration from the following on-premises sources to SharePoint, OneDrive, and Teams:" SharePoint Server 2010, 2013, 2016 and 2019, SharePoint Foundation 2010 and 2013, and file shares. Microsoft also notes that "The SharePoint Migration Tool isn't available for users of Office 365 operated by 21Vianet in China." The messages and codes below come from Microsoft's article "Troubleshoot SharePoint Migration Tool".
| What you see | Most likely cause | Fix |
|---|---|---|
| "We are unable to connect to the site you provided" | The URL, or the account's access to the site | Open the site in a browser with the same account, and check the URL format |
| A credentials error, such as 0x0201000C, 0x02010018 or 0x02030001 | The sign-in failed | Re-enter your username and password, then restart the migration |
| 0x02010017 or 0x02010016 | The account is not a site collection admin | Make the account a site collection admin |
| 0x0204000A, 0x0204000D, 0x02050001 or 0x02080001 | Something is open in, or changed, the SPMT working folder | Close everything in %appdata%\Microsoft\MigrationToolStorage, then restart the migration |
| "Scan File Failure: Not enough disk space to pack the file" or 0x02040012 | The working folder's drive is too small | Free up or add space for the working folder |
| "Scan file failure: Target path is too long" | The full path is 400 characters or more | Shorten folder or file names on the source |
| 0x0131000F | "File is checked out" | Check the file in on the source |
| 0x0111000A | "File size exceeds limit" | Check the file size against SPMT's limit |
| 0x02030003 | Too many items with unique permissions | Reduce the number of unique permissions |
Find the error code
SPMT writes reports for every task. Microsoft: "The SharePoint Migration Tool (SPMT) generates log files, summary reports, and task level reports."
- While a migration is running or after it finishes, select View reports on the task. Microsoft: "A file folder opens, listing the task-level reports generated for that specific task."
- Open ItemFailureReport.csv. Microsoft describes it as "The failure report at the item level. This report is a filtered version of the files report, showing only failures."
- Read the Error code column ("The failed reason error code.") and the Message column ("A detailed error or informational message.") for each failed item.
- After migration completes, select Migration details for the summary reports. FailureSummary.csv "is created only when failures or errors happen during the migration process."
Look up the code in the tables below. Several codes cover more than one message, so read the Message column as well.
Common error messages
| Message | What Microsoft says to do |
|---|---|
| "We are unable to connect to the site you provided" | "Check if the list exists or if you can access it in the source site and target site from your computer. Confirm you're signed into SPMT with an account that has access to the site. Confirm the URL you entered is correct and follows the proper format." |
| "Invalid source folder" | Confirm the path is correct and in the proper format, and that the person running SPMT has read access to the folder. |
| "The site cannot be created or updated" | "Confirm you have permissions to create the site and that the URL is valid. If the site exists, confirm you're the site collection administrator. If it still fails, create the site manually and point the migration tool to this newly created site." |
| "Scan file failure: The folder name is invalid" | Check the name against Microsoft's article "Invalid file names and file types in OneDrive and SharePoint". |
| "Scan file failure: Target path is too long" | "The entire path, including the file name, must contain fewer than 400 characters" |
| "Scan File Failure: Not enough disk space to pack the file" | "The disk space available for the migration working folder is too small for the size of your source file." Enlarge the working folder and try again. |
| "Packaging failure: Cannot open file" | "The packaging failed due to a nonexistent source. Check if you can access the source root folder." |
| "A duplicate task has already been created." | "The CSV file used to do bulk migration can't have duplicate entries. Remove the duplicate lines and try again." |
| "The parent folder was not migrated" | All items under that folder failed with it. "Check your parent folder and retry your migration." |
| "Task #, parameter 1. The source path should not be empty" | "Confirm that the source path column in the CSV file has a value." |
| "Task #, parameter 4. The target URL is an invalid URL" | "Confirm that the target url column in the CSV file has a value and is valid." |
| "Task #, parameter 5. The target list should not be empty" | "Confirm that the target list column in the CSV file has a value." |
| "Admin permissions are required to migrate this content into OneDrive." | "Check that the account used to migrate content has permissions on the destination OneDrive." |
The three "Task #" messages come from bulk migration, where each line of the CSV file is one task.
Error codes: sign-in and permissions
| Code | What Microsoft says |
|---|---|
| 0x0201000C | "Check your credentials and then reenter your username and password." |
| 0x02010018 | "A problem occurred accessing SharePoint." Check your credentials, and also your network connection, the site URL and its format, or try opening the site in a browser. |
| 0x02030001 | "Check your credentials. Restart your migration." Some versions of the message add the network connection, the site URL or its format. |
| 0x02010017 | "You must be a site collection admin." |
| 0x02010016 | "We're unable to find your SharePoint Server user. Make sure you're a site collection admin." |
| 0x02010002 | "Check your network status. If you can access the source sites from a browser, then create a support case." |
| 0x02010006 | "The source SharePoint site doesn't have any defined role definitions. Check to see if your role exists when accessing source site." |
| 0x02010008 | "Confirm the path and format of the user mapping file and that you have permission to access it." |
SharePoint site collection administrator: add, remove and find covers how to add an account as a site collection admin in SharePoint in Microsoft 365.
Error codes: site URL, lists and site creation
| Code | What Microsoft says |
|---|---|
| 0X0201000F | "Invalid site URL. Check if the site URL is valid. Try to access the URL via a browser." |
| 0x0201000D | "Check if the list exists or if you can access it in the source site and target site." |
| 0x02060009 | The site collection can't be created because the URL is already in use, is invalid or contains an invalid character, or the site collection can't be created or updated. |
| 0x02060007 | The site collection can't be created because the URL is already in use, is invalid or contains an invalid character. |
| 0x02010023 | "Your source list template isn't supported. Try another." |
| 0x02010010 | "Make sure the source list and target list have the same template." |
| 0x0201000E | "Check if the global setting is filtering out special characters in the target path or if the path has unsupported characters." |
Error codes: the SPMT working folder
SPMT packages content on your computer before it uploads it. Microsoft: "SPMT caches the package on the working folder." Most of these codes have the same fix: close everything in %appdata%\Microsoft\MigrationToolStorage, leave it alone while the migration runs, and restart the migration.
| Code | What Microsoft says |
|---|---|
| 0x0204000A | "Can't create package file. All files and folders in the SPMT working folder, %appdata%\Microsoft\MigrationToolStorage, must be closed. Restart your migration." |
| 0x0204000D | "All files and folders in the SPMT working folder, %appdata%\Microsoft\MigrationToolStorage, must be closed during migration. Restart your migration." |
| 0x02040009 | "The package can't be created because the directory can't be found." Close everything in the working folder and restart. |
| 0x02050001 | Everything in the working folder must be closed, or "Local storage file is corrupted. The working folder was touched or modified during the migration. Retry your migration." |
| 0x02080001 | "The file in the package was changed or deleted while uploading." Close everything in the working folder and restart. |
| 0x02050008 | "Unable to access your local storage. Restart your migration." |
| 0x0207001 | "You do not have access to the task folder. Check if you can access %appdata%\Microsoft\MigrationToolStorage." Microsoft writes this code with seven digits. |
| 0x02040012 | "The temporary storage on your local computer is too low. SPMT caches the package on the working folder. Expand your temporary storage and retry." |
Error codes: the content being migrated
| Code | What Microsoft says |
|---|---|
| 0x0131000F | "Failed to Read the file. File is checked out." |
| 0x0111000A | "Scan File Failure: File size exceeds limit." Microsoft points to the SPMT release notes for current limits. |
| 0x02030003 | "There are too many items with unique permissions. Simplify your permissions list by reducing the number of unique permissions. Retry your migration." |
| 0x02010020 | "Disable migrating version history in SPMT settings or enable versioning in Microsoft 365's SharePoint." |
| 0x0131000D | "Couldn't get all list item versions." Microsoft: "This case is fixed in 4.x version." |
| 0x01410010 | "A failure occurred because of missing dependencies on list items." Check the failure report for details, and check that the dependencies are in your migration scope. |
On file size, the SPMT release notes for version 3.4.122.0 state: "File size up to 250 GB is now supported." That matches SharePoint's own per-file limit; SharePoint Online limits lists it with the others. For checked-out files, Microsoft gives only the cause; SharePoint 'locked for shared use' covers check-out and check-in in SharePoint in Microsoft 365.
Error codes: upload and server processing
| Code | What Microsoft says |
|---|---|
| 0x01510001 | "Packages failed to upload. If Azure Storage is customized, check if you can access the Azure Storage and check if you can access the target site. Try migrating again." |
| 0x02070009 | "Several packages failed to upload. Pause the task and check your network connection." |
| 0x01610001 | "The Azure container is expired. Retry migration task." |
| 0x01710009 | "A failure occurred due to job end failures; some items failed in the package. Restart migration." |
| 0x01710006 | "Errors or time-out for Server Processing the file: Job Fatal Error." |
| 0x01710004 | "Fail to look up folder name. The item may exist in other list or site in the same site collection. Or the item is in the recycle bin." |
For 0x01710004, check the target site collection's recycle bin for an item with the same name. SharePoint recycle bin covers where deleted items go and how to remove them for good.
Navigation, term store, web part and hub site errors
These come up when you migrate SharePoint Server sites rather than file shares.
| Error | Microsoft's cause | Microsoft's fix |
|---|---|---|
| "To update web navigation settings, you need the following permissions: Add and Customize Pages." | "The SharePoint account used for migration doesn't have permission to edit site navigation settings." | "Grant the "Add and Customize Pages" permission to this account." |
| "The navigation settings are highly customized. Currently it's not supported." | Navigation is migrated only if it matches a predefined template | Change the source to a predefined template under Site settings, Look and Feel, Navigation, or edit the setting on the target site by hand |
| "This navigation node contains an invalid URL: cannot find the object this URL points to." | The target of the link was deleted, moved, not migrated yet, or migrated in an earlier task with a different URL mapping | Use the same URL mapping across tasks, run another task for the missing objects, or create the node by hand |
| "Migrate term store failed due to permission issue." | "The user isn't a term store admin." | In the SharePoint admin center, select Classic features, then under Term store select Open, and add the account as a Term Store administrator |
| "Migration not supported web part" | "Currently, SPMT doesn't support this web part." | Check Microsoft's list of SPMT supported web parts |
| "Migration failed due to page being customized" | "SPMT currently doesn't support customized page migration." | "Restore the page's template page by using SharePoint Designer and restart your migration." |
| "Migration failed due to it is an unsafe web part and the server setting 'NoScript'" | With NoScript on in the target site, web parts that can run script are blocked | Turn off NoScript on the target site. Microsoft: "Your site may be at risk if you turn off the settings." |
| "Destination site associates with an existing hub, it cannot be changed during migration" | "SPMT doesn't change the association a destination site." | Change the hub association yourself; see SharePoint hub sites |
Scan warnings before you migrate
From SPMT 4.0, the tool includes a scan assessment of SharePoint Server content. Microsoft: "The scan assessment feature is available in SPMT 4.0 and higher." Four of its risk codes are about SharePoint limits:
| Scan code | What Microsoft says |
|---|---|
| ITEM_COUNT_EXCEED_LIMIT | "SharePoint can store up to 30 million items per list. If item count exceeds 30 million, migration fails." |
| UNIQUE_PERMISSION_EXCEED_LIMIT | "The supported limit of unique permissions for items in a list or library is 50,000. However, the recommended general limit is 5,000." |
| LIST_VIEW_EXCEED_LIMIT | "SharePoint on Microsoft 365 has a 5,000 list view limit. This threshold is a barrier of efficient searching but doesn't impact migration." |
| LIST_VIEW_LOOKUP_EXCEED_LIMIT | "Displaying or querying 12 or more columns of the following types can cause scan failure: people, lookup, and managed metadata." Increase List View Lookup Threshold under Resource Throttling for the web application in Central Administration. |
The 5,000 list view threshold does not stop a migration, but it applies once the content is in Microsoft 365. SharePoint list view threshold covers the errors it causes and the fixes.
SPMT won't install
Microsoft's install requirements:
| Item | Requirement |
|---|---|
| System architecture | "Must be x64." |
| .NET Framework | "Must be 4.6.2 or higher." |
| Microsoft Visual C++ 2015 Redistributable for X64 | SPMT includes it but "may miss some system DLLs. Separately installing the package might help to resolve all the dependencies." |
| Anti-virus | "Stop third party anti-virus software on your computer before installation." |
If you see "Application SharePoint Migration Tool is already installed from another location.", Microsoft says "An incomplete installation may be the cause of this error. Uninstall the tool and then reinstall." For other install problems, Microsoft suggests the public preview version of SPMT, which "contains the latest updates and fixes."
Frequently asked questions
Where do I find the SPMT error code?
Select View reports on the task and open ItemFailureReport.csv. The Error code column holds the code and the Message column holds the detail for each failed item. FailureSummary.csv, under Migration details, is created only when the migration had failures.
What is the SPMT working folder?
SPMT caches each package on your computer in %appdata%\Microsoft\MigrationToolStorage before uploading it. Many SPMT errors mean something in that folder was open, changed or deleted during the migration, or that the drive ran out of space. Close everything in the folder and restart the migration.
Why does SPMT say I must be a site collection admin?
Error 0x02010017 means the account needs to be a site collection admin. Microsoft also says that if the target site already exists, you must be its site collection administrator for SPMT to update it.
What is the path length limit for SPMT?
Microsoft states that the entire path, including the file name, must contain fewer than 400 characters. Longer paths fail with "Scan file failure: Target path is too long".
What is the largest file SPMT can migrate?
The SPMT release notes for version 3.4.122.0 state that file size up to 250 GB is supported. Larger files fail with 0x0111000A, "File size exceeds limit".
Why did a checked-out file fail to migrate?
Error 0x0131000F means SPMT failed to read the file because it is checked out. Check the file in on the source and migrate it again.
Does the 5,000 list view threshold stop a migration?
No. Microsoft states that the list view threshold doesn't impact migration. Lists over 30 million items do fail, and lists with more than 50,000 uniquely permissioned items are over the supported limit.
Which sources can SPMT migrate from?
SharePoint Server 2010, 2013, 2016 and 2019, SharePoint Foundation 2010 and 2013, and file shares, into SharePoint, OneDrive and Teams.
Related reading
- SharePoint Online limits: storage, files, versions - the file size, path and list limits migrated content has to fit.
- SharePoint site collection administrator: add, remove and find - the role SPMT needs on the target site.
- SharePoint list view threshold (5,000 items): errors and fixes - what large lists run into after migration.
- SharePoint 'locked for shared use': check out, check in and fixes - checked-out files and how to check them in.
- SharePoint hub sites - hub association, which SPMT does not change.
- Navigating the migration to SharePoint - what to plan before the move and after it.
Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.
More about SmiKar


