Microsoft KB Archive/252999

= OL2000: Error When You Programmatically Add Members to DistListItem =

Article ID: 252999

Article Last Modified on 9/19/2006

-

APPLIES TO


 * Microsoft Outlook 2000 Standard Edition

-



This article was previously published under Q252999



SYMPTOMS
When you use the Outlook object model, you programmatically add recipients to a DistListItem object, and you receive one of the following error messages:

Application-defined or object-defined error.

-or-

The operation failed.

Or, if you programmatically create a DistListItem, you may receive the following error message when you try to open it:

Can't open this item. Out of memory or system resources. Close some windows or programs and try again.



CAUSE
You have reached the limit of how many recipients the distribution list can hold.



WORKAROUND
Instead of using one large distribution list, create separate smaller ones.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
If you use the Outlook user interface to add too many members to a distribution list, you receive a more user-friendly error message than if you exceed the limit by using the Outlook object model. When you use the Outlook object model, you must be careful to not add too many members, otherwise the distribution list item can become corrupted.

For more information about the limitations of distribution lists, click the following article number to view the article in the Microsoft Knowledge Base:

238569 You receive a "This distribution list has reached the maximum size for your network e-mail server" error message when you try to add many items to a contact distribution list in Outlook

