Issues:
One user can’t receive email after being migrated to Exchange 2013 and senders receive bounce messages that contain “STOREDRV.Deliver.Exception:StoragePermanentException.MapiExceptionMaxObjsExceeded; Failed to process message due to a permanent exception with message Cannot set search criteria in SearchFolder.” Note: the entire bounce message can be found at end of this article).
Symtom’s:
- Application log error “StoragePermanentException: Cannot set search criteria in Search Folder…“:
- You may also observe that when the newly migrated user tries to reply to an email they get “Operation failed” error message.
Solution:
Working with a Microsoft Engineer we identified that the newly migrated user’s mailbox had a large
number of Search Folders, that the were originally created as temporary folders when the user was performing various searches. The Search Folders were not cleaned up automatically like they
should have been. Microsoft has a hard limit (8 or 80, I could not
understand for sure) and the user had 94. Microsoft instructed us to delete all of
them except the default one using the MFCMAPI tool. We then ran Outlook
with the /cleanfinders switch and then the problems seemed to disappear.
Previous attempted solutions:
Force AD Replication
open a command prompt in ‘run as administrator’ mode
type: repadmin /syncall
Secondary Solutions for good measure:
1) Restart Exchange Transport Service
2) Run Mailbox repair:
New-MailboxRepairRequest -Mailbox john.recipient -CorruptionType ProvisionedFolder,SearchFolder,AggregateCounts,Folderview
note: you can add “-archive” if the user has a mailbox archive
Reference:
- Microsoft Article: https://support.microsoft.com/kb/2511897
- Entire bounce message:
Delivery has failed to these recipients or groups:
John Recipient (john.recipient@recipientcompany.com)
There’s a problem with the recipient’s mailbox. Please try resending the message. If the problem continues, please contact your helpdesk.
The following organization rejected your message: exch2013.recipientcompany.com.
Diagnostic information for administrators:
Generating server: exch2013.recipientcompany.com
john.recipient@recipientcompany.com
exch2013.recipientcompany.com
Remote Server returned ‘554 5.2.0 STOREDRV.Deliver.Exception:StoragePermanentException.MapiExceptionMaxObjsExceeded; Failed to process message due to a permanent exception with message Cannot set search criteria in SearchFolder. Try using fewer keywords at the same time, reducing the number of users in the From, To, Cc, and Bcc fields, and reducing the number of mailboxes that are searched at the same time. 16.55847:99000000, 17.43559:00000000E0000000000000000000000000000000, 20.52176:000F07832200103100000000, 20.50032:000F07839217000000000000, 255.23226:000F0783, 255.27962:30000000, 255.17082:E7040000, 0.27745:80030400, 4.21921:E7040000, 255.27962:FA000000, 255.1494:80030400, 4.65308:E7040000, 1.63016:30000000, 4.39640:E7040000, 5.10786:0000000031352E30302E303737352E3031303A6E736D6578636830320000000000000000, 255.1750:63683032, 0.26849:05060480, 255.21817:E7040000, 0.30353:05060480, 4.19089:E7040000, 0.18065:05060480, 4.26257:E7040000 [Stage: OnPromotedEvent][Agent: Conversations Processing Agent]’
Original message headers:
Received: from exch2007.recipientcompany.com (192.168.0.12) by
exch2013.recipientcompany.com (192.168.0.11) with Microsoft SMTP Server (TLS)
id 15.0.775.38; Wed, 19 Feb 2014 15:48:47 -0800
Received: from spamfilter.recipientcompany.com (192.168.0.252) by
email.recipientcompany.com (192.168.0.12) with Microsoft SMTP Server id
8.3.342.0; Wed, 19 Feb 2014 15:48:47 -0800
X-ASG-Debug-ID: 1392853726-034f140e2a73ff20001-llp0Fa
Received: from mail.senderdomain.com (mail.senderdomain.com [173.11.12.62]) by
spamfilter.recipientcompany.com with ESMTP id 19J4DNqoA2mVPBBY; Wed, 19 Feb 2014
15:48:46 -0800 (PST)
X-SpamFilter-Envelope-From: sender@senderdomain.com
X-SpamFilter-Apparent-Source-IP: 173.11.12.62
Received: from server.senderdomain.com ([::1]) by server.senderdomain.com
([::1]) with mapi id 14.03.0123.003; Wed, 19 Feb 2014 15:48:46 -0800
From: Bob Sender <sender@senderdomain.com>
To: John Recipient <john.recipient@recipientcompany.com>
Subject: Re: Test message, are you receiving my emails?
Thread-Topic: Test message, are you receiving my emails?
X-ASG-Orig-Subj: Re: Test message, are you receiving my emails?
Thread-Index: Ac8tzI3ct1u2nsalT2Cu5YTHcCT6KwAQ6G+A
Date: Wed, 19 Feb 2014 23:48:45 +0000
Message-ID: <B64769A7-E82B-492D-862C-16C047DD9CE9@senderdomain.com>
References: <c6227b96407f4e56a679d9528459a7b1@exch2013.recipientcompany.com>
In-Reply-To: <c6227b96407f4e56a679d9528459a7b1@exch2013.recipientcompany.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.10.1.135]
Content-Type: multipart/alternative;
boundary=”_000_B64769A7E82B492D862C16C047DD9CE9senderdomaincom_”
MIME-Version: 1.0
X-SpamFilter-Connect: server.senderdomain.com[173.11.12.62]
X-SpamFilter-Start-Time: 1392853726
X-SpamFilter-URL: https://192.168.0.252:8000/cgi-mod/mark.cgi
Received-SPF: pass (recipientdomain.com: domain of sender@senderdomain.com designates 173.11.12.62 as permitted sender)
X-Virus-Scanned: by bsmtpd at recipientdomain.com
X-SpamFilter-BRTS-Status: 1
X-SpamFilter-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210
X-SpamFilter-Spam-Score: -2.02
X-SpamFilter-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=2.5 QUARANTINE_LEVEL=3.5 KILL_LEVEL=5.0 tests=HTML_MESSAGE
X-SpamFilter-Spam-Report: Code version 3.2, rules version 3.2.2.145296
Rule breakdown below
pts rule name description
—- ———————- ————————————————–
0.00 HTML_MESSAGE BODY: HTML included in message
Return-Path: sender@senderdomain.com
Reporting-MTA: dns;exch2013.recipientcompany.com
Received-From-MTA: dns;exch2007.recipientcompany.com
Arrival-Date: Wed, 19 Feb 2014 23:48:47 +0000
Final-Recipient: rfc822;john.recipient@recipientcompany.com
Action: failed
Status: 5.2.0
Diagnostic-Code: smtp;554 5.2.0 STOREDRV.Deliver.Exception:StoragePermanentException.MapiExceptionMaxObjsExceeded; Failed to process message due to a permanent exception with message Cannot set search criteria in SearchFolder. Try using fewer keywords at the same time, reducing the number of users in the From, To, Cc, and Bcc fields, and reducing the number of mailboxes that are searched at the same time. 16.55847:99000000, 17.43559:00000000E0000000000000000000000000000000, 20.52176:000F07832200103100000000, 20.50032:000F07839217000000000000, 255.23226:000F0783, 255.27962:30000000, 255.17082:E7040000, 0.27745:80030400, 4.21921:E7040000, 255.27962:FA000000, 255.1494:80030400, 4.65308:E7040000, 1.63016:30000000, 4.39640:E7040000, 5.10786:0000000031352E30302E303737352E3031303A6E736D6578636830320000000000000000, 255.1750:63683032, 0.26849:05060480, 255.21817:E7040000, 0.30353:05060480, 4.19089:E7040000, 0.18065:05060480, 4.26257:E7040000 [Stage: OnPromotedEvent][Agent: Conversations Processing Agent]
Remote-MTA: dns;exch2013.recipientcompany.com
X-Display-Name: John Recipient