Fix the Excel Data Mining Add-in Object Reference Error
Question details
Resolve an object reference error in the SQL Server Data Mining add-in for Excel after Excel crashes.

- 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.
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.
Repair Microsoft Office and retest the Data Mining add-in
Use Office repair to address potentially corrupted Office components or settings after a crash.
On Windows, open Settings > Apps > Installed apps, or Apps & features on older Windows versions. Find Microsoft 365 or your Microsoft Office installation.
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.
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.

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.

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.




