COM Class Factory Error

Note: This issue only occurs when running BRES in (Microsoft Excel based) VSTO mode.

Use this page to learn more about an error labeled as a COM Class Factory Error that has appeared for different combinations of  Windows Windows and Microsoft Office when trying to run the IFS Business Reporter Execution Server (also named BRES in this document).

The error has appeared on different combinations of Microsoft Windows specific Operating Systems and Office versions.

Generally it is not recommended to use Office 365 on the server/computer hosting BRES. A perpetual version of Office is recommended.

If the described error appears when running BRES, the information on this page provides a possible way to fix the issue.

Note: The described workaround has been validated on e.g. Office 365 with Excel 2013 as well as Excel 2016 but also for other combinations. One perceived issue is that a new build version of either Windows Windows or Microsoft Office might lead to that the problem re-appears. Due to this reason it is hard to list the combinations of operating system and Office version where the problem exists.

Contents

 

The COM Class Factory Error

When BRES is about to process a downloaded IFS Business Reporter report, the COM Class Factory Error will appear as in the picture below.

Figure 1: IFS Business Reporter Execution Server Console - COM Factory Class Error

The full error message is as displayed in the below text box:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the 
following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)

Suggested Workaround

If the described error appears then try the workaround described in this section.

Disable Report Rendering by Execution Server

First make sure that the if end users are ordering IFS Business Reporter (BR) reports they will not be handled by the Execution Server.

The easiest way is to open the BR System Parameters window in IFS EE and change the value of the parameter Usage of Business Reporter Execution Server

Figure 2: BR System Parameters

The reason for this is to make sure that the suggested actions will correct the reports currently in the rendering queue but only these reports.

Scenario 1 - No Interactive Users

IFS Business Reporter Execution Server will be running on a server/machine that has no interactive users.

Make sure that Component Services are added to Microsoft Management Console.

 

Scenario 2 - Interactive Users

IFS Business Reporter Execution Server will be running on a server/machine where there will be interactive users.

 

Render Reports in the Queue

This step aims at making sure that IFS Business Reporter reports currently in the BRES queue are rendered successfully. This should be done before changing the parameter value in the BR System Parameters window.

Start BRES again:

If restart and rendering was successful, open IFS EE and locate the reports in the Report Archive and make sure that they can be opened successfully.

Note: It BRES, in scenario 1, is started while being logged on to the BRES server/computer and a IFS Business Reporter report is ordered from IFS EE, the DCOM error will appear again as long as the Identity property is not set to The interactive user. This means that at this point no new reports should be ordered.

 

Change Parameter Value