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



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.21
  • Collaboration Data Objects (CDO) 1.1
  • Collaboration Data Objects (CDO) 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
				

Modification Type:MajorLast Reviewed:3/19/2004
Keywords:kberrmsg kbMsg kbprb KB183250