[GIS] Failure to connect to database

arcgis-10.5arcgis-desktopexcel

Background: I'm using GIS tutorial basic workbook (ArcGIS 10.1) with ArcGIS 10.5 software, and my MS office is 2010

I was practicing building a file geodatabase, and I have imported shapefile without issue, but I couldn't import the data table (.xlsx). The error message keeps popping up saying "Failed to connect to database. An underlying database error occurred. Class not registered".

I'm still fairly new to using the software so I'm not sure what went wrong.

Best Answer

Two easy solutions:

1) Save the XLSX file as an older XLS version via "File|Save As" in Excel and select "Excel 97-2003 Workbook (*.xls)" as the file type. This should work with any version of Excel installed, which is required.

2) Download and install the 2007 Office System Driver: Data Connectivity Components from the MS Download Center. This is required even when working with Excel 2010 or 2013 to natively work with the XLSX files in ArcGIS. Should work immediately after installing.

One other tip when working with XLS/XLSX files, load the excel file into your MXD using "Add Data". Then proceed with joining the table to your other features using the loaded reference rather than pointing to the file directly.