logo
search
Microsoft 365 Error Codes

Fix MBRS Cannot Generate Sheets Error in Microsoft 365

Steve KSteve K Sep 28, 2026 871 views

Question details

The user is unable to generate sheets using the MBRS add-in and receives a System.InvalidCastException error.

How to Fix MBRS Error: Cannot Generate Sheets in Microsoft 365
Product
Microsoft 365 / MBRS Add-in
Device & OS
not provided
Scenario
Launching the Malaysia Business Reporting System (MBRS) add-in to generate spreadsheet reports within Microsoft 365.
Observed behavior
An error message appears stating that sheets cannot be generated, followed immediately by a System.InvalidCastException thrown by the MBRS add-in.
Before you start

Ensure you have administrative privileges on your computer, as you will need to create specific local directories and copy system patch files to resolve this add-in exception.

Solution 1Recommended

Apply the MBRS Folder Patch Workaround

Manually create the missing directories required by the MBRS script and copy the patch files to bypass the exception error.

This error is typically triggered by the SSM XBRL Preparation Tool (MBRS add-in) missing necessary source folders in its directory structure, rather than an issue with Microsoft Excel itself.

1
Create the missing directory path

Open File Explorer and navigate to your D: drive. Manually create the nested folder path exactly as follows: D:\SSM\svn\_new\SSM\_iFile\_Code\iFile\iFileCore. If your system primarily uses a C: drive for this tool, adjust accordingly based on your initial installation path.

2
Locate the patch folders

Navigate to the default installation directory for the MBRS tool, typically found at C:\SSM XBRL Preparation Tool\Patch.

3
Copy the required patch files

Select all the required patch folders within the Patch directory, right-click, and choose Copy (or press Ctrl+C).

4
Paste into the new directory

Go back to the newly created iFileCore folder on your D: drive, right-click inside the folder, and select Paste (or press Ctrl+V).

5
Restart Microsoft Excel

Completely close Microsoft Excel. Relaunch the application, open your workbook, and try generating the MBRS sheets again to confirm the error is resolved.

Apply the MBRS Folder Patch Workaround
Folder Permissions: Make sure your Windows user account has full read and write permissions for the newly created SSM directory to prevent further access denied errors.
Free Microsoft Office alternative

Experience a Stable Spreadsheet Environment with WPS Office

If third-party add-ins and software conflicts are causing Microsoft 365 to throw exception errors, consider switching to WPS Office. It provides a highly compatible and lightweight environment for your daily spreadsheet tasks without the hassle of complex technical troubleshooting.

Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) file formats.Lightweight installation with minimal system resource usage to prevent software crashes.Familiar user interface for seamless migration from Microsoft 365.Free to use for essential spreadsheet creation, data analysis, and reporting.
microsoft office alternative - wps office

Frequently Asked Questions

What is the MBRS add-in in Microsoft Excel?

MBRS stands for the Malaysia Business Reporting System. It is an XBRL preparation tool provided by the Companies Commission of Malaysia (SSM) used as an add-in within Excel to generate specific business reports.

Why am I getting a System.InvalidCastException error?

This error occurs when a piece of software (like the MBRS add-in) attempts an invalid data type conversion in its background code. In this specific case, it happens due to missing directory folders and patch files required by the add-in to function.

Does this MBRS error mean my Excel installation is corrupted?

No, the error message clearly states that the exception is generated by the MBRS add-in, not Microsoft Excel. Reinstalling Excel typically will not fix this issue; instead, the add-in's missing files must be patched.