> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MAPI インポート エラー

> ABBYY FlexiCapture を Microsoft Office 365 と統合する際の MAPI インポート エラーを、コネクタ用の COM+ アプリケーションを作成して設定することで解決します。

ABBYY FlexiCapture を Microsoft Office365 と統合して使用する場合、次のようなエラーが発生することがあります: "Unhandled exception at 0x00007FFAEAB2A839 (KernelBase.dll) in FlexiEx.exe: 0xC06D007E: Module not found (parameters: 0x000000E126EFE040)." この問題は、COM+ アプリケーションを作成して設定することで解決できます。

<Warning>
  COM+ アプリケーションを作成する前に:
</Warning>

* ABBYY FlexiCapture のサービスが、Microsoft Outlook プロファイルで使用しているものと同じユーザー アカウントで実行されていることを確認してください。これを行うには、必要なアカウントで Microsoft Outlook を開き、プログラムがドキュメントをインポートするメールボックスを追加します。
* ABBYY FlexiCapture のサービスを実行しているこのユーザー アカウントに管理者権限があることを確認してください。COM+ アプリケーションの作成時にこのユーザー アカウントを使用するためです。

COM+ アプリケーションを作成するには:

1. **Component Services console** を開き、**Console Root → Computers → My Computer → COM+ Applications** に移動します。
2. **COM+ Applications** を右クリックし、ショートカット メニューの **New → Application** をクリックします。**COM+ Application Install Wizard** が開きます。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_1.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=fb5c6490dfe9afc6b6d852b527d76a49" alt="COM+ Applications を右クリックし、New、Application を選択して COM+ Application Install Wizard を開いている Component Services のスクリーンショット。" width="1184" height="597" data-path="images/flexi-capture/TG_Integration_MapiImportError_1.png" />
</Frame>

3. **Install or Create a New Application** ダイアログで、**Create an empty application** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_2.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=a554fb95f8af004f88867b91feba3837" alt="Create an empty application が選択されている Install or Create a New Application ダイアログのスクリーンショット。" width="513" height="455" data-path="images/flexi-capture/TG_Integration_MapiImportError_2.png" />
</Frame>

4. **Create Empty Application** ダイアログで、アプリケーション名を入力し、**Server application** を選択して **Next** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_3.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=141406c5c35700169afb2bd2f6db3cb2" alt="アプリケーション名が入力され、Server application が選択されている Create Empty Application ダイアログのスクリーンショット。" width="513" height="455" data-path="images/flexi-capture/TG_Integration_MapiImportError_3.png" />
</Frame>

5. **Set Application Identity** ダイアログで、**Interactive user - the current logged on user** を選択し、**Next** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_4.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=bdc1ae38f1795d1d0edff99ef9437e9e" alt="Interactive user, the current logged on user が選択されている Set Application Identity ダイアログのスクリーンショット。" width="513" height="455" data-path="images/flexi-capture/TG_Integration_MapiImportError_4.png" />
</Frame>

6. 残りのダイアログでは、既定の設定のまま **Next** をクリックします。COM+ アプリケーションの作成を完了してください。

COM+ アプリケーションを作成したら、必要な FlexiCapture コンポーネントをインポートする必要があります:

1. 使用可能なアプリケーションの一覧で、新しく作成した COM+ アプリケーションを見つけ、**Components** フォルダーを右クリックして **New → Component** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_5.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=4cff71a7b0c55f7e4bd8accf27500453" alt="新しい COM+ アプリケーションの Components フォルダーを右クリックしてコンポーネントをインポートしている Component Services のスクリーンショット。" width="847" height="594" data-path="images/flexi-capture/TG_Integration_MapiImportError_5.png" />
</Frame>

2. **Import or install a component** ダイアログで、**Import component(s) that are already registered.** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_6.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=b7b0d71f150b0f41ef122fb03141379f" alt="既に登録されているコンポーネントをインポートするオプションが選択されている Import or install a component ダイアログのスクリーンショット。" width="513" height="400" data-path="images/flexi-capture/TG_Integration_MapiImportError_6.png" />
</Frame>

3. **Choose Components to Import** ダイアログで、次の操作を行います。
   * 64 ビット版の Microsoft Office を使用している場合は、ABBYYFlexiCapture12.MapiConnectorX64.12 コンポーネントを選択し、**Next** をクリックします。
   * 32 ビット版の Microsoft Office を使用している場合は、**32-Bit Registry** オプションを選択し、ABBYYFlexiCapture12.MapiConnectorX86.12 コンポーネントを選択して、**Next** をクリックします。
   <Frame>
     <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_7.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=6a80da47e7d4c939cf2dc875fee072ee" alt="32 ビット版 Microsoft Office のインストール用に 32-Bit Registry オプションを選択したレジストリ選択画面のスクリーンショット。" width="513" height="400" data-path="images/flexi-capture/TG_Integration_MapiImportError_7.png" />
   </Frame>
4. 必要なコンポーネントをインポートしたら、利用可能なアプリケーションの一覧で COM+ アプリケーションを右クリックし、ショートカット メニューの **Properties** をクリックします。表示されるアプリケーションのプロパティ ダイアログで、**Pooling & Recycling** タブをクリックします。
5. **Expiration Timeout (minutes)** ボックスに「60」と入力します。**Activation Limit** ボックスに「1」と入力します。変更を保存するには、**OK** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/TG_Integration_MapiImportError_8.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=d8cd87c9c093451d8844054709ea9eec" alt="Expiration Timeout が 60 分、Activation Limit が 1 に設定された COM+ アプリケーションのプロパティのスクリーンショット。" width="414" height="565" data-path="images/flexi-capture/TG_Integration_MapiImportError_8.png" />
</Frame>

新しいインポート設定を反映するには、Processing Station を再起動する必要があります。

<Note>
  MAPI インポートを設定する前に、Processing Station を停止しておくことをお勧めします。Processing Station を停止しないまま MAPI インポートの設定中に「The RPC server is unavailable」エラーが表示された場合は、ABBYY FlexiCapture と Processing Station を再起動してください。
</Note>

<Note>
  MAPI プロトコルを使用して ABBYY FlexiCapture 12 にインポートする場合は、Microsoft Outlook 2016 の使用をお勧めします。Microsoft Outlook のそれ以降のバージョンはサポートされていません。
</Note>
