OL98: Unable to Set Offline Synchronization Flag Through CDO/OOM with Outlook 98 (273651)



The information in this article applies to:

  • Microsoft Outlook 98

This article was previously published under Q273651

SYMPTOMS

When you try to set the PR_OFFLINE_FLAGS property on a particular folder using Collaboration Data Objects (CDO), it does not work, and you receive the following error message:
MAPI_E_NOT_FOUND (8004010f)
When you try to set the PR_OFFLINE_FLAGS (H66300102) property on a particular folder using CDO, you receive the following error message:
MAPI_E_NOT_FOUND (8004010f)

CAUSE

The folder is not synchronized before you try to update the property.

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The French version of this fix should have the following file attributes or later:

File nameSizeDateVersion
Mspst32.dll597,26401/26/2000 14:345.5.2651.85
Emsui32.dll132,88001/12/2000 13:12 5.5.2651.85
Emsmdb32.dll562,96011/29/2000 17:13 5.5.2654.7
Emsabp32.dll140,56002/11/2000 12:47 5.5.2651.91

NOTE: The developer must have the private store open to allow this operation to work, as offline synchronization is handled through the private store. A Microsoft Visual Basic developer can use the following code to ensure that the private store is open.
Set objPrivateStore = ObjSession.InfoStores("Boite aux lettres - Joseph Sefair-FRN")
strIDTrash = objPrivateStore.Fields.Item(&H35E30102).Value
Set objContacts = ObjSession.GetFolder(strIDTrash, objPrivateStore.ID)
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

The problem occurs when you do not first modify the offline public folder properties with Outlook.

Steps to Reproduce the Problem

  1. Install Outlook, and enable Offline Usage and Synchronization.
  2. Create a new public folder called TestOffline.
  3. Add the public folder to your Favorites in Outlook (call it TestOfflineFavorite).
  4. Use the following code to put this folder offline:
    Const PR_OFFLINE_FLAGS = &H663D0003
    Set objSession = CreateObject("MAPI.Session")
    objSession.Logon "MS Exchange Settings"
    Set objInfostore = objSession.InfoStores("Public Folders")
    strIDDossierFavoris = objInfostore.Fields.Item(&H66300102).Value
    Set objDossierFavoris = objSession.GetFolder(strIDDossierFavoris, 
    objInfostore.ID)
    Set objFolder = objDossierFavoris.Folders("TestOfflineFavorite")
    Set objFields = objFolder.Fields
    Set newField = objFields.Add(&H663D0003, 1)
    objFolder.Update
    objSession.Logoff
    					
  5. The objFolder.Update procedure does not work and you receive the following error message:
    8004010f MAPI_E_NOT_FOUND

Modification Type:MinorLast Reviewed:9/2/2005
Keywords:kbbug kbfix kbQFE KB273651