Microsoft KB Archive/813148

= XADM: Cannot Programmatically Access a Table That Contains More Than 65,535 Entries =

Article ID: 813148

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition

-





SYMPTOMS
When you programmatically call the GetPublicFolderTable method to return a table that lists all the public folders from a Microsoft Exchange 2000 Server computer, you may receive the following error message:

MAPI_E_TABLE_TOO_BIG



CAUSE
This problem occurs if there are more than 65,535 public folders on the computer. There is a limit of 65,536 entries in a MAPI table; the 65,536 entry limit is a limitation of MAPI.



Cumulative Rollup Information
To resolve this problem, obtain the September 2003 Exchange 2000 Server Post-Service Pack 3 (SP3) Rollup. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824282 September 2003 Exchange 2000 Server Post-Service Pack 3 Rollup

Hotfix Information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Exchange 2000 Server service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
Because of file dependencies, this hotfix requires Microsoft Exchange 2000 Server Service Pack 3 (SP3). For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

301378 How to Obtain the Latest Exchange 2000 Server Service Pack

File Information
Component: Messaging database

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date        Time   Version           Size     File name -- 05-Mar-2003 19:50  6.0.6431.0        958,464  Emsmdb32.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article.



MORE INFORMATION
This hotfix adds a new method that is named GetPublicFolderTableOffset. You can use this new method in the new IExchangeManageStore4 interface. The original GetPublicFolderTable method and the original IExchangeManageStore3 interface are still available. Both the GetPublicFolderTableOffset method and the GetPublicFolderTable method now return a full (65,536 row [64K row]) MAPI table even if there are more than 65,536 rows to be returned. The new GetPublicFolderTableOffset method contains an additional argument that is named uOffset. You can use the uOffset argument to start retrieving data from a specific place in the master table. The uOffset = 0u argument directs this method to start at the beginning of the table. For example, you can programmatically make the following calls until an empty table is returned: GetPublicFolderTableOffset (? 0u) GetPublicFolderTableOffset (? 65536u) GetPublicFolderTableOffset (?131072u) For additional information about the terminology that is used to describe Microsoft product updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the Standard Terminology That Is Used to Describe Microsoft Software Updates

Additional query words: kbExchange2000preSP4septbarFix

Keywords: kbhotfixserver kbqfe kbqfe kbfix kbexchange2000presp4fix kbbug kbprb KB813148

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.