You cannot reset the value of the "Local replica age limit (days)" setting to 0 or to NULL in Exchange Server 2010


Symptoms


Assume that you configure the value of the Local replica age limit (days) setting for a public folder in a Microsoft Exchange Server 2010 environment. However, after you configure the value of the Local replica age limit (days) setting, you cannot reset the value to 0 or to NULL.

For example, if you try to reset the value of the Local replica age limit (days) setting to 0 by using Public Folder Management Console, you receive the following error message:
Some controls aren't valid.

-The property (00:00:00), is out of range. The valid range is from 1:00:00:00 to 24855:00:00:00.
Additionally, you try to run the following command to remove the value of the Local replica age limit (days) setting in Exchange Management Shell:
set-publicfolder -Identity "\folder name" -LocalAgeReplicaLimit:$null -server "FQDN of server"
However, you receive the following error message:
Cannot process argument transformation on parameter 'LocalReplicaAgeLimit' . Cannot convert null to type "Microsoft .Exchange.Data.EnhancedTimeSpan"

Workaround


To work around this issue, use one of the following methods.

Method 1: Set the value of the Local replica age limit (days) setting to 24855

The valid range for the Local replica age limit (days) setting is one to 24855. Therefore, you can set the value of Local replica age limit (days) setting to 24855 as a workaround.

Method 2: Rebuild the affected public folder

Before you rebuild the affected public folder, you must export the items in the public folder to a .pst file, and then import this .pst file to the new public folder. To do this, follow these steps.

Note After you rebuild the affected public folder, the new public folder has the default Client permissions. You must reconfigure the public folder replicas for the new public folder.
  1. Export the items in the affected public folder to a .pst file. To do this, follow these steps:
    1. Open Microsoft Outlook to connect to the public folder database.
    2. On the File menu, click Import and Export.
    3. Click Export to a File, and then click Next.
    4. In the Create a file of Type list, select Personal Folder File (.pst), and then click Next.
    5. In the Select folder to export from list, select Public Folder, click All Public Folders, click to select the affected public folder, and then click Next.
    6. In the Save exported file as box, type a name for the file (for example, type Backup.pst), and then click Browse to select a folder to save the file in.
    7. Click Ok to save the exported file, click Next, and then click Finish.
  2. Rebuild the affected public folder. To do this, follow these steps:
    1. In the Exchange Management console tree, click Toolbox.
    2. In the Result pane, double-click Public Folder Management Console.
    3. In the Public Folder Management Console console tree, click Default Public Folders.
    4. In the Result pane, right-click the affected folder, and then click Remove.
    5. In the Public Folder Management Console console tree, right-click Default Public Folders, and then click New Public Folder.
    6. In the Name box, type a name for the new public folder, and then click New.
  3. Import the .pst file to the new public folder. To do this, follow these steps.

    Note You must have Owner permissions to import the items to this public folder. You can use Public Folder Management Console to manage the permissions for this public folder.
    1. In the Folder List view of Outlook, click Public Folders, click All Public Folders, and then click to select the new public folder that you created in step 2.
    2. On the File menu, click Import and Export.
    3. In the Choose an action to perform list, select Import from another program or file, and then click Next.
    4. In the Select file type to import from list, select Personal Folder File (.pst).
    5. In the File to import box, type the location and file name of the .pst file that you want to import, or click Browse to locate the .pst file.
    6. Select Replace duplicates with items imported, and then click Next.
    7. In the Select the folder to import from list, click IPM_SUBTREE, click the public folder that you exported in step 1, click Import items into the current folder, and then click Finish.

More Information


The Local replica age limit (days) setting specifies the age limit for items in a public folder. Items that have reached the specified age limit are deleted.