Quantcast
Channel: Exchange Server 2013 - Setup, Deployment, Updates, and Migration forum
Viewing all articles
Browse latest Browse all 7129

New-MigrationBatch -excludefolders fails claiming 'excludefolders' is not a parameter

$
0
0

Hi. I have been migrating users with no issue for awhile now. I finally ran into my first issue where an account will not migrate. When I look at the report for this user, I see this:

Regular Items: 921, 331.2 MB (347,243,378 bytes)
Regular Deleted Items: 155, 6.936 MB (7,273,005 bytes)
FAI Items: 76, 0 B (0 bytes)
FAI Deleted Items: 0, 0 B (0 bytes)
12/2/2014 3:00:40 PM [server01] Stage: FinalIncrementalSync. Percent complete: 95.
12/2/2014 3:00:40 PM [server01] Mailbox store finalization is complete.
12/2/2014 3:00:40 PM [server01] SessionStatistics updated.
12/2/2014 3:00:40 PM [server01] Verifying mailbox contents...
12/2/2014 3:00:45 PM [server01] A missing item was encountered: Missing Item (IPM.Note) Subject:"Fake Subject for sake of posting", Folder:"Deleted Items"

There were a lot of these entries and then this is the last part of the report:

12/2/2014 3:00:46 PM [server01] Mailbox contents verification complete: 64 folders, 978 items, 331.2 MB (347,240,561 bytes).
12/2/2014 3:00:46 PM [server01] Stage: FinalIncrementalSync. Percent complete: 95.
12/2/2014 3:00:46 PM [server01] Fatal error TooManyMissingItemsPermanentException has occurred.

I deleted the migration batch and recreated it. The same errors were seen. I don't know if there is a time frame where these messages will be fully deleted and no longer be attempted to be moved by future migration attempts. If so, how long do I wait until trying to migrate this user again?

Specifically to the title of this post, I attempted to create a migration request that would exclude the "Deleted Items" folder since all the failures were in that folder. I tried to create the migration batch using this command:

new-migrationbatch -name move1 -csvdata ([System.IO.File]::ReadAllBytes("C:\move1.csv")) -baditemlimit 100 -targetdatabases "db 1" -ExcludeFolders "Deleted Items"

I get this error when I try to create that migration batch:

[PS] C:\Windows\system32>new-migrationbatch -local -name move1 -csvdata ([System.IO.File]::ReadAllBytes("C:\move1.csv")) -baditemlimit 100 -targetdatabases "db 1" -excludefolders "Deleted Items"
A parameter cannot be found that matches parameter name 'excludefolders'.
    + CategoryInfo          : InvalidArgument: (:) [New-MigrationBatch], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,New-MigrationBatch
    + PSComputerName        : server01.domain.com

I looked at the documentation for New-MigrationBatch (http://technet.microsoft.com/en-us/library/jj219166%28v=exchg.150%29.aspx) and it says that -excludefolders is a parameter. Why cannot I not get a batch to create using this parameter?



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>