IBM Support

Archiving large Exchange messages fails with return code MAPI_E_CALL_FAILED in function IMessage:CopyTo

Troubleshooting


Problem

When you use IBM Content Collector to archive Microsoft Exchange messages, archiving large messages might fail with return code MAPI_E_CALL_FAILED.

Symptom

The following message is written to the Content Collector Email Connector log file:


    AFUM0009E: An error occurred: The Messaging Application Programming Interface (MAPI) function 'IMessage::CopyTo' failed with return code 'MAPI_E_CALL_FAILED'
 

Cause

In some situations, the MAPI function IMessage:CopyTo returns the error code MAPI_E_CALL_FAILED if Microsoft Outlook 2010 is used. This problem can be circumvented by passing different flags to the function StgCreateStorageEx. This function is called when creating the file storage object that holds the message to be archived.

Environment

IBM Content Collector for Email with Microsoft Exchange Server and Outlook 2010

Resolving The Problem

Starting with IBM Content Collector 2.1.1.3 LA017, you can set two new environment variables:


    AFU_DISABLE_EXTENDED_STGM_FLAGS=1
    AFU_DISABLE_TEMP_MESSAGE_COPY=1

If you set the environment variable AFU_DISABLE_EXTENDED_STGM_FLAGS, Content Collector passes different flags to the function StgCreateStorageEx, which resolves the problem.
In addition, there is no longer a need to create a temporary message copy. Therefore you should also set the environment variable AFU_DISABLE_TEMP_MESSAGE_COPY.

Important: If you set the variable AFU_DISABLE_TEMP_MESSAGE_COPY, you must always set AFU_DISABLE_EXTENDED_STGM_FLAGS as well.

[{"Product":{"code":"SSAE9L","label":"Content Collector"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Content Collector for Email","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2.1.1;2.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21576702