Skip to content

When something is wrong

Resetting a folder

The last resort for a folder whose state nobody can explain, and what it costs to use it.

One recipient, one folder, started again from nothing. It removes the folder, everything in it and every mapping naming it, and lets the next pass rebuild from the source.

It lives on the recipient’s page, on its Folders tab, in the overflow menu of the folder it resets — Reset this folder… — rather than in the row of ordinary repairs. Reconcile, retry and check all converge on the state the source describes. This one does not converge on anything; it throws the state away.

The folder whose state nobody can explain any more:

  • a delta checkpoint that disagrees with the mailbox,
  • an adoption gate consumed by a pass that should not have consumed it,
  • mappings pointing at cards that are not there.

Each of those has a specific remedy. This has none, and that is what makes it the last resort rather than one more repair.

What you are seeingWhat to try first
Counts that disagree with the mailboxReconcile on the folder’s row. It lists the folder, compares every managed card against the source and queues the repairs
Changes made in the mailbox not being taken backCheck changes on the recipient’s page, which reads the destination delta
The managed folder missing or contestedReconcile. ContactMesh rebinds to a folder it recognises by its own markers — see What the faults mean
Everything behind, cause unknownFull sync on the recipient. It rewrites every card and destroys nothing
Stopped work whose cause you have fixedRetry, which puts the dead letters back with a full set of attempts
Stopped work whose target no longer existsGive up on failed. A write against a card somebody deleted fails for as long as anybody retries it

Reset when those have been tried and the folder still cannot be accounted for.

Pressing the button queues one work item and returns. Everything below happens in the worker. The queue lists the item as Remove managed folder. Until it has finished, the folder reads Behind, unless other failed operations or restricted fields in the mailbox are still recorded against it.

  1. Reads the folder. If it is already gone, the subscription is released — mappings removed, folder unbound — and the work is reported as done rather than as an error, because it is.
  2. Refuses a renamed folder. If the folder is no longer called what ContactMesh published into, it is left in the mailbox, DestinationFolderRenamed is recorded against the recipient and synchronisation to them stops. A rename is somebody saying the folder is theirs now. The tenant setting Renamed folders, set to Delete, overrides this.
  3. Archives what it did not write. Every card in the folder that does not carry this source list’s marker is written to Lost and found, with its picture, before anything is deleted — and whatever the tenant’s archiving switch says. Those rows are committed before the delete, so a crash between the two leaves a record without the cards rather than neither.
  4. Deletes the folder. One Graph call, which takes every card inside it. Cards ContactMesh wrote are deliberately not archived: republishing the source list rebuilds them.
  5. Releases the subscription. Every mapping naming it is removed, the folder id is unbound, the delta checkpoint and the adoption gate are cleared, every count is zeroed, and the subscription is paused and marked Removed.

A folder the recipient has filed folders of their own in is not deleted at all, because the delete would take them with it: only ContactMesh’s contacts come out, nothing is archived since nothing of theirs goes, and DestinationFolderHoldsOtherFolders says why. The rebuild then fills the same folder.

If Exchange refuses to delete the folder — it does for a folder whose deleted items are still recoverable — ContactMesh removes it permanently instead. That call is used on this path and nowhere else. If that fails too, the contacts are deleted one at a time, the empty folder is left behind and DestinationFolderNotDeletable says so; it can then be deleted from Outlook.

Contacts removed with the folder land in the recipient’s recoverable items, like any other deletion. That is Exchange’s safety net and not ContactMesh’s to take away: a permanent purge of a mailbox is a PowerShell job, and the one operation here that could not be undone is the one this product does not hand out behind a button. The exception is the folder Exchange refuses to delete, above — that one is removed permanently.

The cards nothing can reconstruct are the unmarked ones: a contact the recipient added by hand, and a card adoption refused to claim. Those go to Lost and found, where they are kept for the retention period set on Settings and can be restored to the mailbox they came from or exported.

Resetting is per recipient and there is no tenant-wide form of it. The value of a last resort is that using it is a decision about one mailbox; a button that did this to two thousand at once would be used the first time somebody was in a hurry.

The confirmation is typed rather than ticked for the same reason. A checkbox is answered by the same reflex that opened the dialog, and the only thing a mis-click gets wrong here is which mailbox. The dialog names the folder and the recipient, and their address has to be typed to match. The server checks it again, so the field is the pause rather than the guard — a mistyped address queues nothing at all.

Two other refusals are worth knowing. A recipient with no provisioned folder is told there is nothing to reset. And pressing the button twice queues one teardown, not two: a reset already queued is reported as such, and a reset that ran and failed is revived by a second press rather than duplicated — which is the moment the button matters, because a reset that worked needs no second press. Both presses are recorded in the audit log, the second marked as a retry of a failed attempt.

Nothing on the recipient’s page does. Once the teardown finishes, the subscription reads Removed, and every write control on that row is refused with this recipient no longer has access to the list — reconcile, retry, give up on failed, and the active toggle. Full sync skips it as well.

The membership refresh is what brings it back. It finds the recipient still in the audience, un-pauses the subscription, marks it Behind and queues one write per contact; the first of those recreates the folder in the mailbox.

StageWhat it waits for
The teardownThe queue, at repair priority. Quiet hours hold it — only privacy work runs then
The un-pauseThe publication’s membership refresh interval, fifteen minutes by default. Refresh memberships on the publication’s Audience tab does it now
The rebuildOne write per contact, paced like any other sync and subject to the same recipients-per-hour ceiling

Two things stop it coming back at all: a publication that is not active, and a running or paused rollout that has not released this recipient. Both leave the subscription paused, and the folder stays empty until that changes.

Dead letters raised before the reset name contacts that no longer exist. They can never run, and a dead letter is one of the conditions that renders a folder as stuck — so once the membership refresh has brought the folder back, clear them with Give up on failed on that row.