BUG: E_INVALIDARG Error Returned From CDO (1.2x) Reply Method
Article ID: 183095
Article Last Modified on 6/3/2005
APPLIES TO
- Microsoft Collaboration Data Objects 1.2
- Microsoft Collaboration Data Objects 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.
Keywords: kbbug kbmsg kbpending KB183095