export-mailbox to PST file: unknown error in approving object
-
Saturday, November 17, 2007 11:09 PM
Hi
I'm trying to validate export/import of PST files with Ex2K7 SP1.
I have this error during export-mailbox, and didn't find anything about it on the Net:
[PS] C:\Documents and Settings\Administrator>Export-Mailbox user01 -PSTFol
derPath C:\temp\Confirm
Are you sure you want to perform this action?
Exporting mailbox content from the mailbox 'user01' into .pst file
'C:\temp\user01.pst'. This operation may take a long time to complete.
Yes
Yes to All
No [L] No to All
Suspend [?] Help
(default is "Y"):
Export-Mailbox : Error was found for user01 (user01@mydomain.com
) because: Error occurred in the step: Approving object. An unknown error has o
ccurred., error code: -2147221241
At line:1 char:15
+ Export-Mailbox <<<< user01 -PSTFolderPath C:\temp\I'm doing test on one virtual machine hosting AD (win2K3SP2 En), Ex2k7SP1 En, Outlook 2007 Fr.
Could it come from the Outlook or user mailbox language ?
The mailbox have been "initiated", I opened it with OWA, select French language, self sent message. I also opened it with Outlook 2007 on the server.
Thanks.
All Replies
-
Thursday, December 06, 2007 9:43 AM
Hello,
I had the same issue after trying to do the export on server that had exchange 2003 installed.
I did a fixmapi command and the error disappeared.
It seems that the power shell takes the bad mapi dll to do the export.
Cordially
Elric Osmont
- Proposed As Answer by dlindsey Thursday, January 08, 2009 10:09 PM
-
Saturday, December 08, 2007 9:26 PM
Hello,
Thank you for your input. I just tested again on a new virtual lab, with Exchange 2007 SP1 release, and Outlook 2003 SP2, seems to work now. I will take back the previous config to see if the pb was coming from Outlook 2007, with your solution, but the lab never had Exchange 2003 installed on it.
-
Monday, December 17, 2007 8:34 AM
Dear Elric,
I have the same issue, can plz tell me how u use fixmapi command to fix this error.
Regards
-
Tuesday, December 18, 2007 5:29 PM
-
Wednesday, December 19, 2007 9:09 AM
Hello,
I just ran fixmapi without parameters at command line.
There is no outputs and it works immediately.
Regards,
Elric Osmont
-
Wednesday, January 02, 2008 12:50 AMThis just worked for me too - but can anyone explain what the command does? Thanks.
-
Saturday, January 05, 2008 11:26 AM
Hello,
Details u needed.
SUMMARY
The Fixmapi.exe tool is included with Internet Explorer 5 & above to detect and aid in resolving conflicts with Messaging Application Programming Interface (MAPI) files that may affect your ability to send and receive mail and faxes from other programs.FixMAPI ( What Exactly it does ?).....Makes a backup copy of the current copy of mapi32.dll on the client computer, and restores mapi32.dll with the MAPI stub library, mapistub.dll.
Quick Info
Exported by: mapistub.dll Called by: Client Implemented by: Windows DWORD STDAPICALLTYPE FixMAPI(void);Return Values
If the function succeeds, the return value is a non-zero value.
If the function fails, the return value is zero. To get extended error information, call the Microsoft Platform Software Development Kit (SDK) function, GetLastError.
Remarks
FixMAPI does not replace the current mapi32.dll file if the file is marked as read-only.
FixMAPI does not replace the current mapi32.dll if Microsoft Exchange Server is installed on the computer.
When FixMAPI makes a backup copy of the current copy of mapi32.dll on the computer, it assigns the backup copy a name different from "mapi32.dll". It then directs subsequent calls intended for that assembly to the backup copy
URL - > for u r more info. http://support.microsoft.com/kb/228457
-
Friday, March 28, 2008 3:03 PM
I am using an XP Machine with the Exchange Tools installed and I'm getting the "Error occurred in the step: Approving object. An unknown error has occurred", I ran "fixmapi" at a command line and hit enter and it goes to the next line. I then try "import-mailbox -identity <alias> -PSTFolderPath "c:\pstfilename.pst"" and get the same error.
Can you tell me what I'm doing wrong?
-
Monday, April 07, 2008 3:31 PMHello,
I experiment the same problem when I tried to export a user to PST.
I just resolved the problem.
I have this error even if the user is located on Exchange 2000 or Exchange 2007
To resolve the problem on the Exchange 2000.Go on the properties of each Exchange 2000 database, add a user or a group with the right : receive as and send as.
In Exchange 2007, for each mailbox database, tape this command:
Add-AdPermission -identity 'database_name' -AccessRights GenericAll -user 'Myuser'
Finally I can export a user to PST even if he is hosted in Exchange 2000 or in Exchange 20007
-
Tuesday, April 15, 2008 10:56 AMHello
I was only able to export a User Mailbox after giving myself "fullAccess" permissionsin the user mailbox:
Add-MailboxPermission -identity "user_to_export" -Accessrights FULLACCESS -User "admin_user"
After this I ran:
Get-mailbox "user_to_export" | Export-Mailbox -PSTFolderPath d:\mailboxpst
I already add Inherited permissions in this mailbox as a Exchange administrator but only after this I manage to succesfuly export a mailbox to a .pst file. -
Thursday, January 08, 2009 10:11 PMOh my god. I spent a better part of the day trying to fix this error. Elric thank you. I cannot believe it was that simple. What the hell would be so messed up to cause that?
open powershell. type fixmapi <enter>
run your export.
WOW, CMON microsoft thats some bs
Thanks
-
Thursday, September 03, 2009 7:31 PMFor what its worth, on my end this problem seemed to correlate to having Outlook open during the export. Must load a different MAPI DLL when it opens because as soon as I closed it, it started miraculously working again!
-
Thursday, November 18, 2010 6:53 PMThank you! I was running it on my workstation and having Outlook open was the problem.
-
Thursday, April 21, 2011 1:36 PM
This was the order of operations that worked for me:
Close Outlook
Run fixmapi at the PowerShell command prompt
Run Export-Mailbox command
-Jimmy
- Proposed As Answer by Jimmy Colorado Wednesday, May 11, 2011 7:36 PM
-
Thursday, May 12, 2011 6:27 AM
Guys, i know this my input is quite late but i experienced the same error while trying to restore a users PST in a recovery environment.I tried the FIXMAPI command, FULL ACCESS permissions on the mailbox all to no avail. I then tried to launch outlook to create a user profile and it gave me a hint by displaying the error "Your computer does not have a default gateway configured"
Believe it or not, after configuration of the gateway, the Export-Mailbox command worked like a charm :-)
It appears that lack of a default gateway can cause the error
Cheers!
-
Sunday, July 31, 2011 9:14 PM
Thanks Alngethee a lot. Your post did a magic. I spent around 1 hour to find the solution of the said error, tried every possibility but no vain. Actually I was using a test machine without any Gateway. Once configure the gateway with IP of DC, Export Command executed successfully.
Thanks again.
-
Saturday, December 10, 2011 4:42 AMJust confirming the fixmapi solution worked perfectly for me. Thanks!
-
Friday, February 10, 2012 4:15 PM
I got this error when trying to export to an admin network share ie \\exchserver\c$
Changed to C:\ and it worked.
-
Saturday, February 11, 2012 6:44 AMHello Moderator's please close this thread.
Gulab Prasad,
MCITP: Exchange Server 2010 | MCITP: Exchange Server 2007
MCITP: Lync Server 2010 | MCITP: Windows Server 2008
My Blog | Z-Hire Employee Provisioning App
Skype: Exchange.Ranger

