After installing an Exchange 2007 or Exchange 2010 server in to a mixed site the OAB generation fails with error 9342 and Outlook clients fail to download the OAB with error 0x8004010f

After setting up a mixed org with exchange 2007 and or Exchange 2010 the OAB generation fails with error 9342

Public folders are widely used with all version of Exchange. For the OAB public folders are a must. With the introduction of Exchange 2007 public folders are an option. During the setup you will be asked whether you want to setup legacy support or not. If you do not opt for legacy support public folders will not be installed. From this point on you will need to create a Web Distribution enabled OAB for your Outlook 2007 clients to download.

If you are going to maintain a mixed organization for a little while (Exchange 2003 / Exchange 2007, Exchange 2007 / Exchange 2010) you need to know a few things.

  1. By default the Default Offline Address List resides on the first server in the site, which is your Exchange 2003 or 2007 server.
  2. The OAB generation server by default is your Exchange 2003 server for a mixed (2003 / 2007) org. It will be the 2007 server if it is a (2007 / 2010) org.
  3. Before your users on the Exchange 2007 server can download the OAB Version 2, 3 and 4 files from the public folder store, a local replica for the OAB folders must exists on the Exchange 2007 store.
  4. If you did not create a public folder store on the Exchange 2007 or Exchange 2010 server, you will need to create one before clients can download the legacy OAB.
  5. Now if you have installed your Exchange 2007 or Exchange 2010 server and you want your clients to download the OAB, you will need to do a few things otherwise you might get the following errors:

Outlook client - “Outlook clients receive error 0x8004010f when downloading the Offline Address Book” issue.

If you turn up diagnostic logging for the OAB Generation process on the Exchange 2007 server you might see the following event:

Event Type: Warning
Event Source: MSExchangeSA
Event Category: OAL Generator
Event ID: 9342
Date: 5/1/2007
Time: 10:31:28 AM
User: N/A
Computer: OAB-Server
Description:
No previous version of an offline address list for '\Global Address List' can be found. No differential update file will be produced. This is expected if this is the first time this offline address list has been generated. - Default Offline Address List

If you follow this blog https://blogs.msdn.com/dgoldman/archive/2006/08/26/725860.aspx to turn up diagnostic logging for the OAB Generation process on your Exchange 2007 server and rebuild you might see this event:

Event Type: Warning
Event Source: MSExchangeSA
Event Category: OAL Generator
Event ID: 9335
Date: 5/1/2007
Time: 10:31:28 AM
User: N/A
Computer: OAB-Server
Description:
OALGen encountered error 80040115 while cleaning the offline address list public folders under /o=org/cn=addrlists/cn=oabs/cn=Default Offline Address List. Please make sure the public folder store is mounted and replicas exist of the offline address list folders. No offline address lists have been generated. Please check the event log for more information. - Default Offline Address List

What this means is that the local replicas on the Exchange 2007 server do not exist. The hierarchy will reflect that they do but the contents need to also be replicate over for the folders to exist. So you will need to do the following:

1. Move the OAB from the Exchange 2003 server to the Exchange 2007 server, or from Exchange 2007 to the Exchange 2010 server.
2. Make sure you have local replicas of the OAB on the correct Exchange server and they have *successfully* replicated over.
3. Make sure all of the mailbox stores on the Exchange 2007 and Exchange 2010 server under the Client Settings tab have the Default Offline Address Book associated.
4. Follow this blog [How to work with Exchange 2007 / 2010 OAB Event Logging] on how to turn up diagnostic logging on an Exchange 2007 or 2010 server.
5. Rebuild the OAB.
6. Check the application log again to make sure that the OAB has generated successfully.

As long as replicas exist on the Exchange 2003 / 2007 or 2007 / 2010 server you should have no problem generating and downloading the OAB.

Dave