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.
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)
If the described error appears then try the workaround described in this section.
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.
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.
Figure 3: Microsoft Excel Application Properties dialog
IFS Business Reporter Execution Server will be running on a server/machine where there will be interactive users.
Figure 4: Microsoft Excel Application Properties dialog
Click Apply and the OK
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:
Figure 5: Starting the IFS Business Reporter Execution Server while logged on to the server hosting BRES
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.
If a scheduled job is created then make sure to specify a mail address to get a mail when the executed and rendered report appears in the Report Archive
Note: If the
Identity property of the
Microsoft Excel Application DCOM
object is set to This user, then there
should not be any interactive users. As soon as there are interactive users
the report rendering will fail and it will be necessary to perform the
described steps again.
This is of course a limitation but currently the only found solution to the
problem.