BUG: E_INVALIDARG Error Returned From CDO (1.2x) Reply Method (183095)



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.2
  • Collaboration Data Objects (CDO) 1.21

This article was previously published under Q183095

SYMPTOMS

When executing the Reply method of a Collaboration Data Objects (CDO 1.2x) Message object, you may receive the following CDO (1.2x) error message:
MAPI_E_INVALIDARG [80070057].
This message can be very misleading because the Reply method takes no arguments.

CAUSE

The underlying issue is that the logic in the Reply method looks for the Messaging Application Programming Interface (MAPI) message field PR_SENDER* and calls the Extended MAPI function ModifyRecipients() on the MAPI message. If PR_SENDER* properties are missing, an E_INVALIDARG is passed to MAPI's ModifyRecipients() function.

STATUS

This behavior is by design, but Microsoft acknowledges that this error message is not clearly stating the underlying issue. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type:MajorLast Reviewed:6/3/2005
Keywords:kbBug kbMsg kbpending KB183095