Link to home
Start Free TrialLog in
Avatar of mattai
mattaiFlag for United States of America

asked on

Error importing .PST files into Exchange 2010

Howdy!

I'm having some problems importing a test mailbox into my new exchange server.

I'm attempting to import a mailbox exported via Outlook 2010 from an Exchange 2003 server into a mailbox on an Exchange 2010 server. I keep getting the following error:

[PS] C:\Windows\system32>import-mailbox -identity user@domain.org -PSTFolderPath D:\PST-Backup\user\backup2010.p
st
Error was found for FirstName LastName (email@domain.org) because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219
    + CategoryInfo          : InvalidOperation: (0:Int32) [Import-Mailbox], RecipientTaskException
    + FullyQualifiedErrorId :
8F4C118D,Microsoft.Exchange.Management.RecipientTasks.ImportMailbox



RunspaceId                       : 791b211c-3d71-4b7f-b183-93a901c52115
Identity                         : domain.org/OU/OU_Users/FirstName LastName
DistinguishedName                : CN=FirstName LastName,OU=OU_Users,OU=OU,DC=domain,DC=org
DisplayName                      : FirstName LastName
Alias                            : FirstnameLastname
LegacyExchangeDN                 : /o=domain/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Firstname LastName
PrimarySmtpAddress               : email@domain.org
SourceServer                     :
SourceDatabase                   : Mailbox Database 2015113768
SourceGlobalCatalog              : SERVER
SourceDomainController           :
TargetGlobalCatalog              : SERVER
TargetDomainController           :
TargetMailbox                    :
TargetServer                     : SERVER.domain.org
TargetDatabase                   : Mailbox Database 2015113768
MailboxSize                      : 631.9 MB (662,578,176 bytes)
IsResourceMailbox                : False
SIDUsedInMatch                   :
SMTPProxies                      :
SourceManager                    :
SourceDirectReports              :
SourcePublicDelegates            :
SourcePublicDelegatesBL          :
SourceAltRecipient               :
SourceAltRecipientBL             :
SourceDeliverAndRedirect         :
MatchedTargetNTAccountDN         :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList            :
TargetNTAccountDNToCreate        :
TargetManager                    :
TargetDirectReports              :
TargetPublicDelegates            :
TargetPublicDelegatesBL          :
TargetAltRecipient               :
TargetAltRecipientBL             :
TargetDeliverAndRedirect         :
Options                          : Default
SourceForestCredential           :
TargetForestCredential           :
TargetFolder                     :
PSTFilePath                      : D:\PST-Backup\user\backup2010.pst
RecoveryMailboxGuid              :
RecoveryMailboxLegacyExchangeDN  :
RecoveryMailboxDisplayName       :
RecoveryDatabaseGuid             :
StandardMessagesDeleted          : 0
AssociatedMessagesDeleted        : 0
DumpsterMessagesDeleted          : 0
MoveType                         : Import
MoveStage                        : Validation
StartTime                        : 1/31/2010 2:39:01 PM
EndTime                          : 1/31/2010 2:39:02 PM
StatusCode                       : -2147221219
StatusMessage                    : Error occurred in the step: Approving object. An unknown error has occurred.
ReportFile                       : C:\Program Files\Microsoft\Exchange Server\V14\Logging\MigrationLogs\import-Mailbox2
                                   0100131-143901-8654359.xml
ServerName                       : SERVER.domain.org

I looked at the log, and it wasn't much help for me either ,as it pretty much said the same thing:

[01/31/2010 19:39:01.0865] [0] Executing Command: '        $scriptCmd = {& $wrappedCmd @PSBoundParameters }'
[01/31/2010 19:39:01.0865] [0] Trying to open registry key 'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE'.
[01/31/2010 19:39:01.0865] [0] The default value of the registry key is 'C:\PROGRA~1\Microsoft Office\Office14\OUTLOOK.EXE'.
[01/31/2010 19:39:01.0865] [0] The version of Outlook.exe is '14.0.4536.1000'.
[01/31/2010 19:39:01.0865] [0] Current ScopeSet is: {Domain Read Scope: {, }, Domain Write Scope(s): {, }, Configuration Scope: {, }, Server Configuration Scope(s): {, }, , Exclusive Scope: {, }}
[01/31/2010 19:39:01.0865] [0] Searching objects "email@domain.org" of type "ADUser" under the root "$null".
[01/31/2010 19:39:01.0865] [0] Previous operation run on global catalog server 'domainController.domain.org'.
[01/31/2010 19:39:01.0865] [0] Processing object "domain.org/OU/OU_Users/FirstName LastName".
[01/31/2010 19:39:01.0881] [0] Searching objects "Mailbox Database 2015113768" of type "MailboxDatabase" under the root "$null".
[01/31/2010 19:39:01.0881] [0] Previous operation run on domain controller 'domainController.domain.org'.
[01/31/2010 19:39:01.0896] [0] Searching objects "Mailbox Database 2015113768" of type "MailboxDatabase" under the root "$null".
[01/31/2010 19:39:01.0896] [0] Previous operation run on domain controller 'domainController.domain.org'.
[01/31/2010 19:39:01.0912] [0] Resolved current organization: .
[01/31/2010 19:39:01.0912] [0] Ending processing.
[01/31/2010 19:39:01.0912] [0] [MattChristy] The operation has started.
[01/31/2010 19:39:01.0912] [0] [MattChristy] Initializing MAPI; loading library.
[01/31/2010 19:39:01.0927] [0] [MattChristy] Approving object.
[01/31/2010 19:39:01.0974] [0] [MattChristy] Logging on to the MAPI profile.
[01/31/2010 19:39:02.0037] [0] [MattChristy] Opening Exchange mailbox.
[01/31/2010 19:39:02.0146] [0] [ERROR] Error was found for FirstName LastName (email@domain.org) because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219
[01/31/2010 19:39:02.0146] [0] [FirstNameLastname] The operation has finished.


I've read various articles on here and other sites about granting the user performing the import access rights (ex: https://www.experts-exchange.com/questions/24919623/Import-mailboxes-into-exhange-2010.html?sfQueryTermInfo=1+2147221219)

When I perform this step I get the following output:

[PS] C:\Windows\system32>Add-ADPermission "Mailbox Database 2015113768" -User Administrator -ExtendedRights Receive-As
Identity             User                 Deny  Inherited
--------             ----                 ----  ---------
Mailbox Database ... domain\Administrator False False


[PS] C:\Windows\system32>Add-ADPermission "Mailbox Database 2015113768" -User Administrator -ExtendedRights Send-As
Identity             User                 Deny  Inherited
--------             ----                 ----  ---------
Mailbox Database ... domain\Administrator False False

Any ideas? I'm kind of stumped. Thanks in advance for your help!
Avatar of farazhkhan
farazhkhan
Flag of Pakistan image

Hi,

It is saying as unknown error occurred, make sure you are following correct syntax and got the required permissions, check here:

http://technet.microsoft.com/en-us/library/bb629586.aspx

Also try to do it through GUI: http://www.howexchangeworks.com/2009/06/export-import-in-exchange-2010.html

Regards,
Faraz H. Khan
Avatar of mattai

ASKER

Thanks for the reply. As his article says, the GUI import/export features have been removed in the RC, so that isn't an option. His article:

https://www.experts-exchange.com/questions/25101690/Error-importing-PST-files-into-Exchange-2010.html?cid=1575&anchorAnswerId=26450083#a26450083

I followed the direcitons for adding the admin to the syntax New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “Rajith”

Curiously, I tried to export the 2010 mailbox and received the same error. I read at the bottom of the article in the comments that you had to wait 2 hours or restart the Information Store service. I decided to restart the service and I still have the same error.

ASKER CERTIFIED SOLUTION
Avatar of farazhkhan
farazhkhan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mattai

ASKER

Little more information, I ran the commands in debug:

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [?] Help (default is "Y"): y
VERBOSE: [21:08:48.882 GMT] Import-Mailbox : [FirstnameLastname] Approving object.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [?] Help (default is "Y"): y
VERBOSE: [21:08:51.627 GMT] Import-Mailbox : [FirstnameLastname] Logging on to the MAPI profile.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [?] Help (default is "Y"): y
VERBOSE: [21:08:54.748 GMT] Import-Mailbox : [FirstnameLastname] Opening Exchange mailbox.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [?] Help (default is "Y"): y

Confirm
Error was found for Firstname Lastname (email@domain.org) because: Error occurred in the step: Approving object. An
unknown error has occurred., error code: -2147221219
[Y] Yes  [A] Yes to All  [H] Halt Command  [?] Help (default is "Y"):



...it seems it's failed upon attempting to open the mailbox.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mattai

ASKER

As in set up outlook with the new exchange server and user mailbox and import the pst
file that way? No...
Thats where I was going with it. Try that way, I realize this would not be an ideal way for hundreds of clients, but just to test a couple would be easy.
Avatar of mattai

ASKER

I've tried just about everything.  the one article (http://www.korneel.nl/?p=28) suggests it's a bug in 2010 that MS is working on. I'm likely to believe i've fallen into the same scenario. The article suggests setting up an alternate server and doing a move back and forth. My office has 25 people in it and I think that's a waste of time.

I've also tried MCSA2003's suggestion and granted Admin full rights to the mailbox in question, and pulled the PST file in through outlook. That worked okay, but it left me with 2 sets of contacts and calendars. I was able to just consolidate them manually into one, but kind of a pain.

bottom line: overall it's not a big deal for me to do this migration manually using outlook and moving the data. Obviously if I was in a large organization I'd set up the server and do it the other way. in the amount of time it'd take me to set up and configure a new server I can have the mailboxes done.

I gave you guys both partial credit since one of you pointed me to the article that stated it was a bug, and the other suggested another manual way of importing the mailboxes.

thanks guys.

Avatar of mattai

ASKER

MS Bug-- see this article:

http://www.korneel.nl/?p=28