"An unexpected MAPI error occurred." recorded in the Application event log of the Citrix Provisioning Server every five minutes.

book

Article ID: CTX696163

calendar_today

Updated On:

Description

The following error is recorded in the Application event log of the Citrix Provisioning Server every five minutes:

- Source: SoapService

- Event ID: 1

- Level: Error

- Event Data: MapiException: (ErrorCodeOtherException) An unexpected MAPI error occurred.

Affected Versions
Citrix Provisioning Server 2203 LTSR CU6, 2402 LTSR CU1, 2402 LTSR CU2, 2407, 2411, 2503.1

Occurrence Conditions
This error does not occur on the initial server used to create the farm via the Configuration Wizard. It only occurs on servers that are subsequently added to the farm.

Cause

This issue is caused by insufficient permissions when the SoapService attempts to execute a SQL query that references system table during the telemetry data collection process, which runs every five minutes.

When the first server creates the farm and configures the database via the Configuration Wizard, the necessary permission is granted to that specific machine. However, the SQL command to grant the permission is not executed for any machines added to the farm afterward.

In versions 2203 LTSR CU7, 2402 LTSR CU3, 2507 LTSR, 2511, and later, the problematic SQL query has been replaced with one that does not require access to system tables, thereby resolving the issue.

Resolution

Upgrade the Citrix Provisioning Server to one of the following versions or later:

- 2203 LTSR CU7

- 2402 LTSR CU3

- 2507 LTSR

- 2511

 

Workaround:

Execute the following SQL statement on the database server to grant the necessary permission to the domain computer account for the Provisioning servers.

GRANT VIEW DATABASE STATE TO [<Domain>\<Machine Name>$];

Example: GRANT VIEW DATABASE STATE TO [SAMPLEDOMAIN\PVSSERVER2$];

 

Issue/Introduction

"MapiException: (ErrorCodeOtherException) An unexpected MAPI error occurred." recorded in the Application event log of the Citrix Provisioning Server every five minutes.