OL2002: Error When You Programmatically Add Members to DistListItem (294436)



The information in this article applies to:

  • Microsoft Outlook 2002

This article was previously published under Q294436

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.

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

287530 OL2002: Questions About Custom Forms and Outlook Solutions


Modification Type:MinorLast Reviewed:3/1/2004
Keywords:kbbug kbnofix KB294436