Excel Error Codes

Fix the Excel Data Mining Add-in Object Reference Error

Aamir Naveed AkramAamir Naveed Akram Nov 25, 2026 869 views

Question details

Resolve an object reference error in the SQL Server Data Mining add-in for Excel after Excel crashes.

Fix the Excel Data Mining Add-in Object Reference Error
Product
Microsoft Excel and SQL Server Data Mining add-in
Device & OS
not provided
Scenario
The user is processing data mining models in Excel after a crash.
Observed behavior
The add-in stops working and displays “Object reference not set to an instance of an object” when processing models.
Before you start

Close Excel and other Office applications before starting a repair. On Windows, identify your installed Office or Microsoft 365 entry in Settings; repair options can vary by Office version and installation type.

Solution 1Recommended

Repair Microsoft Office and retest the Data Mining add-in

Use Office repair to address potentially corrupted Office components or settings after a crash.

1
Open the Office installation settings

On Windows, open Settings > Apps > Installed apps, or Apps & features on older Windows versions. Find Microsoft 365 or your Microsoft Office installation.

2
Run a repair

Select the Office entry, choose Modify, and follow the repair prompts. If available, start with Quick Repair; if the error persists, run Online Repair, which requires an internet connection.

3
Retest the model

Open Excel, load the workbook, and use the Data Mining add-in to process the model again. If the add-in is not visible, check File > Options > Add-ins and review the COM Add-ins list.

Repair Microsoft Office and retest the Data Mining add-in
Repair options may differ: Older Office versions may offer Office Diagnostics or different repair menus. Reinstalling or re-enabling the add-in alone may not fix damaged Office components or settings.
Free Microsoft Office alternative

Use WPS Spreadsheets as an Excel alternative for everyday work

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easier to move everyday workbook tasks. It does not repair Excel or replace the SQL Server Data Mining add-in.

Open and edit common Excel XLSX and XLS filesWork with spreadsheet data in a familiar interfaceUse a free, lightweight office suite for everyday workbook tasksMove compatible spreadsheets without recreating them from scratch
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Data Mining add-in show an object reference error after Excel crashes?

A crash may leave Office components or settings damaged, although the error alone does not identify the cause. Try repairing Office and then processing the model again.

Where can I repair Office on Windows?

Open Settings > Apps > Installed apps, select your Microsoft 365 or Office installation, and choose Modify. Select an available repair option and follow the prompts.

Should I reinstall the Data Mining add-in first?

Reinstalling or re-enabling the add-in alone may not resolve damaged Office components or settings. Repair Office, then check the add-in under Excel's File > Options > Add-ins if needed.

Can WPS Office run the SQL Server Data Mining add-in?

WPS Office is an alternative for everyday spreadsheet work, but it does not replace the SQL Server Data Mining add-in or repair the Excel error.