V3 Public preview bulk migrate with csv gets error source folder does not exist RRS feed

  • Question

  • So I'm attempting to use the V3 Public Preview edition to do bulk migrations with csv file, and getting errors that the source folder does not exist. Running the migration one at a time with gui works just fine. We have 250 or so subsites in on prim 2010 to migrate to SPO modern team site collections. Powershell I'm using follows. Any suggestions appreciated!

    Import-Module Microsoft.SharePoint.MigrationTool.PowerShell
    $Global:SourceSiteUrl = "http://hostnameurl/"
    $Global:OnPremUserName = "domain/adminusername"
    $Global:OnPremPassword = ConvertTo-SecureString -String "dummypassword" -AsPlainText -Force
    $Global:SPCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Global:OnPremUserName, $Global:OnPremPassword
    $Global:SourceListName = "SourceListName"
    #Load CSV;
    $csvItems = import-csv "C:\Users\SP_FarmAdmin\Documents\spmt.csv" -Header c1,c2,c3,c4,c5,c6
    ForEach ($item in $csvItems)
        Write-Host $item.c1
        Add-SPMTTask -FileShareSource $item.c1 -TargetSiteUrl $item.c4 -TargetList $item.c5 -TargetListRelativePath $item.c6
    #Two migration tasks are defined in the file of spmt.csv.
    #D:\MigrationTest\Files\Average_1M\c,,,,Documents,Test C:\work\Powershell\negative,,,,Documents,DocLibrary_SubfolderName
    #Code snippets for bulk migration by loading one JSON file:


    Thursday, July 25, 2019 1:24 PM