Shared posts

18 Jun 09:35

Troubleshooting Public Folder Deletion Issues in Exchange Online

by The_Exchange_Team

Public folders provide a way to collect, organize, and share information with other people in your organization. They can help users organize content in a deep hierarchy that's easy to browse in Outlook and Outlook on the web (OWA).

This blog post is here to help admins troubleshoot deletion issues with public folders, with a focus on the following scenarios:

  • A user with sufficient permissions (for example, folder Owner) is unable to delete items within a public folder. After content is deleted using OWA or Outlook, it re-appears within a few seconds.
  • A user with sufficient permissions (for example, Exchange administrator) is unable to delete a public folder and its content using PowerShell / Exchange Admin Center (EAC) and is getting one of the following errors:
    • Microsoft.Exchange.Data.StoreObjects.ObjectNotFoundException: Could not find public folder Dumpster for \PF1
    • Microsoft.Exchange.Data.StoreObjects.ObjectNotFoundException: The process failed to get the correct properties. ---> Microsoft.Mapi.MapiExceptionNotFound: MapiExceptionNotFound: Unable to get properties on object

These issues can occur when the public folder dumpster is invalid or does not exist. The exact reason for this might not be known, but the issue typically happens after public folders are migrated from on-premises servers using PSTs or third-party migration tool.

What is the Dumpster Folder?

Today’s public folder storage model uses a visible “IPM_SUBTREE” part that contains public folders and their content, and a hidden area called the “NON_IPM_SUBTREE” that which contains dumpster folders and other system related folders.

pfdel01.jpg

Every content folder has a dumpster folder where deleted items are retained according to the defined retention time. Once the retention time has elapsed, the items are permanently purged.

Example:

pfdel02.jpg

As illustrated here, deletion of public folder content is really a content move from the visible folder to the dumpster:

pfdel03.jpg

Each folder and its dumpster are linked to each other. This link cannot be undone, and admins cannot delete dumpster folders by themselves. When a folder is removed from the public folder hierarchy, its dumpster is automatically removed. The same principle applies to mailbox folders and subfolders, too.

Addressing public folder/item deletion failures

A newly published PowerShell-based tool, ValidateEXOPFDumpster, can help you investigate public folders/items deletion failures. The tool validates the following:

  • Public folder size
    • Public folder content mailbox TotalDeletedItemSize value has exceeded its RecoverableItemsQuota value
    • Public folder size is full
  • User permissions are not synced between public folder mailboxes
  • Content public folder mailbox between the public folder and its dumpster are different
  • EntryId and DumpsterEntryID values are not mapped properly on the public folder and its dumpster
  • Parent public folder dumpster is unhealthy
  • The public folder is a dumpster folder
  • Dumpster folder has child folders
  • Mail-enabled public folder MEPfProxyGuid is “null”

The ValidateEXOPFDumpster script is not officially supported by Microsoft support. For any issues related to this script, please file a GitHub request with the Exchange Tools team or email ExToolsFeedback[AT]microsoft[DOT]com.

How does the tool work?

Typically, the tool is run with a PFolder parameter specifying the public folder identity as follows:

 

 

.\ValidateExoPfDumpster.ps1 -PFolder \pf1

 

 

The tool will prompt for affected public folder identity/EntryID if it wasn't provided using PFolder parameter and then it will prompt for Exchange administrator username and password to connect to Exchange Online. By default, the tool assumes that the issue being investigated is impacting to a specified public folder but all users are affected.

If the deletion issue happens only for a specific user, the user’s SMTP address can be provided as follows:

 

 

.\ValidateExoPfDumpster.ps1 -PFolder \pf2 -Affecteduser user@contoso.com

 

 

The tool will generate the public folder validation checks failures and proposed fixes results on the screen and will generate the ValidatePFDumpsterREPORT.txt file, as well. There are other files generated for either logging purposes or for logs to be shared with Microsoft support.

File Name

Content

Use

ValidatePFDumpsterREPORT.txt

Information about any issues found

The tool displays what it found, and in many cases, it provides a solution to fix the problem

ValidatePFDumpsterChecksLogging.csv

Information about the reason of tool run failure

The file will display errors encountered during running of the tool and at which stage it failed

PublicFolderInfo.xml

All required information about the affected public folder

Shared with Microsoft support if engaging support about this problem

Let’s check the following examples to get more clarification on how the tool works.

Example1: Running the tool on the affected public folder “\pf2” where only one user is affected (user@(domain).com). 

pfdel04.jpg

The tool points out two issues:

  • Neither the specified user nor the default user have sufficient permissions to delete items inside the public folder
  • Public folder size has exceeded the Individual Public Folder ProhibitPostQuota value

Example2: Running the tool on the affected public folder “\t” where all users are affected

pfdel05.jpg

The tool points out the following:

  • Public folder and its dumpster don't have the same content public folder mailbox
  • Public folder EntryId and DumpsterEntryID values are not mapped properly
  • Public folder size has exceeded Organization DefaultPublicFolderProhibitPostQuota value
  • Public folder dumpster has 1 subfolder

The tool also creates a log file containing all the required information "PublicFolderInfo.xml" to be shared with Microsoft support, if needed, and has provided mitigation for the last two issues.

pfdel06.jpg

Special thanks to Bhalchandra Atre and Nino Bilic who reviewed and contributed to this post.

Hazem Embaby
Support Escalation Engineer

19 Oct 12:03

Photo



24 Jun 16:43

Photo



01 Jun 18:08

Photo



26 May 17:10

Photo



28 Apr 19:52

Photo



20 Apr 19:22

Photo



01 Apr 17:27

Photo



26 Mar 18:12

welele: Así que gracias a un sordo los conciertos son como...



welele:

Así que gracias a un sordo los conciertos son como son.

26 Mar 18:07

yellovvkitty: Shhi el mInI Stephen Hawking Te VasSiLaah* Tü te...



yellovvkitty:

Shhi el mInI Stephen Hawking Te VasSiLaah* Tü te KayaS y lo AsHimilaAAs

26 Mar 18:03

Photo

by LadyMosca


25 Mar 18:11

Photo



18 Mar 20:03

skullrave: Cualquier día seré el siguiente…



skullrave:

Cualquier día seré el siguiente…

17 Mar 18:05

Photo





09 Mar 20:36

foreverdai: Guille Rancel.

26 Feb 20:38

Photo



26 Feb 20:29

Cada uno hace lo que puede



Cada uno hace lo que puede

21 Feb 21:48

Photo



21 Feb 21:47

Photo



18 Feb 20:09

Yisus pls



Yisus pls

13 Feb 20:00

Photo



13 Feb 19:53

Photo



08 Feb 19:04

Cómo no aburrirte yendo en el tren





















Cómo no aburrirte yendo en el tren

03 Feb 20:29

JAJAJAJAJAJA



JAJAJAJAJAJA

03 Feb 20:10

http://mehueleelpitoacanela.com/post/75487744914



image

02 Feb 18:01

Photo



27 Jan 17:39

Photo



26 Jan 22:13

A ella le gusta la papilliiiiina... dale más papillina... por @miperrumia


17 Jan 18:35

Photo



17 Jan 18:29

"- Buenos días. Venía a que me revisaran esta rueda, que dice mi mujer que se desgasta mucho. + Está..."

“- Buenos días. Venía a que me revisaran esta rueda, que dice mi mujer que se desgasta mucho.
+ Está desequilibrada?
- Una puta loca, igual que su madre.”

- Via Bessonet (via montondemierda)