Error on Import-Mailbox
Hi! Trying to import at PST file to a user on my exchange server, but i get an error every time. Here is my setup: 1 exchange 2007 sp1 x64 server1 windows 2008 X86 server with the exchange management tools sp1 rollup 6 nd Outlook 2007 sp1 installed. Logged in as Administrator@domain.com (others also tried)Running following command in shell: [PS] C:\Windows\System32>import-mailbox -identity p1075 -pstfolderpath c:\pst
ConfirmAre you sure you want to perform this action?Importing mailbox content from .pst file 'c:\pst\P1075.pst' to mailbox 'NAME_OF_USER'. This operation may take a long time to complete.[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help(default is "Y"):yImport-Mailbox : Error was found forUSERNAME (name@domain.com)because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219At line:1 char:15+ import-mailbox <<<< -identity p1075 -pstfolderpath c:\pst
Identity : xxx.eu/COMPANY/Users/NAME_OF_USERDistinguishedName : CN=NAME _OF_USER,OU=Users,OU=COMPANY,DC= DOMAIN,DC=euDisplayName : NAME OF USERAlias : P1075LegacyExchangeDN : /o=DOMAIN/ou=Exchange Administrative Group (FY DIBOHF23SPDLT)/cn=Recipients/cn=P1075PrimarySmtpAddress : user@domain.comSourceServer :SourceDatabase : MAIL1\Third Storage Group\Mailbox DatabaseSourceGlobalCatalog : DC1SourceDomainController :TargetGlobalCatalog : DC1TargetDomainController :TargetMailbox :TargetServer : mail1.domain.euTargetDatabase : MAIL1\Third Storage Group\Mailbox DatabaseMailboxSize : 388881KBIsResourceMailbox : FalseSIDUsedInMatch :SMTPProxies :SourceManager :SourceDirectReports :SourcePublicDelegates :SourcePublicDelegatesBL :SourceAltRecipient :SourceAltRecipientBL :SourceDeliverAndRedirect :MatchedTargetNTAccountDN :IsMatchedNTAccountMailboxEnabled :MatchedContactsDNList :TargetNTAccountDNToCreate :TargetManager :TargetDirectReports :TargetPublicDelegates :TargetPublicDelegatesBL :TargetAltRecipient :TargetAltRecipientBL :TargetDeliverAndRedirect :Options : IncludeAssociatedMessagesSourceForestCredential :TargetForestCredential :TargetFolder :PSTFilePath : c:\pst\P1075.pstRsgMailboxGuid :RsgMailboxLegacyExchangeDN :RsgMailboxDisplayName :RsgDatabaseGuid :StandardMessagesDeleted : 0AssociatedMessagesDeleted : 0DumpsterMessagesDeleted : 0MoveType : ImportMoveStage : ValidationStartTime : 28-04-2009 14:39:50EndTime : 28-04-2009 14:39:52StatusCode : -2147221219StatusMessage : Error occurred in the step: Approving object . An unknown error has occurred.ReportFile : C:\Program Files\Microsoft\Exchange Server\L ogging\MigrationLogs\import-Mailbox20090428- 143944-4756073.xmlWhats wrong? :(
April 28th, 2009 4:34pm
Holger,Did you specify the value for -Identity correctly. The error seems to be due to a wrong value. You may also want to double check your procedure with the steps mentioned at http://technet.microsoft.com/en-us/library/bb691363.aspxMMilind Naphade | MCTS:M | http://www.msexchangegeek.com
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2009 5:20pm
Thanks for the reply; Yeah i have checked it, its the alias of the user. And it also finds it correctly, and gives me the name of the user as seen here: "Are you sure you want to perform this action?" Importing mailbox content from .pst file 'c:\pst\P1075.pst' to mailbox 'NAME_OF_USER'. This operation may take a long time to complete." I am awaiting your reply.
April 28th, 2009 5:31pm
In stead of spcifying the alias of the user try specifying primary email address of the user after -Identity and then make sure you have followed the steps recommeneded in article linked to you above. MMilind Naphade | MCTS:M | http://www.msexchangegeek.com
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2009 6:45pm
Holger,
What format is this PST file?
Can you open the PST in Outlook without issues?
Do you have the correct permission on the users mailbox to do an import?
Alot of times this happens due to corruption of the PST file, wrong format, or even a password set on the PST file itself. I would also double check your permissions to the users mailbox.Sr. Exchange Engineer - Constellation Energy
April 29th, 2009 5:42am
Issue description: Import-Mailbox cmdlet didnt work
Error: Approving object. An unknown error has occurred., error code: -2147221219
Check info:
1. Is there any related error info in the application log after reproduced the issue?
2. Does administrator has Full Access permission on the p1075s mailbox?
3. Please also check the other permissions of administrator. This account should be "exchange organization administrators", and in the local Administrators group in both exchange 2007 server and windows 2008 server as well
4. Please check the PST file as Aaron suggested
5. Have you used Exchange 2003 Migration Wizard to create PST file? By default, this method will create a random password for the PST file. If thats the case, please use Hotfix 896714 to generate the PST file without the password
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2009 6:24am
How's the issue now? Does it has been solved?
May 11th, 2009 6:49am
Could you install the RU7 on the client machine from where you running import-mailbox? Because majorly there are lots of issues being fixed in RU7Arun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2009 4:35am
Okay status:
Check info :
1. Is there any related error info in the application log after reproduced the issue? << No
2. Does administrator has Full Access permission on the p1075s mailbox?<< yes
3. Please also check the other permissions of administrator. This account should be "exchange organization administrators", and in the local Administrators group in both exchange 2007 server and windows 2008 server as well << This is done
4. Please check the PST file as Aaron suggested<< Checked, works fine on normal import
5. Have you used Exchange 2003 Migration Wizard to create PST file? By default, this method will create a random password for the PST file. If thats the case, please use Hotfix 896714 to generate the PST file without the password << Nope, havent.
Im gonna update my client machine to rollup package 7 today, and see if that solves some problems. Would i need also to apply the rollup to the server, or only to the client machine? Thanks for your help so far.
May 13th, 2009 10:26am
When i try to isntall rollup 7, it says its not needed because im running Sp1. Im running the management tools on a windows server 2008 with Management tools 2007 sp1.
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2009 11:07am
RU7 is going to be top of SP1 - Exchange 2007 SP1 + RU7 on the client 32bitArun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
May 13th, 2009 10:30pm
As suggested earlierIn stead of spcifying the alias of the user try specifying primary email address of the user after -Identity and then make sure you have followed the steps recommeneded in article linked to you above. Check the file system permissions on PST file as well. You should have correct permissions there.Move the destination mailbox from one store to another. Wait for replication to finish and import the PST.If none of above works, I would suggest deleting the mailbox and recreating it and then import the PST. If you look at the error message correctly it talks about an error during approval of object. It indicate a problem either with destination user account/mailbox or the permissions for the user account that is being used to import the PST. I presumed that you can import other PST files to other accounts without troubles.MMilind Naphade | MCTS:M | http://www.msexchangegeek.com
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2009 12:02am
Spent more time to research on this case, please troubleshoot the issue based on the following questions:
1. Quote: works fine on normal import
No jumped window asks for password, right?
2. In your first post, I saw theres a report file, can you check it and post the output for analyzing?
C:\Program Files\Microsoft\Exchange Server\Logging\MigrationLogs\import-Mailbox20090428-143944-4756073.xml
3. Please ensure that outlook is logged in using the same credentials as the Import-Mailbox PowerShell window
4. Please do not launch PowerShell under the Run As method. Instead log into Windows as the desired account with permission to the mailbox and launch PowerShell normally
5. Please refer my answer in this thread to verify your Rollup version on the exchange server and client
6. Please run a small test: In current exchange 2007 environment, use Export-Mailbox to generate a PST file, and use Import-Mailbox cmdlet to put the PST back to the mailbox
Notes: If this test is success, we can isolate the root cause to the PST file
Possible cause: Long inactive DC showing up in AD Sites and Services and had not had metadata cleaned up
Resolution: Use information from this article to clean inactive DC out of Active Directory
Resources:
The contents of .pst files are not imported into Exchange Server 2007 mailboxes when you use the Import-Mailbox cmdlet
May 14th, 2009 5:54am
Hello,Any update on this?Arun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2009 2:20am
Hello, I also have this problem with Exchange 2010 SP2 + Outlook 2010 (64bit). Try all above suggestions but not success. StatusCode : -2147221219 StatusMessage : Error occurred in the step: Approving object. An unknown error has occurred. Pls help on this. Anh VT
February 28th, 2010 1:39pm
Hi there,
Try importing the PST from a server/client machine running Outlook 2007 SP1 and above, it has worked for me after failed attempts to import the PST file when it was located on a XP machine with Outlook 2003, I moved the pst file to a
Win7 with Outlook 2007 SP2, ran the import-mailbox command from the XP (x86) machine with outlook 2003 installed and everything worked like a charm.
You can use UNC path in powershell directing to the PST file located on the target machine.
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2011 11:17pm