Trying to create a migration batch as the following:
New-Migration Batch -Local -Name Batch1 -CSVData([System.IO.File]::ReadAllBytes("<csv file path>")) -TargetDatabase <database name>
Gives me the following error:
The operation couldn't be performed because object 'Batch1' coulnd't be found on Microsoft.Exchange.Data.Storage.MailboxSession
+ CategoryInfo: NotSpecified: (Batch1:MigrationBatchID) [New-MigrationBatch], ManagementObjectNotFoundException
+ FulllyQualifiedErrorID : 2BCEC4B6 ,Microsoft.Exchange.Management.Migration.NewMigrationBatch
+PSComputerName: <Ex2013 server name>
When I try submitting the batch using ECP, it shows the same error the first time. I click ok on the error message and click "New" again to try submitting the batch again, then it says "Error: The migration batch 'Batch1' already exists.
So I run Get-moverequest | where-object {$_.BatchName -eq "Batch1"} or Get-moverequest | where-object {$_.BatchName -eq "MigrationService:Batch1"}, it shows no moverequest that has "Batch1" as batch name. The ECP does not show any batch created under migration.
If I create individual move request (New-MoveRequest), mailbox migration works fine. But it's just submitting a batch that seems out of order...
Any help would be appreciated. Thanks!
me