PRB: CDO Error: Run-time error "-2147221233" with GetFreeBusy

ID: Q183250

The information in this article applies to:

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 (CDO) 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 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 kbCDO120 kbGrpMsg 
Version           : WINDOWS:1.2
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: April 8, 1999