Microsoft KB Archive/246709

From BetaArchive Wiki
Knowledge Base


PRB: Error '80040403' Returned When Filter Global Address List

Article ID: 246709

Article Last Modified on 3/4/2004



APPLIES TO

  • Microsoft Collaboration Data Objects 1.2
  • Microsoft Collaboration Data Objects 1.21



This article was previously published under Q246709

SYMPTOMS

In a CDO application, when using a filter to restrict address entries from the Global Address List, you may get the following error message:

Run-time error '-2147220477 (80040403)';
[Collaboration Data Object-[MAPI_E_TABLE_TOO_BIG (80040403)]]
                

CAUSE

CDO is a wrapper to Extended Messaging API (MAPI), and therefore it uses the Extended MAPI Restrict() function call to return the entry table that contains a limitation on the number of row sets that can be returned. When the number of returned entries is greater than 16000, the above error occurs. The property for the maximum limit of returned entries is stored in the MAPI property: PR_PROFILE_MAX_RESTRICT.

RESOLUTION

Here are two workarounds:

Make a more precise restriction on the filter so that less than respective maximum limit (mentioned in the Cause section above) entries are returned.You can increase the number of entries that can be returned by modifying the PR_PROFILE_MAX_RESTRICT property. The Knowledge Base article Q188295 contains sample code that explains how to accomplish this.

REFERENCES

For information about how to modify the maximum limit for the returned entries, please see the following article in the Microsoft Knowledge Base:

188295IMAPITable::Restrict Returned Rows Limitation in Exchange AB[mapi]


Keywords: kbmsg kbprb KB246709