November 10, 2011

Quick Tip– Error –2147221219 Occurred in Step: Approving Object during Exchange 2007 Export-Mailbox Session…

Whilst writing a script for a larger post today I came across the above error.
In essence, every time that I tried to use the Export-Mailbox cmdlet it would terminate and not finish the export operation.

Reviewing the log file (which is located in <Exchange Binary Root>\Logging\MigrationLogs) I would see the following information:

[10/11/2011 14:18:33] [0] Executing Command: 'Export-Mailbox ana.hayes -PSTFolderPath X:\psts -ReportFile x:\test.txt'
[10/11/2011 14:18:33] [0] Trying to open registry key 'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE'.
[10/11/2011 14:18:33] [0] The default value of the registry key is 'C:\PROGRA~1\Microsoft Office\Office12\OUTLOOK.EXE'.
[10/11/2011 14:18:33] [0] The version of Outlook.exe is '12.0.4518.1014'.
[10/11/2011 14:18:33] [0] Searching objects "ana.hayes" of type "ADUser" under the root "$null".
[10/11/2011 14:18:33] [0] Previous operation run on global catalog server 'prod-ex27dc-01.ethan.local'.
[10/11/2011 14:18:33] [0] Processing object "ethan.local/ExchangeUsers/Ana.Hayes".
[10/11/2011 14:18:33] [0] Searching objects "prod-ex27dc-01" of type "Server" under the root "$null".
[10/11/2011 14:18:33] [0] Previous operation run on domain controller 'prod-ex27dc-01.ethan.local'.
[10/11/2011 14:18:33] [0] Searching objects "PROD-EX27DC-01\First Storage Group\Mailbox Database" of type "MailboxDatabase" under the root "$null".
[10/11/2011 14:18:33] [0] Previous operation run on domain controller 'prod-ex27dc-01.ethan.local'.
[10/11/2011 14:18:34] [0] Ending processing.
[10/11/2011 14:18:34] [0] [Ana.Hayes] The operation has started.
[10/11/2011 14:18:34] [0] [Ana.Hayes] Initializing MAPI, loading library.
[10/11/2011 14:18:35] [0] [Ana.Hayes] Approving object.
[10/11/2011 14:18:35] [0] [Ana.Hayes] Logging on to the MAPI profile.
[10/11/2011 14:18:35] [0] [Ana.Hayes] Opening Exchange mailbox.
[10/11/2011 14:18:35] [0] [ERROR] Error was found for Ana Hayes ([email protected]) because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219
[10/11/2011 14:18:35] [0] [Ana.Hayes] The operation has finished.

Investigating the cause of the error using Google revealed nothing of any real value.

I pondered for a while about this and surmised that this error was perhaps down to the fact that the source mailbox that I was trying to export to PST had no items within it  – as I was working in my lab.

I sent a single item to the mailbox and attempted to try the export again – and this time it worked.

So, the moral of the story is that one cause of the “Unknown Error” (which I am assuming is a generic “don’t know what the heck happened” error code) is that the mailbox that you are trying to export is empty or has not been logged into before.

SHARE:
Exchange 2007 Articles One Reply to “Quick Tip– Error –2147221219 Occurred in Step: Approving Object during Exchange 2007 Export-Mailbox Session…”
Andy Grogan
Andy Grogan

COMMENTS

One comment on “Quick Tip– Error –2147221219 Occurred in Step: Approving Object during Exchange 2007 Export-Mailbox Session…

    Author’s gravatar

    Greetings – After receiving the same error, I added the mailbox to my profile list, restarted Outlook as the user in question – I was able to export the mailbox to a PST file very quickly – Restarted Outlook with my mailbox and imported the PST files as a data file – Interestingly, the inbox was blank, although I noted that there were many messages in the inbox when I exported it – I opened the user’s inbox as a shared folder and there were all the messages – I moved the inbox messages to the data file inbox and closed it – the PST file was now intact, unfortunately, I still do not know what caused the initial error as you stated in your introduction but at least there is an alternate method to export the mailbox to a PST file… Dave

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Do NOT follow this link or you will be banned from the site!
%d bloggers like this: