Link to home
Create AccountLog in
Avatar of micromark1
micromark1

asked on

Migrating public folders to exchange 2013

A little history first.  Last year we upgraded, (Migrated) from SBS 2003 to sbs 2011. All has went OK, but now we have outgrown our user limit and we are going to full fledged Exchange 2013, and a 2012 Domain controller.    I have a virtual environment setup now and I have got exchange 2013 installed and successfully moved some mailboxes over.  (not all of them).  Now I am practicing the Public Folder Migration.  Extremely important with this company as they get a lot of emails that go to public folders and they work out of them.  (Yes I know SharePoint would be better etc., but right now we cannot afford any downtime or different work flows.  It has to pretty much work the same for now).   Everything has went pretty well until now.  The mailboxes went fine and  I have gotten my information from 3 different sources so far.

http://technet.microsoft.com/en-us/library/jj150486(v=exchg.150).aspx
http://msexchangeguru.com/2013/04/18/exchange2013-public-folders/
and this was pretty helpful as well.

http://www.youtube.com/watch?v=ueODkbylNzY


My Problem is:  on step 5 of the first article.  It mentions that in exchange 2007 there are system public folders such as owa scratch pad etc that will make the migration fail, and to perform this.  
$PublicFolderDatabasesInOrg = @(Get-PublicFolderDatabase) $BadItemLimitCount = 5 + ($PublicFolderDatabasesInOrg.Count -1)

New-PublicFolderMigrationRequest -SourceDatabase (Get-PublicFolderDatabase -Server <Source server name>) -CSVData (Get-Content <Folder to mailbox map path> -Encoding Byte) -BadItemLimit $BadItemLimitCount

They have  a slightly different procedure if you are on exchange 2010 (which we are) but we also do have those legacy folders from the 2003 SBS migration.    
when I do the first command I get:

At line:1  char:59
+ $PublicFolderDatabasesInOrg  = @<Get-PublicFolderDatabase> $BadItemLimitCount =5
Unexpected Token '$BadItemLimitCount' in expression or statement.
Categrory Info     : ParserError:  <:> [], ParentContainsErrorRecordException
FullyQualifiedErrorId : UnexpectedToken


Not sure where to do from here and can't find anything on google etc.  Should I manually remove those legacy folders and then start over?  Not exactly sure that is why it is failing.
SOLUTION
Avatar of Amit
Amit
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of micromark1
micromark1

ASKER

Yes.. that is correct..  It will be in the same domain.   So it would be safe to just delete those folders?
I have been..  It fails,
at the point where I mention above,  I guess I will just manually remove the legacy system public folders before I try another migration.   I have included a screen shot.  Do you know which system public folders I should delete?  Or can I safely delete all of them?  Including the free busy?
exchange-legacy-system-folders.JPG
Yes remove it follow this
http://support.microsoft.com/kb/2866631

Update me back.
This is what I am getting below.  It queued up.. took a while before it gave me the failed message.  I have tried this exactly how the websites recommend. I also deleted the legacy system public folders left over from 2003, and I also deleted some of  the data, thinking I had too much data in my existing public folders to begin with.  wanted to make sure it was under 25Gig.     Thanks for your help

[PS] C:\Windows\system32>Get-PublicFolderMigrationRequest | Get-PublicFolderMigrationRequestStatistics -IncludeReport |
Format-List


RunspaceId                       : 62d97570-2787-48fe-81c9-f98dc66018f0
Name                             : PublicFolderMigration
Status                           : Failed
StatusDetail                     : FailedOther
SyncStage                        : CreatingFolderHierarchy
Flags                            : IntraOrg, Pull, Suspend, SuspendWhenReadyToComplete
RequestStyle                     : IntraOrg
Direction                        : Pull
Protect                          : False
Priority                         : Normal
Suspend                          : True
SourceVersion                    : Version 14.3 (Build 123.0)
SourceDatabase                   : Public Folder Database 0800352285
SourceServer                     : TIRSRV.TIRCORP.LOCAL
BatchName                        :
OutlookAnywhereHostName          :
RemoteCredentialUsername         :
AuthenticationMethod             : Basic
RemoteMailboxLegacyDN            :
RemoteMailboxServerLegacyDN      :
BadItemLimit                     : 0
BadItemsEncountered              : 0
LargeItemLimit                   : 0
LargeItemsEncountered            : 0
FolderToMailboxMap               : {\}
QueuedTimestamp                  : 7/11/2013 4:26:54 PM
StartTimestamp                   : 7/11/2013 4:52:47 PM
LastUpdateTimestamp              : 7/11/2013 4:52:54 PM
InitialSeedingCompletedTimestamp :
FinalSyncTimestamp               :
CompletionTimestamp              :
SuspendedTimestamp               :
OverallDuration                  : 15:22:58
TotalFinalizationDuration        :
TotalDataReplicationWaitDuration :
TotalSuspendedDuration           :
TotalFailedDuration              : 14:56:58
TotalQueuedDuration              : 00:25:46
TotalInProgressDuration          : 00:00:13
TotalStalledDueToCIDuration      :
TotalStalledDueToHADuration      :
TotalStalledDueToReadThrottle    :
TotalStalledDueToWriteThrottle   :
TotalStalledDueToReadCpu         :
TotalStalledDueToWriteCpu        :
TotalStalledDueToReadUnknown     :
TotalStalledDueToWriteUnknown    :
TotalTransientFailureDuration    :
TotalIdleDuration                : 00:00:03
MRSServerName                    :
EstimatedTransferSize            : 0 B (0 bytes)
EstimatedTransferItemCount       : 0
BytesTransferred                 : 3.919 KB (4,013 bytes)
BytesTransferredPerMinute        :
ItemsTransferred                 : 0
PercentComplete                  : 10
PositionInQueue                  :
PreventCompletion                : True
FailureCode                      : -2146233088
FailureType                      : DataValidationException
FailureSide                      : Target
Message                          : Error: The property value is invalid. The value can't contain leading or trailing
                                   whitespace.
FailureTimestamp                 : 7/11/2013 4:52:54 PM
IsValid                          : True
ValidationMessage                :
OrganizationId                   :
RequestGuid                      : 03f6d2d1-3b10-4a59-83ce-68cfa8ecba0b
RequestQueue                     : MAILATTCG
ExchangeGuid                     : e95a7b2b-4bd0-4a07-bc86-4fa79a98a3f9
Identity                         : RequestGuid (03f6d2d1-3b10-4a59-83ce-68cfa8ecba0b), RequestQueue:
                                   (906c333e-5f1d-4f05-b654-18a9a65c9a1f)
Report                           : 7/11/2013 4:26:52 PM [TIRMAIL] 'TIRCORP.LOCAL/Users/Microwebmark' created request.
                                   7/11/2013 4:52:44 PM [TIRMAIL] The Microsoft Exchange Mailbox Replication service
                                   'TIRMAIL.TIRCORP.LOCAL' (15.0.620.24 caps:3F) is examining the request.
                                   7/11/2013 4:52:44 PM [TIRMAIL] Connected to target mailbox
                                   'e95a7b2b-4bd0-4a07-bc86-4fa79a98a3f9', database 'MAILATTCG', Mailbox server
                                   'TIRMAIL.TIRCORP.LOCAL' Version 15.0 (Build 620.0), proxy server
                                   'TIRMAIL.TIRCORP.LOCAL' 15.0.620.24 caps:3FCB07FFFF.
                                   7/11/2013 4:52:44 PM [TIRMAIL] Connected to source mailbox '', database 'Public
                                   Folder Database 0800352285', Mailbox server 'TIRSRV.TIRCORP.LOCAL' Version 14.3
                                   (Build 123.0).
                                   7/11/2013 4:52:45 PM [TIRMAIL] Request processing started.
                                   7/11/2013 4:52:51 PM [TIRMAIL] Stage: CreatingFolderHierarchy. Percent complete: 10.
                                   7/11/2013 4:52:51 PM [TIRMAIL] Initializing folder hierarchy from mailbox '': 184
                                   folders total.
                                   7/11/2013 4:52:51 PM [TIRMAIL] Folder creation progress: 0 folders created in
                                   mailbox 'e95a7b2b-4bd0-4a07-bc86-4fa79a98a3f9'.
                                   7/11/2013 4:52:54 PM [TIRMAIL] Fatal error DataValidationException has occurred.

ObjectState                      : New
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I have opened up a case with Microsoft, but went ahead an awarded your points.  I believe the issue is going to be much more complex than what can be put in a forum.  Thanks and I'll update you when it gets fixed.  There were steps here that you helped me with and I thank you
Thanks for the points and update. Will wait for your final comments.