When you migrate files into Microsoft Teams, the files may end up in the wrong channel folder. Instead of appearing inside the correct channel’s Documents folder, they land in the root of the SharePoint document library that backs the team. This breaks team workflows and confuses users who expect files to be organized by channel. The root cause is a mismatch between the migration tool’s target path and Teams’ folder structure. This article explains why the problem occurs and provides a step-by-step fix to place files in the correct channel folder.
Key Takeaways: Correcting Channel Folder Paths in Teams Migration
- SharePoint site URL + /Shared Documents/Channel Name: The correct target path for channel files during migration.
- Teams channel folder name vs display name: The internal folder name may differ from the channel name shown in Teams.
- Migration tool mapping file: Use a CSV mapping file to explicitly define source-to-target paths and avoid root-level placement.
Why Teams Files End Up in the Wrong Folder
Microsoft Teams stores channel files in a SharePoint document library. Each channel has a dedicated folder inside the Shared Documents library. When you migrate files using tools like SharePoint Migration Tool, Mover, or third-party utilities, you must specify the exact target folder path. If you point the migration to the root of the document library or to the team’s default Documents folder, the files land outside any channel folder. The channel folder name is not always the same as the channel display name. Teams creates a folder with a shortened, URL-safe version of the channel name. For example, a channel named “Marketing Campaigns” creates a folder named “Marketing Campaigns” but with internal URL encoding. If the migration tool resolves the path incorrectly, files go to the wrong location.
How Teams Channel Folders Are Structured
Every Microsoft Team has an associated SharePoint site. The site contains a document library named Shared Documents. Inside Shared Documents, each channel gets a folder. The folder path looks like this:
/sites/YourTeam/Shared Documents/General for the default General channel.
/sites/YourTeam/Shared Documents/ChannelName for other channels.
The folder name matches the channel name but may include spaces. When you use a migration tool, you must supply the full relative path from the SharePoint site root to the channel folder. Many migration tools default to the document library root, which is why files land there.
Common Migration Tool Behavior
Most migration tools, including the SharePoint Migration Tool, require you to enter a destination URL. If you enter only the SharePoint site URL, the tool places files at the library root. If you enter a path that does not match an existing channel folder, the tool may create a new folder at the root instead of using the correct channel folder. The tool does not warn you about this mismatch. It simply completes the migration with files in the wrong place.
Steps to Migrate Files to the Correct Teams Channel Folder
Follow these steps to ensure your migration tool places files inside the intended channel folder. The steps assume you are using the SharePoint Migration Tool, but the logic applies to any migration tool.
- Identify the exact channel folder name in SharePoint
Open the SharePoint site associated with your team. Navigate to Shared Documents. Look for the folder that matches your channel. If you have a channel named “Project Alpha,” the folder will be named “Project Alpha” with spaces. Copy the relative path to this folder. For example:/sites/YourTeam/Shared Documents/Project Alpha. - Open the SharePoint Migration Tool
Launch the tool from the Microsoft 365 admin center or download it from the Microsoft Download Center. Sign in with a Global admin or SharePoint admin account. - Create a new migration task
Click Start and then Add source. Choose your source location, such as a network folder or local drive. After adding the source, click Add destination. - Enter the correct destination URL
In the destination field, paste the full URL to the channel folder. The URL must include the site path, Shared Documents, and the channel folder name. Example:https://contoso.sharepoint.com/sites/YourTeam/Shared Documents/Project Alpha. Do not leave out the channel folder name. - Run the migration
Click Start to begin the migration. The tool will place files directly into the specified channel folder. Monitor the progress in the tool’s dashboard. - Verify the files in Teams
Open Microsoft Teams, go to the channel, and click the Files tab. Confirm that the migrated files appear there. If they do not, check the SharePoint document library again for any misplaced files.
Using a CSV Mapping File for Bulk Migrations
For migrations involving multiple channels, use a CSV mapping file. This file defines each source path and its corresponding destination path. Create a CSV with two columns: Source and Destination. In the Destination column, enter the full SharePoint URL to each channel folder. The SharePoint Migration Tool supports this mapping file format. Upload the CSV when you create the migration task. This method reduces errors and ensures each channel’s files go to the correct folder.
What to Do If Files Already Landed in the Wrong Folder
If the migration already completed and files are in the wrong location, you must move them manually or use a script. Do not delete the misplaced files until you confirm they are moved correctly.
Move Files Using SharePoint Move To
- Open the SharePoint document library
Navigate to the site’s Shared Documents library where the files landed. - Select the misplaced files
Check the checkboxes next to the files that belong in a specific channel folder. - Click Move To
On the toolbar, click Move to and then Choose a new location. - Browse to the correct channel folder
Select the channel folder from the folder picker. Click Move here. SharePoint will move the files and update all metadata.
Move Files Using PowerShell
For large numbers of files, use the PnP PowerShell cmdlet Move-PnPFile. Connect to the SharePoint site, then run a command like this:
Move-PnPFile -SourceUrl "/sites/YourTeam/Shared Documents/WrongFolder/file.docx" -TargetUrl "/sites/YourTeam/Shared Documents/CorrectChannel/file.docx" -AllowSchemaMismatch -Force
Repeat for each file or use a loop to process multiple files.
Comparison of Migration Tools and Channel Folder Handling
| Item | SharePoint Migration Tool | Mover (now in SPMT) | Third-party tools |
|---|---|---|---|
| Default destination behavior | Places files at library root if path is incomplete | Same as SPMT | Varies; some create folders automatically |
| Supports CSV mapping | Yes | Yes | Most support CSV or JSON mapping |
| Folder name mismatch detection | No automatic detection | No automatic detection | Some tools warn if folder does not exist |
| Bulk channel migration | Requires CSV mapping | Requires CSV mapping | Often has channel discovery features |
Conclusion
You can now migrate files directly into the correct Teams channel folder by specifying the full SharePoint URL to that folder. Always verify the folder name in SharePoint before running the migration. For bulk migrations, use a CSV mapping file to avoid root-level placement. If files are already misplaced, use SharePoint Move To or PnP PowerShell to relocate them. Check the channel’s Files tab in Teams after migration to confirm success. This approach prevents workflow disruption and keeps your team organized.