"TimeSpan overflowed" Error After You Install Update Rollup 2 for Exchange Server 2007 SP2

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007 SP2

This topic provides information about how to troubleshoot a problem in which you use public folders in your Exchange Server 2007 organization, and you also have set the retention period on the public folder database to be greater than 123 days. After you install Update Rollup 2 for Exchange Server 2007 Service Pack 2 (SP2), and then you try to access the public folder database by using the Exchange Management Console, you receive the following error message:

TimeSpan overflowed because the duration is too long

If you try to access Exchange by using Outlook Web Access, you receive the following error message:

Exception
Exception type: Microsoft.Exchange.Clients.Owa.Core.OwaInvalidConfigurationException
Exception message: TimeSpan overflowed because the duration is too long.

This problem occurs because of an existing issue in Exchange Server 2007. In this case, the value of the database item retention limit for the public folder in Active Directory is configured in seconds instead of in days. The Exchange Store expects this value in days. Therefore messages may never expire.

This problem is fixed in Update Rollup 2 for Exchange Server 2007 SP2 by using days instead of seconds. However, if a public folder database retention limit is set to greater than 123 days in Exchange Server 2007, and if you apply Update Rollup 2 for Exchange Server 2007, you receive an exception error. This error occurs when you try to access the public folder store by using either the Exchange Management Console or Outlook Web Access.

If you are using public folders, and if you have set the retention period on the public folder database to be less than or equal to 123 days, you receive a warning message. However, Exchange Server 2007 continues to function correctly.

Regardless of the value setting, if you receive this error message or warning message, you can use the following steps in the "Procedure" section to fix the problem.

Procedure

To resolve this problem, change the msExchOverallAgeLimit value by using ADSIEdit.

To Change the msExchOverallAgeLimit Value

  1. Click Start, type adsiedit.msc in the Start Search box, and then press ENTER.

  2. In the ADSIEdit snap-in, Click Action, and then click Connect to.

  3. From the Well-known naming context list, select Configuration.

  4. Expand the following list item and sub-items in order:

    • CN=Configuration,DC=Domain,DC=com

    • CN=Services|CN=Microsoft Exchange

    • CN=OrgName

    • CN=Administrative Groups

    • CN=Servers

    • CN=ServerName

    • CN=Information Store

    • CN= Second Storage Group

  5. Double-click CN=Public Folder Database.

  6. Double-click msExchOverallAgeLimit.

  7. Change the existing value from seconds to days by dividing the existing value by 86,400.

Note

You must repeat these steps on all Public Folder Databases in the Exchange 2007 environment.

More Information

For more information about Update Rollup 2 for Exchange Server 2007 SP2, see Description of Update Rollup 2 for Microsoft Exchange Server 2007 Service Pack 2.

For more information about this issue, see The "age limits" function of a public folder do not work as expected in an Exchange Server 2007 environment.