Google
Search WWW Search msexchangetips.blogspot.com

Thursday, August 23, 2012

MFCMAPI MAPI_W_PARTIAL_COMPLETION == 0x00040680

Ran into an interested case with a customer where his Exchange server crashed and the temp table kept regurgitating the queues. We attempted to delete the temp table using mfcmapi however we received the error below.

MAPI_W_PARTIAL_COMPLETION == 0x00040680

It appears to delete but if you close out and log back in to mfcmapi the temp table still shows with the messages. I surmised that the mailbox\database was corrupt as there was no way to delete this temp table nor the individual messages. We were then stuck as to how to delete the temp table since you can't delete the SMTP mailbox which was likely corrupt to do the server crash. Since this was an SBS server we didn't have the option of moving all our mailboxes to the other store since each store has it's unique SMTP mailbox. Our options were either to run a repair using eseutil or export to pst, delete the store than re-import. However there was a method to delete the SMTP AD object using adsiedit, which will than mark the SMTP mailbox as disconnected than create a new SMTP AD object which will create a new SMTP mailbox. Thanks to the link below which goes over deleting and recreating the AD object.

CN=Connections,CN=Organization Name,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Domain Name

Delete object  SMTP (ServerName-{GUID of Mailbox Store})

Then recreate.


http://www.alihassanlive.com/e2k3/2008/7/9/issues-with-smtp-mailbox.html


James Chong
MCITP EA EMA; MCSE M+, S+
Security+, Project+, ITIL
msexchangetips.blogspot.com

Msdeploy Source (contentPath) and destination (metaKey) are not compatible for...

When using msdeploy to migrate a site you receive the error below:

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:package
=c:\Sitewirefly.zip -dest:metakey=lm/w3svc/1

Error: Source (contentPath) and destination (metaKey) are not compatible for the
 given operation.
Error count: 1.

After spending some time troubleshooting, the root cause seems to just be a corrupt zip file. In my case my zip file is close to 7GB. After chasing a red herring on this particular error I tried opening the zip file and did not open. On windows 2003 there is a 2GB limitation or it gets corrupt. 2008 does not have this limitation. I tried using 7zip where does appear to zip and open, but when opening the zip file all the contents are 0 bytes. Winzip did not help even though there is no 2GB limit with the new editions after 9.0. As an alternative I just ended up using the archive method below.


C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:archive
dir=c:\site1archive,encryptpassword=mypassword -dest:metakey=lm/w3svc/3 > msdepl
oymigrate.log

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:archive
dir=c:\site1archive,encryptpassword=mypassword -dest:metakey=lm/w3svc/3 > msdepl
oymigrate.log


James Chong
MCITP EA EMA; MCSE M+, S+
Security+, Project+, ITIL
msexchangetips.blogspot.com

GAL photo not removing after removing thumbnail attribute

After importing a GAL picture using the command below:

Import-RecipientDataProperty -Identity "James Chong" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\jchong.jpg" -Encoding Byte -ReadCount 0))


The picture sucessfully shows in the GAL, after removing the picture GAL using cmd below or removing the thumbnail attribute using adsiedit the picture does not show in the GAL.

Set-Mailbox "James Chong" -RemovePicture

However I noticed that my picture was still showing in the social connector page in Outlook. After spending sometime trying to identify where AD was picking this up the picture I gave up. Then some days later, I was tinkering with my iphone and noticed my picture in the email so I clicked on it and there was an option to delete. After deleting the photo from my iphone the picture no longer shows in the outlook social connector. It seems that the iphone must have downloaed the pic when it was imported and started using the picture.


James Chong
MCITP EA EMA; MCSE M+, S+
Security+, Project+, ITIL
msexchangetips.blogspot.com
xml:lang="en" lang="en"> MS Exchange Tips: August 2012