SharePoint 2013 Foundation Migration to SPO

Michel AL HAYEK 187 Reputation points
2022-01-15T10:38:21.453+00:00

Hello everyone. I am trying to migrate SP13 Foundation (not SP13 Server one) to SPO using the SPMT tool but after logging in and updating the source URL a blank white screen appears and I cannot proceed. I tried also to do the migration using PowerShell or by CSV file but the same errors pops-up. Any idea?
165265-image.png

165247-image.png

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,316 Reputation points
    2022-01-17T03:20:56.683+00:00

    Hi @michelalhayek-6561 ,

    Please perform the following troubleshooting:

    1.Test with a Global Administrator account

    2.Please run the below script as an admin

    #Define SharePoint 2013 data source#  
    
    $Global:SourceSiteUrl = "https://YourOnPremSite/"  
    $Global:OnPremUserName = "Yourcomputer\administrator"  
    $Global:OnPremPassword = ConvertTo-SecureString -String "OnPremPassword" -AsPlainText -Force  
    $Global:SPCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Global:OnPremUserName, $Global:OnPremPassword  
    $Global:SourceListName = "SourceListName"  
    
    
    #Define SPO target#  
    $Global:SPOUrl = "https://contoso.sharepoint.com/sites/sitename"  
    $Global:UserName = "******@contoso.onmicrosoft.com"  
    $Global:PassWord = ConvertTo-SecureString -String "YourSPOPassword" -AsPlainText -Force  
    $Global:SPOCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Global:UserName, $Global:PassWord  
    $Global:TargetListName = "TargetListName"  
    
    #Define File Share data source#  
    #$Global:FileshareSource = "YourFileShareDataSource"  
    
    #Import SPMT Migration Module#  
    Import-Module Microsoft.SharePoint.MigrationTool.PowerShell  
    
    #Register the SPMT session with SPO credentials#  
    Register-SPMTMigration -SPOCredential $Global:SPOCredential -Force  
    
    #Add two tasks into the session. One is SharePoint migration task, and another is File Share migration task.#  
    Add-SPMTTask -SharePointSourceCredential $Global:SPCredential -SharePointSourceSiteUrl $Global:SourceSiteUrl  -TargetSiteUrl $Global:SPOUrl -MigrateAll  
    #Add-SPMTTask -FileShareSource $Global:FileshareSource -TargetSiteUrl $Global:SPOUrl -TargetList $Global:TargetListName  
    
    #Start Migration in the background.#  
    Start-SPMTMigration -NoShow  
    Show-SPMTMigration  
    

    3.Uninstall SPMT and delete all caches, then reinstall SPMT to test.

    caches:

    • C:\Users{account}\AppData\Roaming\Microsoft\MigrationTool

    165446-m1.jpg

    • C:{account}\spsetup\AppData\Roaming\Microsoft\MigrationToolStorage

    165541-m2.jpg

    Thanks,
    Echo Du

    ============================
    Updated Answer ========================

    Hi @michelalhayek-6561 ,

    According to your description, I have the following points to clarify:

    1.Modify/Rename those documents with long URLs to limit URLs to 255 characters. Note:The URL fields in a SharePoint list or library have a 255 character limit.

    2.It is recommended that you create a new site collection and then backup/restore the source site collection to this new blank site collection.

    Please follow the steps:

    1.Please run the below PowerShell to backup the source site collection

    Add-PSSnapin “Microsoft.SharePoint.PowerShell”  
    Backup-SPSite http://sp -Path C:\Backup\SP-Home.bak -UseSqlSnapshot  
    

    167156-tt1.jpg

    2.Create new site collection

    #Add-PSSnapin “Microsoft.SharePoint.PowerShell”  
    New-SPSite http://sp/sites/testsite -OwnerAlias "domain\username" -Language 1033 -Template STS#0  
    

    3.Restore the backup file to the new blank site collection
    Note: -Force will overwrite all the content of the original site, so it is recommended that you create a new site in advance to replace.

    #“SQL” is SQL Server name and "WSS_Content" is Datebase name  
    Restore-SPSite http://sp/sites/testsite -Path C:\Backup\SP-Home.bak -Force -DatabaseServer SQL -DatabaseName WSS_Content  
    

    167150-tt2.jpg

    4.Finally use the SPMT to migrate SharePoint 2013 Foundation site content(http://sp/sites/testsite) to SharePoint Online

    167231-tt3.jpg

    Thanks,
    Echo Du

    =======================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.