Closed
Bug 2033853
Opened 4 months ago
Closed 3 months ago
EWS: Unable to delete more than 1000 messages at a time on M365
Categories
(MailNews Core :: Networking: Exchange, defect, P1)
MailNews Core
Networking: Exchange
Tracking
(Not tracked)
RESOLVED
FIXED
152 Branch
People
(Reporter: edicharry, Assigned: edicharry)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Microsoft 365 appears to have a hard upper limit on the number of messages you can delete at once set to 1000. I don't know if this is a configurable property or if it's common across all Exchange servers, but either way, we need to break our delete requests up into batches somehow. Currently it manifests as a complete failure to delete and we get the following XML response back from the server.
<?xml version='1.0' encoding='utf-8'?>
<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/ws/2005/05/addressing/none" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/errors">
<ns0:Header>
<ns1:Action ns0:mustUnderstand="1">*</ns1:Action>
</ns0:Header>
<ns0:Body>
<ns0:Fault>
<faultcode>a:ErrorInvalidRequest</faultcode>
<faultstring xml:lang="en-US">Exceeded maximum count of 1000 items that can be deleted in a single request. </faultstring>
<detail>
<ns2:ResponseCode>ErrorInvalidRequest</ns2:ResponseCode>
<ns2:Message>Exceeded maximum count of 1000 items that can be deleted in a single request. </ns2:Message>
</detail>
</ns0:Fault>
</ns0:Body>
</ns0:Envelope>
| Assignee | ||
Updated•4 months ago
|
Assignee: nobody → edicharry
Status: NEW → ASSIGNED
Points: --- → 2
| Assignee | ||
Comment 1•4 months ago
|
||
| Assignee | ||
Updated•3 months ago
|
Keywords: checkin-needed-tb
Target Milestone: --- → 152 Branch
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/00b1eef928dc
Delete EWS messages in batches to avoid running into limits. r=jtracey
You need to log in
before you can comment on or make changes to this bug.
Description
•