Two-way calendar synchronization does not work after enabling Exchange Web Services

Article ID: KB29946

Type: Support Content

Last Modified: 10-26-2012

 

Product(s) Affected:

  • BlackBerry Enterprise Server for Microsoft Exchange
  • BlackBerry Enterprise Server Express for Microsoft Exchange
CollapseEnvironment
  • BlackBerry Enterprise Server 5.0 SP3 for Microsoft Exchange
  • BlackBerry Enterprise Server Express 5.0 SP3 for Microsoft Exchange
  • Microsoft Exchange Server 2010
CollapseOverview
After enabling Exchange Web Services (EWS) in BlackBerry Enterprise Server 5.0 SP3, calendar appointments created in either Microsoft Outlook or the BlackBerry smartphone do not synchronize.

The following lines may appear in the Messaging Agent (MAGT) Log:

[30193] (02/16 13:08:55.192):{0x2138} {user01@example.com} Receiving calendar update from device, RefId=1709547333, Tag=5392, TransactionId=14089204
[20216] (02/16 13:08:55.195):{0x2138} {user01@example.com} Synchronize() failed: ERR_FAIL, Tag=5392
[40000] (02/16 13:08:55.195):{0x2138} {user01@example.com}-HandleAppointmentToSynchronize-Exit-rc=Error

After raising log levels for CalHelper in the registry, the following log line may be present in the CalHelper (CALH) Logs:

[40000] (02/16 14:30:30.101):{0x98} {user01@example.com} Service::GetCalSyncFolderId exception caught: The request failed with HTTP status 405: Method Not Allowed.
CollapseCause
The TraitTool was used to configure the BlackBerry Enterprise Server to use a specific Microsoft Exchange Client Access Server for handling EWS requests. The EWSCASURL has an incorrect address.
CollapseResolution
  1. On the BlackBerry Enterprise Server, browse to C:\Research In Motion\BlackBerry Enterprise Server 5.0.x\bundle0000\tools (Where x indicates the service pack and 0000 indicates the bundle number)
  2. Make sure that the TraitTool.exe is present
  3. Open a Command Prompt:

    For Windows Server 2003: Click Start > Run and type
    cmd
    For Windows Server 2008: Click Start > and type cmd in the search field and press Ctrl+Shift+Enter to elevate permissions

  4. Navigate to the directory containing the TraitTool (i.e. cd C:\Research In Motion\BlackBerry Enterprise Server 5.0.3\bundle0033\tools)
  5. Clear all EWS settings using the following commands:

    traittool -server <Server Name> -trait EWSEnable -erase
    traittool -global -trait EWSEnable -erase
    traittool -global -trait EWSCASURL -erase

  6. Re-enable EWS and point to the correct CAS URL using the following commands:

    traittool -server <Server Name> -trait EWSEnable -set true
    traittool.exe -server <Server Name> -trait EWSCASURL -set https://<Client Access FQDN>/ews/exchange.asmx

  7. Restart the BlackBerry Controller

    Note: Restarting the BlackBerry Messaging Agent might cause mail flow delays for the other users on this BlackBerry Messaging Agent.

    Note: For <Server Name>, use the instance name of the BlackBerry Enterprise Server. For <Client Access FQDN>, use the fully qualified domain name of the CAS server (i.e. https://CAS01.example.net/ews/Exchange.asmx) 

Disclaimer

By downloading, accessing or otherwise using the Knowledge Base documents you agree:

   (a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase apply to your use or reference to these documents; and

   (b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.


Visit the BlackBerry Technical Solution Center at www.blackberry.com/btsc.