Microsoft KB Archive/183250

= PRB: CDO (1.x) Error: Run-time error '-2147221233' with GetFreeBusy =

Article ID: 183250

Article Last Modified on 3/19/2004

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.21
 * Microsoft Collaboration Data Objects 1.1
 * Microsoft Collaboration Data Objects 1.2

-



This article was previously published under Q183250



SYMPTOMS
Using the GetFreeBusy function against a Exchange Server mailbox returns the following error:

Run-time error '-2147221233(8004010f)':

[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]



CAUSE
The mailbox that you are accessing using Collaboration Data Objects (1.1, 1.2, 1.21) has not been logged into with a mail client yet, therefore no Free/Busy information has been created for this mailbox.



RESOLUTION
Here are three workarounds to this problem:
 * 1) Log into the mailbox with an Outlook client to ensure that there is some Free/Busy information written to the mailbox. When you log into mail for the first time, Outlook creates an appointment item which in turn creates Free/Busy information.
 * 2) Log into the mailbox with an Exchange client and start Schedule+ or just start Schedule+ by itself. This creates Free/Busy information in that mailbox, there is no need to actually create an appointment.
 * 3) Use CDO (1.1, 1.2, 1.21) to create a new test appointment so that Free/Busy information is created for that mailbox.



MORE INFORMATION
The GetFreeBusy method returns a string representing the availability of the messaging user for a meeting over a specified period of time. The returned string length equals the number of time slots between StartTime and EndTime. Each character in the string is the ASCII representation of the appropriate type library constant indicating the messaging user's availability during a time slot:     ASCII Character    Meaning -

"0"          CdoFree

"1"          CdoTentative

"2"          CdoBusy

"3"          CdoOutOfOffice

Keywords: kberrmsg kbmsg kbprb KB183250

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.